Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
591 views

I have an ASP.Net page that uses the ProgressBar when user clicks on EXPORT button to export data to an Excel (.xlsx) file.  It works great.

Now the question is that is there a way to use that ProgressBar or the ProgressArea when executing a long running SQL statement?

When the user clicks on the EXPORT button, the VB code-behind looks at the RadRadioButtonList to determine which was selected and run the appropriate Export process.  The RadRadioButtonList has EXCEL, PDF, and TABLE.  When EXCEL is selected, the ProgressBar is used to show progress of exporting data to an Excel file.  Exporting to PDF does not use the ProgressBar.  I would like to have a way to show the ProgressBar or use the ProgressArea when exporting to a TABLE which basically means it using the SQL INSERT statement to insert records from a SELECT statement into another table.

Please help!

Thanks!

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 21 Jul 2016
1 answer
227 views
I apologize for cross posting but couldn't decide what made the most sense :(

I need to run a couple of discrete stored proc when I do my update from a grid.  I need to check if the combobox selection indicates a change to one field and if so execute etc.
I can't for the life of me figure out how to get that value, I tried an selectedindexchanged event and that doesn't seem to work either. I'd be very grateful for a nudge in the right direction as I'm veryyyyyyyyyy rusty :(

Here's what I tried most recently:

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
{

if (e.CommandName == "Update")
{


GridEditableItem item = (GridEditableItem)e.Item;
RadComboBox combo =(RadComboBox)item.FindControl("updateComboBox");
var status = (string)item.GetDataKeyValue("status");
if (combo.SelectedItem.Text!= status)
{
 // Do my update...
}
Peter Milchev
Telerik team
 answered on 21 Jul 2016
1 answer
269 views

i received the error about Telerik dialog require http handlers in web.config.

i have added the following to my web config

previously i was developing as a asp.net web application and i did not have this issue.

after integrating the ascx file which contain the Editor control into Sharepoint 2013 as a custom web part, i encounter this issue

01.<system.web>
02.    <httpHandlers>
03.      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
04.      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
05.      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
06.    </httpHandlers>
07.</system.web>
08.  <system.webServer>
09.<handlers>
10.<remove name="Telerik_Web_UI_WebResource_axd" />
11.      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
12.      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
13.      <remove name="Telerik_RadUploadProgressHandler_ashx" />
14.<remove name="ChartImage_axd" />
15.      <!-- This is the primary handler used to fetch most of the needed resources -->
16.      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
17.      <!-- Only needed for RadSpell and RadEditor's spell checking -->
18.      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
19.      <!-- Only needed for controls that have complex dialogs like RadEditor, RadImageEditor -->
20.      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
21.      <!-- Only needed if RadAsyncUpload, RadProgressArea/RadProgressManager or the obsolete RadUpload are used -->
22.      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
23.      <!-- Only needed if the obsolete RadChart control is used -->
24.      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
25.</handlers>
26.  </system.webServer>

Vessy
Telerik team
 answered on 21 Jul 2016
5 answers
262 views
Hi,

In a scheduler
I want to scroll dynamically to an appointment which is the starting one in week and day view. Please help me.


Thanks.
Veselin Tsvetanov
Telerik team
 answered on 21 Jul 2016
2 answers
95 views

I am using the GridAttachmentColumn with batch editing. The files are upload fine and I'm using the following code to get the uploaded files. 

Directcast(grdTemplates.MasterTableView.GetBatchEditorContainer("RequestAttachments").Controls(0), RadAsyncUpload).UploadedFiles

However, I cannot tell which file each file belongs to which row. I thought using the AttachmentKeyFields would work, but that doesn't seem to be the answer. Any help would be much appreciated. 

 

Sam
Top achievements
Rank 1
 answered on 21 Jul 2016
1 answer
317 views

Hi all...

 

I need to run a couple of discrete stored proc when I do my update from a grid.  I need to check if the combobox selection indicates a change to one field and if so execute etc.

I can't for the life of me figure out how to get that value, I tried an selectedindexchanged event and that doesn't seem to work either. I'd be very grateful for a nudge in the right direction as I'm veryyyyyyyyyy rusty :(

 

Here's what I tried most recently:

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
{

if (e.CommandName == "Update")
{


GridEditableItem item = (GridEditableItem)e.Item;
RadComboBox combo =(RadComboBox)item.FindControl("updateComboBox");
var status = (string)item.GetDataKeyValue("status");
if (combo.SelectedItem.Text!= status)
{

 // Do my update...
}

Viktor Tachev
Telerik team
 answered on 21 Jul 2016
1 answer
352 views
Is it possible to add a button control to the list box item?  I was able to add images to each item, but i want to make these images to button icons. 
Ivan Danchev
Telerik team
 answered on 21 Jul 2016
1 answer
90 views

I have a RadScheduler where I want to show details in a ToolTip from a context menu "Details...".

I got it all working, e.g. context menu is selectable, the code is called, data is being loaded and a tooltip is showing up, 

BUT:

The tooltip always load the same tooltip for one appointment no matter on which appointment I select the context menu. It seems like it doesn't promote the AppointmentId or it doesn't see which appointment was right-clicked. 

Any hints?

I have this code in 'AppointmentContextMenuItemClicked()  where I call .Show() on the RadToolTipManager:

01.protected void RadSchedulerPlanning_AppointmentContextMenuItemClicked(object sender, AppointmentContextMenuItemClickedEventArgs e)
02.        {
03.            AppointmentContextMenuItemClickedEventArgs args = e;
04.          
05.            if (e.MenuItem.Value == "CommandDetails")
06.            {
07.                string id = e.Appointment.ID.ToString();
08. 
09.                foreach (string domElementID in e.Appointment.DomElements)
10.                {
11.                    RadToolTipManager1.TargetControls.Add(domElementID, id, true);
12.                }
13. 
14.                RadToolTipManager1.Show();
15.            }
16.        }

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
1 answer
72 views

radnotification does not work on the pages with telerik.reportviewer.

Does it required some additional coding

Thank you for your reply

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
1 answer
252 views

I'm trying to automatically open an appropriate page on a popup modal. My page design is I've got a RADGRID with an edit button for each column. Each row has a unique ID (lets say row 1 is 1, row 2 is 2 and etc.). Each cell has a unique ID number as well. Currently, I've got a popup modal that appears when you click edit on a row in the radgrid. The modal displays all the editable cellsfor that unique row. You then have to click through a cell name/id to fire the "edit" command to code behind that opens up a new page in the modal specific for that cell name/id. The edit button takes in hidden row details of the modal. How can I click on a cell (not a row) and open up the appropriate modal page to edit that cell without having to select the cell on the modal?

 

If this is too confusing or more information is needed I will explain it a bit better.

Marin Bratanov
Telerik team
 answered on 21 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?