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

[Solved] to get the filtering work.

4 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Esperanza Ramos
Top achievements
Rank 1
Esperanza Ramos asked on 27 May 2008, 08:10 PM
Hi, All:

I am using the Ajax Rad Grid, with SqlDataSource.  In the stored procedure
for select, I put:
     select from MyTable ... order by column1, column2, ...., column9.

Then, in my Rad Grid, I set:
         AllowFilteringByColumn="true"

But this does not work properly.  When I use the filter inside Rad Grid, it did not work as expected.

Please help.

Stanley Huang

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 May 2008, 03:56 AM
Hi Stanley,

How are you binding the Grid? Try binding the Grid in the NeedDataSource event. Grid features like Filtering,Sorting etc work with AdvanceDataBinding techniques.
Advanced data-binding

Shinu.
0
Esperanza Ramos
Top achievements
Rank 1
answered on 28 May 2008, 01:21 PM
Hi, Telerik Team:

Thank you for your link.  I visited the link.
Here is how I bind my rad grid:

protected override void OnLoadComplete(EventArgs e)
{
base.OnLoadComplete(e);
IDCollection IDs = Session["MyRecords"] as IDCollection;
sdsRGrid.SelectParameters[0].DefaultValue = (IDs ==
null) ? "" : IDs.ToString();
rgJobInv.DataSourceID = sdsRGrid.ID;
}

In the Rad Grid, I need to have auto-update, auto-retrieve, auto-delete. In my understanding,  I need to bind rad Grid to SqlDataSource:
       RadGrid1.DataSourceID = SqlDataSource1.ID; 

Can I have both auto-update, auto-select, auto-delete and filtering features work at the same time? Please give some details on how to implement that.

Thank you so much.

Stanley Huang

0
Princy
Top achievements
Rank 2
answered on 29 May 2008, 07:06 AM
0
Esperanza Ramos
Top achievements
Rank 1
answered on 29 May 2008, 02:14 PM
Hi, Telerik Team:

My question is:
   
           How to get the filtering feature work, with auto-operations(update, select, delete)?

Currently, I have the auto-operations(update,select..) working, But I don't have the filtering work in my Ajax Rad Grid.

Currently I bind the Grid as:
 
      RadGrid1.DataSourceID = SqlDataSource1.ID;

Please help:
   How to get the filtering working, while auto-opetation(update..) are working as well.

Stanley Huang
Tags
Grid
Asked by
Esperanza Ramos
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Esperanza Ramos
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or