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

RadGrid and Advanced databinding issue

2 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DIT
Top achievements
Rank 1
DIT asked on 05 Dec 2011, 07:33 AM
Hi,

I was trying to get ExcelML based export working. I was able to achieve some formatting and other Goals using ExcelML but as for ExcelML based export we need to implement Advanced databinding using NeedDataSource event, I had to do some changes to my existing code - which i did.
The problem I am facing now after doing all the changes is:

Page data source is changing as per requirement but page is not showing changed data. It's staying one step back. Here is scenario:

1. Page has a drop down with 3 types, suppose A, B and C.
2. First time page shows data depending upon the selection which is A.
3. I change selection to B. Page posts back, datatable is re-built and Grid's dataSource is Set to it but not ReBinded (as stated by Telerik). Page is still showing data shown previously i.e. data for type A.
4. I change selection to C. Page posts back, datatable is re-built and Grid's dataSource is Set to it but not ReBinded. Now page shows data for type B - which was selected in step 3.
5. If you keep changing the selection. Page shows data for previous type i.e. one step previous. Please note that datasource is built and set properly but page's view is not updated.

I tried rebinding the Grid and it some times works properly but it crashes other times. what to do? Any help?

Thanks.

2 Answers, 1 is accepted

Sort by
0
DIT
Top achievements
Rank 1
answered on 06 Dec 2011, 06:59 PM
Any help from team Telerik?

Thanks in anticipation!
0
Accepted
Maria Ilieva
Telerik team
answered on 07 Dec 2011, 02:21 PM
Hello Dit,

Could you please debug your application locally and verify of  the NeedDataSource event fires correctly on each type change? Posting the mark up form your page and the related code behind could help us further research on the issue. Also please let me know what do you mean by after Rebind() the application crushes sometimes. Are any error appears in this case?

Kind regards,
Maria Ilieva
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
DIT
Top achievements
Rank 1
Answers by
DIT
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or