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

Issue with Clientside binding

3 Answers 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Naganand Bhagavan
Top achievements
Rank 1
Naganand Bhagavan asked on 12 Mar 2009, 07:57 PM
Hi -
I am trying to use the Non-Declarative binding, tryinhg to bind 4 grids on the same page using javascript. I am using Telerik version "RadControls_for_ASP.NET_AJAX_2008_3_1314_dev". Even though I get no errors, I am not seeing any data for the grid.
Please help. I can send in my working project if you wish to look at the code.

Thanks,
~Naga

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Mar 2009, 12:08 PM
Hi Naganand,

In order to assign a data source for the grid and refresh its state on the client, utilize the set_dataSource(dataSource) and dataBind() methods from its client-side API. Keep in mind that the data source passed as an argument to the set_dataSource method should have a JSON signature which can be serialized by a web service or a page method.

All grid commands will raise the OnCommand client grid event which can be intercepted in order to cancel the default operation and perform a custom action client-side.

Look at the following demo, which illustrates how to:
  • extract information about the current page index/virtual item count or set them on the client
  • customize the appearance of the grid items based on their column cell values (intercepting the OnRowDataBound client event of the grid)
  • obtain the values of the sort expressions/filter expressions applied to the control.

 

Further information about Non-Declarative binding is available in the following help topic.

I hope this helps.

Regards,
Pavlina
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
Naganand Bhagavan
Top achievements
Rank 1
answered on 13 Mar 2009, 03:15 PM
I am not subscribed to eiher the "onCommand" or "onDataRowBound",  I need to display the entire data without paging. Is that the issue here? I can see that it has got the data(table) before it uses the tableview.datasource(table). So why can't see the data after it binds, I can send in the piece of code if you can look at it.

Thanks,
~Naga    
0
Pavlina
Telerik team
answered on 16 Mar 2009, 08:06 AM
Hi Naganand,

At this point in order to progress in the resolution of this issue, please open a support ticket and send me a sample project. It would allow me to track the issue locally and get back to you with additional information.

I am looking forward to hearing from you soon.

All the best,
Pavlina
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.
Tags
Grid
Asked by
Naganand Bhagavan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Naganand Bhagavan
Top achievements
Rank 1
Share this question
or