Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hi there,

Is it possible to return the generated svg_vml html as a string?

John
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2013
16 answers
282 views
Hi I've a problem
When i click the button for export to pdf in my radscheduler it's going to exception.
This problem has occured when i updated of the telerik version (2011.3.1202.40)
I attach the printscreen error

Best Regards
Boyan Dimitrov
Telerik team
 answered on 18 Oct 2013
1 answer
200 views
Hi,
I want to get the count of radgrid bound columns? How to get this?

Thanks,
Erin
Princy
Top achievements
Rank 2
 answered on 18 Oct 2013
1 answer
168 views
i want to create a facebook globe icon notification for my application. i planned to use image button. Please help me.... i need some sample code snippet
Princy
Top achievements
Rank 2
 answered on 18 Oct 2013
6 answers
94 views
I have a completely code-behind solution with a RadAjaxManager and Radgrid.  Unfortunately, the RadAjaxManager disables the Page Size drop down list of the RadGrid, unless I have otherwise interacted with the grid already.  For example, if I move from one page to another the Page Size drop down list will then be enabled.  Does anyone have any thoughts?

I have commented out the RadAjaxManager and put the grid in a RadAjaxPanel, and it appears to function properly.

Thanks,
Mark
Kostadin
Telerik team
 answered on 18 Oct 2013
1 answer
376 views
I need to be able to get the selected row that contains a combobox when the combobox selectedindex changes.  I have a radgrid that contains a combobox control in one of the columns.  At runtime the combo box is populated and set to the proper selection during the itemdatabound method.  The user can then change the selected item in the combobox which I need to grab other cell values in that same grid row.  All this needs to be done in javascript.  I have found articles where I need to get combobox.parent.parent to get the selected index row which I have been able to achive by doing 

var parent = sender.get_parent;
var grandparent = parent.get_parent;

But have not been able to successfully get the selected row to be able to get values from other cells in that row.  Any suggestions on how to get the information out using javascript would be appreciated

Thanks
Justin
Princy
Top achievements
Rank 2
 answered on 18 Oct 2013
6 answers
121 views
Hi,

I have a RadGrid implemented where I use a column in the dataset that is not shown to sort a column (Quality_Sort) that is shown in the RadGrid.
I do this by assigning the 'sort'-column to the sortexpression of the boundcolumn.
boundColumn.SortExpression = "Quality_Sort";

The GridBoundColumn can have value 'Low', 'Medium' and 'High'.
In the column 'Quality_Sort' these values are represented as 1, 2 and 3.

When I click on the header of the column the sorting works as expected ('Low' > 'Medium' > 'High'). When I select the option 'Sort Ascending' from the headercontextmenu the sorting will result in an alphabetical sorting ('High' > 'Low' > 'Medium').

Is this a bug?

Paul
Paul Evers
Top achievements
Rank 2
 answered on 18 Oct 2013
1 answer
743 views
Hi

This is my first time at using this control, and using the most basic markup:

<telerik:RadSearchBox ID="rsbSearch" runat="server" ></telerik:RadSearchBox>

I get a 'message from webpage' error saying 'Datasource not set' for every character. When I get past this I get the search string in the .Search event.
What am I doing wrong?

Andy

Shinu
Top achievements
Rank 2
 answered on 18 Oct 2013
7 answers
331 views
Hi,

I upgrade to IE 10 today and was debugging my website that uses Telerik AJAX Controls (Version 2011.2.915.40) and am getting a

JavaScript runtime error: SCRIPT5007: Unable to get property 'documentElement' of undefined or null reference
ScriptResource.axd, line 147 character 2


This happens when I click the arrow on the combobox (also happens when I hover over a RadGrid).
I noticed that it happens only when I am debugging the site on IE10 (Even happens if I choose 'Start without debugging' option in VS 2010).

If I host the site on IIS 7.5 and open it in IE 10, then I don't get the JavaScript error, however the combobox does not drop down.

This does not happen in any other browser (Firefox and Chrome).

