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

Rebind/Databind errors

2 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amberton
Top achievements
Rank 1
Amberton asked on 09 Feb 2009, 11:10 PM
I am using a RadGrid that is populated by a sqldatasource.  I have 2 check boxes on the screen that allow the user to filter how the grid is populated. 

My code in the page_load section looks like:

 

if (chk1.Checked && !chk2.Checked)

{

SqlDataSource1.FilterExpression =

"SUBSTRING([Id],4,1) > 4";

 

 

RadGrid1.Rebind();

}

else

if (chk2.Checked && !chk1.Checked)

{

SqlDataSource1.FilterExpression =

"SUBSTRING([Id],4,1) < 5";

 

 

RadGrid1.Rebind();

}

The filter works fine and the grid is populated with the correct info but I have grouping enabled on the radgrid and when a user goes to expand the group you get the following error:Invalid postback or callback argument.

Any Ideas on how to fix this?  Thank you.

 

 

 

 


Rob

 

 

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 12 Feb 2009, 02:58 PM
Hi Robert,

I tried to reproduce the issue locally but my attempts were not successful. To progress in our investigation, can you assemble a working subset of your project, illustrating the erratic behavior, and send it enclosed to a standard support ticket? I will test/debug it locally and will get back to you with my findings.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amberton
Top achievements
Rank 1
answered on 12 Feb 2009, 04:12 PM
Thank you for the reply but I already contacted a support person about the issue and got it resolved. 

It was a 2 part issue:
The first problem was that I was filtering the sqldatasource on page_load instead of applying the filters in the RadGrid_PreRender section.

The second problem was that I didnt have GroupLoadMode="Client" in the <MasterTableView section.

Putting these changes in place seems to have resolved the issue.
Tags
Grid
Asked by
Amberton
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Amberton
Top achievements
Rank 1
Share this question
or