Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Hide a Row?

 Post Reply Post Reply
Author
Steven Chesser View Drop Down
New Member
New Member
Avatar

Joined: 04 May 2016
Posts: 24
Post Options Post Options   Quote Steven Chesser Quote  Post ReplyReply Direct Link To This Post Topic: Hide a Row?
    Posted: 01 Feb 2019 at 10:07pm
Using  IW 14.2.7
TMS IW Components 5.9.1.0

I can't seem to figure out how one can hide a row in a TTIWAdvWebGrid




Back to Top
Steven Chesser View Drop Down
New Member
New Member
Avatar

Joined: 04 May 2016
Posts: 24
Post Options Post Options   Quote Steven Chesser Quote  Post ReplyReply Direct Link To This Post Posted: 02 Feb 2019 at 8:22pm
Well using javascript and knowing the row ID's I can hide/show/toggle each row... which I guess works.  But would be nice if something was a bit more built into the control.  If there is one, I can't seem to find it. 

Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2157
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 04 Feb 2019 at 9:15am
Hi,

Unfortunately there's currently no built-in function available to hide specific rows.
It's expected that if rows are added manually for the TIWAdvWebGrid you can also leave out rows that shouldn't be displayed manually.
For the TIWDBAdvWebGrid it's expected that filtering rows is performed on dataset level.

However, using JavaScript to hide rows based on the row ID is a good workaround.
Back to Top
Steven Chesser View Drop Down
New Member
New Member
Avatar

Joined: 04 May 2016
Posts: 24
Post Options Post Options   Quote Steven Chesser Quote  Post ReplyReply Direct Link To This Post Posted: 22 Feb 2019 at 8:21pm
I had something like this

js := '$("#G0row'+row.ToString+'").hide();'; 
if WebApplication.IsCallback then WebApplication.CallBackResponse.AddJavaScriptToExecute('' + js + '');

using JQuery to then handle it

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down