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

[Solved] How to get the value from popup window?

1 Answer 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Goran
Top achievements
Rank 1
Goran asked on 12 Feb 2013, 06:49 AM
Hi,

We use Telerik's grid for VS2008. We added context menu to grid and one of option is to export grid data to MS Excel file. I've created the popup window that opens when we choose that option from context menu. The window opens up and we have Telerik's combo box on it.

My question is - how can I get the value of chosen option from combo box when click "OK" and proceed further in ASP.NET code? The code that should be executed to export grid data to MS Excel file is as following:

this.Grid.ExportSettings.ExportOnlyData = true;
this.Grid.ExportSettings.OpenInNewWindow = true;
this.Grid.MasterTableView.ExportToExcel();

We have 2 options in combo box: export all data from grid or export only selected data. It means I need to know which option has been chosen in order to proceed.

I need some code sample.

Thank you in advance,

Goran

1 Answer, 1 is accepted

Sort by
0
Accepted
Angel Petrov
Telerik team
answered on 14 Feb 2013, 03:00 PM
Hi Goran,

You can try using the SelectedIndexChanged event of the combo to configure the grid for exporting.

Regards,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Goran
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or