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

Manually Add rows to radGrid from Client

3 Answers 286 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul Severson
Top achievements
Rank 1
Paul Severson asked on 15 Jan 2010, 03:52 PM
I am new to the radGrid api, so bear with me.

Is there a way to add data (rows) to the grid from the client (javascript) WITHOUT binding the grid? I am thinking of something along the lines of a Rows() collection with an Add() method?

If not,  is it possible to late-bind the grid from the client using ADO.Net objects?  How about List<> or Dictionary<> objects - late-binding still being the key?

Thanks
seevo315

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 19 Jan 2010, 01:10 PM
Hello Paul,

Concerning the first question - this scenario is not supported by the grid's client-side API.

As for the second one, could give more details on your scenario. In this regards, you might be interested in looking through the following samples and the related help topics:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paul Severson
Top achievements
Rank 1
answered on 19 Jan 2010, 03:49 PM
Tsvetoslav:

Thx for the reply:

  1. We have purchased licenses for the Telerik library - is there a better place for me to submit questions now?
  2. This grid will ultimately be part of a Bing Maps application, displaying results from our database based on results found from geographical searches within our mapping application.  Right now we are using a standard HTML table built dynamically via javascript completely on the client.   We need to preserve this dynamic client-side functionality. 
  3. The database results are currently return to the client as a List<T> object
  4. The closest example you have on your site to what I am looking can be found here: http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx
  5. I have gotten close via some code from this sample - my binding code is similar to what is shown and it does not throw errors,  but I get an empty grid on binding.
  6. I have tried json encoding the results in several different ways,  but nothing has worked.

Thx in advance for any help you can give.

0
Paul Severson
Top achievements
Rank 1
answered on 19 Jan 2010, 04:24 PM
Please disregard - grid bind is now working.

Thx Telerik Guyz
Tags
Grid
Asked by
Paul Severson
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Paul Severson
Top achievements
Rank 1
Share this question
or