开发者

RadGrid In-Line Editing with Hierarchical DropDownLists

开发者 https://www.devze.com 2022-12-13 23:11 出处:网络
Has anybody seen a demo or forum post that might help me out with this issue? What I\'m looking to do is to have a RadGrid with in-line editing.I have three columns, \"Category\", \"Question\", and \

Has anybody seen a demo or forum post that might help me out with this issue?

What I'm looking to do is to have a RadGrid with in-line editing. I have three columns, "Category", "Question", and "Answer", which I'd like to use drop down lists for.

However, what I'm looking to do is when a "Category" is selected, to repopulate th开发者_开发百科e drop down list of "Questions". Also, when a "Question" is selected, I'd want to repopulate the drop down for "Answers"

I checked out the demo here: Grid / Automatic Operations and this is close to what I'm looking for, however it does not have the hierarchical drop downs.

Any ideas/comments/suggestions would be greatly appreciated.


The example found here Rows - Accessing Cells and Rows should provide you with the information you need.


On the first drop down lists Changed event (enable auto post back) cast the GridItem from the sender object's (the first drop downlist) parent.

Then once you have the griditem, do cast the second drop down list via gridItem.FindControl and work from there.

I dont have VS infront of me so not the most concise answer, sorry.

Edit - it could be cleaner and easier to extend to use a custom control in the grid, RadGrid is great for this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号