I have a gird with a toolbar template where I have a pair of cascading drop down lists and an add new button.
The 1st one is Category and the 2nd is Sub Category which Cascades from Category...
I've set up the datasource model as follows:
I'm also grouping on Category and SubCategory and I have created a function for the edit event:
The two issues I'm running into is this:
First, I've followed documentation and demos from multiple locations, and I cannot grab the text from the drop down... I'm using the following code... but on line 06 the script fails with an error that .text is not defined.
And Second... If I hard code tsCategory and tsSubCategory, it updates the model and the fields in the new row reflect the new values, BUT the grouping label still shows Category and Sub Category instead of the actual value... I want these fields to be hidden....
Do I have to manually update the grouping labels using jquery or is there a better way to do this?