RadGrid1.SelectedValue

12 posts, 0 answers
  1. Nyceane
    Nyceane avatar
    47 posts
    Member since:
    Nov 2007

    Posted 27 Dec 2007 Link to this post

    Is this fixed yet?  because selectedvalue will still give me a null no matter what I do.
  2. Petja
    Admin
    Petja avatar
    631 posts

    Posted 28 Dec 2007 Link to this post

    Hi Nyceane,

    You could access the selected items by its table like follows:
    grid.get_masterTableView().get_selectedItems()
    Our developers will review the issue as soon as possible.

    Happy Holidays!

    Kind regards,
    Petja
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nyceane
    Nyceane avatar
    47 posts
    Member since:
    Nov 2007

    Posted 02 Jan 2008 Link to this post

    'Telerik.WebControls.RadGrid' does not contain a definition for 'get_masterTableView'

    How do I exactly get the selected value?
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 03 Jan 2008 Link to this post

    Hello Nyceane,

    Detailed information about the changes made in the client-side API of RadGrid you can find in these online resources:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Overview/DefaultCS.aspx (section Client-side API and events)

    http://www.telerik.com/help/radcontrols/prometheus/ (chapter Controls -> RadGrid -> Client-side API reference)

    More precisely, to extract the selected value client-side you can use the client key/values exposed through the API as shown here:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Keys/DefaultCS.aspx

    Server-side you can access directly the <RadGridInstance>.SelectedValue property by invoking its ToString() method for example.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Nyceane
    Nyceane avatar
    47 posts
    Member since:
    Nov 2007

    Posted 15 Jan 2008 Link to this post

    is this going to be fixed on next update?
  7. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 16 Jan 2008 Link to this post

    Nyceane, I do not find anything broken at the moment that has to be fixed . Telerik team provided several options to fetch the selected value on client, use one of them to do that.

    Prangadj
  8. Nyceane
    Nyceane avatar
    47 posts
    Member since:
    Nov 2007

    Posted 16 Jan 2008 Link to this post

    there are no example showing how to retrieve key value off the table, the only example they are showing is how many rows are selected.  if you have a good way to retrieve client select value, please show me, i'd be highly appreciated
  9. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 17 Jan 2008 Link to this post

    Hi Nyceane,

    Please visit this example for more info:
    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Keys/DefaultCS.aspx

    Best wishes,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  10. Anthony Kornmeier
    Anthony Kornmeier avatar
    1 posts
    Member since:
    Apr 2006

    Posted 28 Feb 2008 Link to this post

    I have used the RadControls Grid for displaying items for years. I use an ASP.NET FormView to edit the data.  On the RadGrid's onSelectedIndexChanged SERVER SIDE event to grab the <RadGridInstance>.SelectedValue.ToString() value to databind my FormView (which is working fine).  However, when I go to update the FormView using the RadGrid  SelectedValue.ToString() value, it is NULL.  I don't know how or why, but this value should persist until you clear the selected indexes or databind the grid.  

    I feel this is a bug in the Prometheus Grid.
  11. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 29 Feb 2008 Link to this post

    Hello Anthony,

    Can you please submit an example which illustrates the unexpected behavior? Furthermore, can you please check whether the same approach works for the MS GridView control and its SelectedValue property?

    Best regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  12. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 29 Feb 2008 Link to this post

    Hi Anthony,

    Just a quick follow up.

    I have reviewed your code and I notice that you are calling DataBind() for the grid on every Page_Load. This will clear the grid child controls and ViewState and will recreated the controls according the the specified data source however the ViewState of the control will be lost. You can check this using standard MS GridView and you will get same result.

    All the best,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  13. Kedar
    Kedar avatar
    4 posts
    Member since:
    Dec 2010

    Posted 04 Jan 2011 Link to this post

    You are missing out with the setting of DataKey for the grid. If we set the DataKeyName, SelectedValue works properly..

    Thanks,
    Kedar
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017