Ticket Q207747
Visible to All Users

Get value of textbox in Grid

created 16 years ago

How can you get the value of a textobx that is within an ASPxGridview using the client-side GetSelectedFieldValues?
I have a grid that is populated at runtime which the client will select a row(s) and on selection I need to get the value of two columns - one that is bound and the second column contains an ASPxTextbox that the user has added notes to.
Getting the value of any of the bound columns is no problem, but I don't see how to get the value from the textbox.

Show previous comments (1)
?
Unknown 16 years ago

    Thanks for the reply Vest. Your example works great, except that you are only able to capture the comment for one row. What I'm looking for is not just for single selection, but possible multiple rows being selected and sometimes unselected.

    DevExpress Support Team 16 years ago

      Hi John,
      I've changed my previous example a bit, so now it can capture all comments. However, it works only if they are within one page, because you can't get ASPxClientTextBox values when it is invisible.
      Thanks,
      Vest

      ?
      Unknown 16 years ago

        That works great - Thank you!!!

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.