locked
Getting the Selected Value in a Template after document.ready RRS feed

  • Question

  • User-1932904831 posted

    I have telerik MVC grid which has popup editor.  I have set the popup editor to be my own custom template.  What I need to do is show or hide certain controls based on what one of my dropdownlists has selected.  

    As it stands right now I have some jquery that handles the selected value change event for the droplist and this works fine, my only issue is that when the popup loads the value of the droplist it is always the first in the list regardless of what is selected.  I know my droplist is binding to the model correctly because after the load is finished it selects the proper item in the list I just have the wrong set up controls showing up...

    It's seems to me that I am having a timing issue... Is there anyway to check after the $(document).ready event has fired to get the proper value?

    Any advice would be very much appreciated!

    Wednesday, June 29, 2011 2:42 PM

Answers

  • User816717086 posted

    Ask it from support @ http://www.telerik.com/support.aspx

    there are more support tools @ http://www.telerik.com/products/aspnet-mvc/grid.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 29, 2011 3:29 PM
  • User1904378495 posted

    I have had a similar issuing using jquery in a telerik mvc grid popup editor. I think it is because the popup editor partial is loaded as a string when the grid is loaded and then executed. I've had issues with this before and my solution was to have the grid navigate to a different page instead of a popup. For that though I couldn't use an edit command and I had to use a template column to create the action link to my edit page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 29, 2011 4:20 PM

All replies

  • User816717086 posted

    Ask it from support @ http://www.telerik.com/support.aspx

    there are more support tools @ http://www.telerik.com/products/aspnet-mvc/grid.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 29, 2011 3:29 PM
  • User1904378495 posted

    I have had a similar issuing using jquery in a telerik mvc grid popup editor. I think it is because the popup editor partial is loaded as a string when the grid is loaded and then executed. I've had issues with this before and my solution was to have the grid navigate to a different page instead of a popup. For that though I couldn't use an edit command and I had to use a template column to create the action link to my edit page.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 29, 2011 4:20 PM