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

RadWindow

2 Answers 29 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 28 Sep 2011, 11:13 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Kevin
Top achievements
Rank 2
answered on 28 Sep 2011, 01:08 PM
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.
0
Andrew
Top achievements
Rank 1
answered on 28 Sep 2011, 04:08 PM
Yeah, you were right! Thanx a lot
Tags
Window
Asked by
Andrew
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Andrew
Top achievements
Rank 1
Share this question
or