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

Row templates and custom functionality

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 18 Jan 2012, 08:39 PM
Hello all,

I have a require for some custom functionality, and I think the RadGrid will work for me based on the examples, however I'm not sure how start coding or setting it up. Below is a brief example of the functionality and layout...

//Initial Row State
[Read Only Label] [Empty Textbox] [ Default Dropdown] [ Default Dropdown] [Add Button]

When the [Add Button] is clicked, I'd like to take the values entered for the textbox and two dropdown menues, and "push" them down. At that point, the top row will be blank, and the bottom row will have the delete button like this.

//After item is added
[Read Only Label] [Empty Textbox] [Default Dropdown] [Default Dropdown] [Add Button]
[Read Only Label] [New Text Value] [New Dropdown Choice] [New Dropdown Choice] [Delete]

As mentioned, the examples give the add/delete functionality, but not in this manner. I'm not actually pulling data from anywhere, it would be more like a data entry form. I can't figure out how to keep the add button at the top and push the top row down when the add button is clicked. Thanks  for any suggestions, examples etc..

-Chris

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 19 Jan 2012, 11:53 PM
Chris:

I would suggest that you take a close look at the "Grid / Client-Side Insert/Update/Delete" online RadGrid demo at http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx

This would be a great jumping off point for you as it already uses text boxes and droplists to insert a new row into the RadGrid on the client side. You could ignore all of the data binding.

Hope this helps!
Tags
Grid
Asked by
Christopher
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or