I appreciate any suggestions to fix this.

Regards,

Yash
Gregory
Top achievements
Rank 1
 answered on 18 Oct 2013
5 answers
622 views
Hi, I have an issue that I can't solve with RadWindow and RadAjaxManager

When the user closes a RadWindow after editing something (for example editing an appointment from RadGrid or editing a row from RadSchedule), and clicks the OK button (that does something server side with a callback in C#), the control will postback despire RadAjaxManager setting. This is very annoying because the page is entirely redrawn.

When the user open the popup (that is also a server side event) RadAjaxManager works correctly and postback does not happen.

Any Idea?

This is my scenario taken by the example of editing a radschedule with a custom radwindow popup:

Radmanager is

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>                       
           <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="calendarPopup" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnOk">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnCancel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>


Here is the RadWindow:

<telerik:RadWindow ID="calendarPopup" runat="server" Skin="Windows7" AutoSize="True"
                            Animation="Fade" EnableShadow="True" Modal="True" Opacity="100">
                            <Localization Maximize="<%$ Resources:RadWindow, Maximize %>" Minimize="<%$ Resources:RadWindow, Minimize %>"
                                Close="<%$ Resources:RadWindow, Close %>" PinOff="<%$ Resources:RadWindow, PinOff %>"
                                PinOn="<%$ Resources:RadWindow, PinOn %>" Reload="<%$ Resources:RadWindow,Reload %>"
                                Restore="<%$ Resources:RadWindow, Restore%>" Cancel="<%$ Resources:RadWindow, Cancel %>" />
                            <ContentTemplate>
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <asp:Literal ID="lblAppointmentName" runat="server" Text="Nome del Calendario"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtAppointmentName" runat="server" Width="250px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Literal ID="lblAppointmentDescription" runat="server" Text="Descrizione Evento"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtAppointmentDescription" runat="server" Width="250px" TextMode="MultiLine"
                                                Height="200"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="float: right;">
                                            <br />
                                            <telerik:RadButton ID="btnOk" runat="server" Text="Salva" OnClick="btnOk_Click" Skin="Windows7">
                                                <Icon PrimaryIconCssClass="rbOk" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                            </telerik:RadButton>
                                            <telerik:RadButton ID="btnCancel" runat="server" Text="Annulla" OnClick="btnCancel_Click"
                                                Skin="Windows7">
                                                <Icon PrimaryIconCssClass="rbCancel" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                            </telerik:RadButton>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </telerik:RadWindow>

Here is the Callback used to open the popup (that works with ajax)

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
        {
            e.Cancel = true;
 
            switch (e.Mode)
            {
                case SchedulerFormMode.AdvancedEdit:
                case SchedulerFormMode.Edit:
                    {
                        calendarPopup.Title = "Edit Appointment";
 
                        // Edit inizializing code here
                    }
                    break;
                case SchedulerFormMode.AdvancedInsert:
                case SchedulerFormMode.Insert:
                    {
                        calendarPopup.Title = "Create Appointment";
 
                        txtAppointmentName.Text = String.Empty;
                        txtAppointmentDescription.Text = String.Empty;
                    }
                    break;
            }
 
            //This will open the popup!
            string script = "function f(){$find(\"" + calendarPopup.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
        }


And Here is the callback that does not work.. because every time it closes the popup it will redraw the entire page:

protected void btnCancel_Click(object sender, EventArgs e)
        {
            //This will close the popup!
            string script = "function f(){$find(\"" + calendarPopup.ClientID + "\").hide(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
        }
 
         protected void btnOk_Click(object sender, EventArgs e)
         {
             //This will close the popup!
             string script = "function f(){$find(\"" + calendarPopup.ClientID + "\").hide(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
             ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
 
//Creating or Saving appointment here
         }


Where am I Wrong? The same behaviour happens with the RadGrid. I suppose it is a wrong AjaxManager Setting.. but I read carefully and I didn't find nothing for my scenario.

Thanks for any help 
Marin Bratanov
Telerik team
 answered on 18 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?