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

[Solved] AJAX RadGrid; filter expressions and edit

1 Answer 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 28 Sep 2009, 05:51 PM
I have created a page with radgrid based on this sample code. 
http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx


1. when the screen initially loads I want to immediately filter by 3 columns using some default values. How do I setup the column filters to do this?  Can you show me a sample of how to manually build a filterExpressions in javascript, or to add additional filters to it after I do a "get_filterExpressions()".

2. How do I now implement edit of the grid?  I can't seem to put the grid in edit mode.  I have tried looking at other samples that do this, and combine it into here, but I can't get it to work.  When I add an edit column command, and click this, nothing happens.  What is the magic that puts the column into an edit mode.  I am trying to understand if the radgrid controls does this automatically, or I have to code for it.

3. Assuming I can get the edit mode working.  Now, I need to save the data back.  How would I do this?  Keeping in mind my screen is using above sample so I have a disconnected set, that I now need to figure out what is changed and call a web service to persist the changes.

I am using v2009.2.701.35 of Telerik.Web.UI

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 01 Oct 2009, 12:37 PM
Hello Greg,

Straight onto your questions:

  1. How to specify filter expressions for the grid on the client you can see from the sample attached to this blog post on our site. The main idea is to intercept the OnDataBinding client event of the control and define the filter expressions manually using eventArgs.get_methodArguments().filterExpression.
  2. Editing with built-in edit forms when using client-side binding for RadGrid for ASP.NET AJAX is not supported. Instead you can consider implementing editing operations through an external edit form as demonstrated here.
  3. Please refer to the previous point.
Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or