Hi folks
I find myself in that annoying situation where there are lots of 'easy' examples of how to do something, but no useful real world examples.
I am wanting to use the new client side data binding in RadGrid. I have got this working using a simple method that will return data. However, I need it to accept a parameter which the user will enter onto the page. Unfortunately none of the examples show how to do this.
Here is what I have so far:
Now... this works nicely. The "GetLatestReportsTable" method gets called in my WCF service and the grid fills with data.
However, I need to pass in a "ReportCategory" parameter (which the user will select from a drop down) - this will only return certain reports. I have created the method in the WCF service (UriTemplate = "/GetLatestReportsTableWParams/{ReportCategory}"). How do I actually call this on the client side? Can I do it by setting properties in the grid? Do I need to write JavaScript?
Any help appreciated!
I find myself in that annoying situation where there are lots of 'easy' examples of how to do something, but no useful real world examples.
I am wanting to use the new client side data binding in RadGrid. I have got this working using a simple method that will return data. However, I need it to accept a parameter which the user will enter onto the page. Unfortunately none of the examples show how to do this.
Here is what I have so far:
| <telerik:radgrid id="radgDocuments"> |
| <ClientSettings> |
| <DataBinding SelectMethod="GetLatestReportsTable" Location="~/Services/Reporting/OnDemandLatest.svc" SortParameterType="Linq" FilterParameterType="Linq"> |
| </DataBinding> |
| </ClientSettings> |
| <MasterTableView HierarchyLoadMode="Client" DataKeyNames="ReportSourceID" ClientDataKeyNames="ReportSourceID">..... etc |
However, I need to pass in a "ReportCategory" parameter (which the user will select from a drop down) - this will only return certain reports. I have created the method in the WCF service (UriTemplate = "/GetLatestReportsTableWParams/{ReportCategory}"). How do I actually call this on the client side? Can I do it by setting properties in the grid? Do I need to write JavaScript?
Any help appreciated!