RadWindow

3 posts, 1 answers
  1. Andrew
    Andrew avatar
    5 posts
    Member since:
    May 2011

    Posted 28 Sep 2011 Link to this post

    Here is my problem:

    I have RadWindow with NavigateUrl
    function ShowDriverWindow(sender, eventArgs) {
                  var hack = "499628";
                   var url = "DriverInfo.aspx?hack=" + hack;
                   var oWnd = radopen(url, "RadWindowDriverInfo");
                   eventArgs.set_cancel(true);
               }

    I pass the parameter "hack" to the navigate page.
    On this page i have LINQ querry to get info about this driver in Page_Load().
    var driverInfo = (from dr in db.T_DRIVERs
                                    where dr.HACK_ID == int.Parse(hackId)
                                     select new {
                                     ...
                                     dr.MEDALLION_ID,
                                     ...
                               }).Single();

    then I set the Selected Value in RadComboBox according to the LINQ querry
    RadComboBoxSteadyMedl.SelectedValue =
                            driverInfo.MEDALLION_ID.ToString();

    And now my problems start. I have "Save" button. When i change value in RadComboBox and click "Save" i still have predefined value. So
    no changes are done.

    If I Don't set the driver's medallion in Page_Load() everything works fine! after selecting new item in ComboBox I have new "selected value" in SaveButton_Click.

    Any ideas??? 










  2. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 28 Sep 2011 Link to this post

    Hello Andrew,

    Are you checking the IsPostBack in your Page_Load event when you check the query string. From your description, it sounds like you aren't performing this check and it just keeps re-selecting the item that was passed in the query string.

    I hope that helps.
  3. Andrew
    Andrew avatar
    5 posts
    Member since:
    May 2011

    Posted 28 Sep 2011 Link to this post

    Yeah, you were right! Thanx a lot
Back to Top