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

How to fetch values from the textboxes externally made part of GridViewDataColumn?

3 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Abhay
Top achievements
Rank 1
Abhay asked on 12 Jan 2012, 06:44 AM
Hello,

I am facing a problem with regards to telerik gid functionality. Since i cannot make a particular cell readonly in telerik grid,, in my case I have put textboxes in that column ( in which some cells have to be made readonly) but the problem I am unable to fetch those values from those textboxes and assign those to entities for further programming. How can I fetch those values from textboxes? User supplies values to some of the cells of that column and some cells are already provided values and read only. on click of SAVE button values from those cells( textboxes here) have to be assigned to entities to be passed to database. Please suggest solution asap.

Thanks and regards,
Abhay Gupta

3 Answers, 1 is accepted

Sort by
0
Abhay
Top achievements
Rank 1
answered on 12 Jan 2012, 07:44 AM
Please reply soon!!!!!!!!!!!
0
Vlad
Telerik team
answered on 12 Jan 2012, 08:46 AM
Hello,

 I strongly suggest you to check MVVM pattern and learn more about how to use it to two way bound properties in order to separate your UI from your data! You can check our demos and documentation for more info as well.

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Abhay
Top achievements
Rank 1
answered on 12 Jan 2012, 09:15 AM
I am using a converter in my case which converts the column cells into ReadOnly type Textboxes when they have some value and if they are null they are converted to editable textboxes on page load. For the editable cells, user is allowed to add values.  these values I need to fetch in my code behind file. Please guide me on that
Tags
GridView
Asked by
Abhay
Top achievements
Rank 1
Answers by
Abhay
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or