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

radCombo PostBack issue - OnClientSelectedIndexchanged

3 Answers 117 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Bose
Top achievements
Rank 1
Bose asked on 17 May 2010, 05:30 PM
Hi

   I have a scenario in my application to display the radconfirm when the user changes the item in the radcombo.
   I am having my radcombo inside usercontrol and i am using the usercontrol in the aspx page to load the data.
   In order to trigger the onchange event i have added onclientselectedIndexcchanged event in codebehind and the corresponding Javascript event in the aspx page.
   The issue is that i am not able to retain the radconfirm because of the postback issue. 
    Please let me know if there are any other approaches to retain the radconfirm. To be clear i have not used any AJAX for my radCombo.

  Requirement:

            After the user changes the Item in the radCombo the user will get a confirmation message.
  
 Javascript:
 

 function TextChange(sender, eventArgs) {
         radconfirm("test", event, 350, 100, null, "test");
        }

 

Code Behind :

cmbRadCombo.RadCombo.OnClientSelectedIndexChanged = "TextChange";

Your earliest reply is appreciated.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 May 2010, 02:55 PM
Hello Bose,

Here is the forum link which describes similar functionality. I hope this helps.
Want Rad Confirm on Selected Item Changed

Regards,
Princy.
0
Bose
Top achievements
Rank 1
answered on 18 May 2010, 10:22 PM

Hi Princy,

   Thanks for your quick response.
    I was able to go through the URL which you send me that has the similar functionality.

    That did not solve the problem it still remains the same. The main issue is the radconfirm does not stay back because of the radCombo PostBack issue.

    I am able to see the radconfirm but still it does not wait for the user action,

    Please let me know if there is any other approach or other alternatives to solve this problem. I am trying to populate the radCombo data from the DataBase.

   Your earliest reply is appreciated.

 

0
T. Tsonev
Telerik team
answered on 20 May 2010, 02:20 PM
Hello Bose,

The radConfirm and radAlert dialogs don't block the execution of JavaScript on the page and will not stop the postback. Your options are:

  • Use "regular" confirm which will block the UI
  • Cancel the selectedIndexChanging event, store the new value, show radConfirm, change the value through the API

I hope this hepls.
Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Bose
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bose
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or