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

empty row when i bind grid Client side

4 Answers 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 01 Mar 2014, 05:21 PM
hi
i create a grid with item template columns and edit template in batch mode. i want to bind this grid in client side. I have a web service and return a xml string to my java script function . and i add empty function for OnCommand client event .but when i bind the grid it have so many empty rows and if i clear that master Table  in java script is null and i can not bind the grid

what should i do?


English is not my original language so i sorry for my poor language.
thanks

4 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 05 Mar 2014, 03:35 PM
Hello Ali,

When using client-side binding for the RadGrid the data must have valid JSON syntax in order for it to be parsed properly.

There are also certain limitations when RadGrid is bound on the client. Note that data editing is not supported in such scenario. If you would like more information on client-side binding and also a list of the current limitations, it is available in this article.

If you need data editing for the grid you could use Batch editing mode. Information on how this editing mode could be implemented is available in this online article. There is also a demo showcasing the functionality here.

Regards,
Viktor Tachev
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Ali
Top achievements
Rank 1
answered on 08 Mar 2014, 03:49 AM
hello viktor
thanks for reply
i read this article befor and i chack the limition too these are not my problem.
i want to bind a dynamic object to grid when i make xml string to bind to grid the count of row not true.

how can I do?
0
Viktor Tachev
Telerik team
answered on 12 Mar 2014, 03:51 PM
Hi Ali,

I am not sure I quite understand the scenario you would like to implement. Would you elaborate more on the setup you have? What is the data source that you have for the RadGrid control?

If you are using WebService and binding the grid client-side note that the data returned from the service must have a valid JSON signature. If the WebService returns data in XML format the RadGrid would not be bound properly as such scenario is not supported.

If you are using XMLDataSource to bind the RadGrid would you provide your full markup with the code behind? This would enable us to better understand your setup and look for the cause of the issue.

Regards,
Viktor Tachev
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Ali
Top achievements
Rank 1
answered on 15 Mar 2014, 09:37 AM
hi viktor
thanks a lot
i check it because grid is in batch mode i cant bind it client side  and i  should do it server side.
Tags
Grid
Asked by
Ali
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Ali
Top achievements
Rank 1
Share this question
or