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

ExpandCollapse not working in the latest 417 build

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
VeriFone
Top achievements
Rank 1
VeriFone asked on 16 May 2013, 11:51 AM
Hi,

For anyone who is also experiencing this problem. It appears something has changed regarding ObjectDataSource and adding to the selectparameter collection.

If, as we do, you programmatically do
dsmyods.SelectParameters.Clear();
dsmyods.SelectParameters.Add("Param", 123);
in the Page_Load event, then this will cause your grids to stop working as expected when trying to expandcollapse. Telerik have provided the following solution
protected void dsmyods_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            e.InputParameters.Clear();
            e.InputParameters.Add("Param", 123);          
        }

and adding OnSelecting="dsmyods_Selecting" to the ObjectDataSource decleration.

Hope this helps someone.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 May 2013, 01:09 PM
Hello Mark,

Thank you for sharing this information with the community.

Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
VeriFone
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or