This is a migrated thread and some comments may be shown as answers.

Using firecommand in combination with needdatasource/xpath

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
I. Breukink
Top achievements
Rank 1
I. Breukink asked on 11 Jul 2011, 04:30 PM
I have a grid that uses a needdatasource in which a xmldatasource is connected and i have a separate query-box, which uses a firecommand to update the grid using the xpath settings in the datasource. I have used this method, because now i can create a more complicated xpath method for selecting. I works fine, expect when the result for the the xpath selection is zero (no records found). Then the firecommand is not working, i think because the mastertable is not existing then. However the datasource itself always contains all the records, so the mastertable doesn't have to be empty. When i reload the grid with all the records, it works fine again. How can i solve this?

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 14 Jul 2011, 12:40 PM
Hi I. Breukink,

Indeed the fireCommand does not works as expected and the logic does not enter into the ItemCommand because you do not have any items into the RadGrid. In your case I suggest you to use ajax and perform ajax request. Then on the server you could call Rebind() method and bind the RadGrid to the filtered data.

Please give it try and let me know if you experience any problems.


Kind regards,
Radoslav
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
I. Breukink
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or