jQuery UI Widgets › Forums › TreeGrid › jqxtreegrid checkrow button doesn't work?
Tagged: angular treegrid, angular2 treegrid, bootstrap treegrid, javascript treegrid, jquery treegrid, jqwidgets treegrid, jqxTreeGrid
This topic contains 9 replies, has 2 voices, and was last updated by Hristo 7 years, 11 months ago.
-
Author
-
I have a jqxgrid and jqxtreegrid master and slave, this works. But my checkrow button doesn’t select the row in jqxtreegrid
Here is my jsfiddle
http://jsfiddle.net/u71sjxdq/1/Hi I really need help on this.
Hello dan123,
Please, take a look at this demo:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filtering-menu-custom-widgets.htm?light
It looks similar to your example.
It is necessary to distinguish different ID for the Grid from TreeGrid. Please, take a look more detailed the example above.
Also, in your example, you try to check an element but this method needs from ID and in your case, they are “CustomerID” (type string).
You should try with$("#ordersGrid").jqxTreeGrid('checkRow', 'ALFKIa');
instead of “$(“#ordersGrid”).jqxTreeGrid(‘checkRow’, 1);”.
You could find more details in our API Documentation.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHey during rowCheck, how do you lock all rows except the selected rows based on the ID?
Hello dan123,
I am not sure I understand you.
It is not correct to try to check item by id and to have two items with the same id.
(As it is added in your source – ‘”CustomerID”: “ALFKI”‘. Maybe will be better if you use “Country” datafield to collect them in one array.)Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comOk yeah I noticed that. I have updated it
http://jsfiddle.net/u71sjxdq/229/
What i want to do is. Suppose I have Grouped all 2 rows under Country USA. Now when I select any rows from this grouping, I want to lock all other grouping rows. But keep the selected and the rows within that grouping unlocked.
Check the post before this:
Here I almost got it, but seems like still has problem with the lock and unlock rows.
Here is updated fiddle:
http://jsfiddle.net/u71sjxdq/278/Hello dan123,
You need to collect all items precisely (except checked one or/and his children) and with for loop to lock all other.
You could do this analogically when fire “rowUncheck”, useunlockRow
in for loop to unlock items.
Also, I would like to suggest you look more accurately thevar args = event.args;
of different ‘check’ (child/parent).Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi Hristo, can you show a example like in jsfiddle that would help
Hello dan123,
I try your example and I would like to ask you what you want to achieve?
Because now (the way you described) when ‘lock’ one group then you cannot edit this group.
But you could check locked group. In this case what need to think to uncheck all rows or just ‘unlock’ this specific row. Or to use another approach.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.