Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hello,

Whenever I edit a row on radgrid, it appears that the whole grid is sent back by the server. I am editing the row with a modal popup box that is filled with a webusercontrol.

When I watch the traffic (with fiddler), it looks like this:

Initial load of grid: 123K
Entering Edit mode on a row: 184K
Exiting Edit mode: 117K

Two things I like to do:
1) When I enter editmode, only what is required for the popup to show would be sent.
2) When I exit edit mode, the popup would disappear and only the editedrow would be refreshed by the server.

Is this possible?
Edited: I am using RadAjaxManager and RadScriptManager on the page.

Thanks,
 
Sylvain

Schlurk
Top achievements
Rank 2
 answered on 06 Nov 2009
3 answers
306 views
I'm getting the following Spell Check Handler Server Error.  I have followed the instructions to add spellchecking for my radeditor, including making sure the radspell directory and its contents is in the App_Data folder and adding the handler in my web.config.  I added it manually by pasting in <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/> and I had added it automatically, and note that the handler

<

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

validate="false" />

 

was already in there.  They're both in now and I'm still getting the error.  Any ideas?  The error comes up when I try to click on the spellcheck button.

One potential issue: I'm trying to run RadEditor and RadEditor for Ajax on the same site for testing purposes.  Would there be conflicts?

Thanks.

Laurie

And here's the error message I'm getting in a pop-up:


Spell Check Handler Server Error:500
<html>

    <head>

        <title>Configuration Error</title>

        <style>

         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

         pre {font-family:"Lucida Console";font-size: .9em}

         .marker {font-weight: bold; color: black;text-decoration: none;}

         .version {color: gray;}

         .error {margin-bottom: 10px;}

         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

        </style>

    </head>

 

    <body bgcolor="white">

 

            <span><H1>Server Error in '/AgPlanDev' Application.<hr width=100% size=1 color=silver></H1>

 

            <h2> <i>Configuration Error</i> </h2></span>

 

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

 

            <b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

            <br><br>

 

            <b> Parser Error Message: </b>Could not load file or assembly 'Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<br><br>

 

            <b>Source Error:</b> <br><br>

 

            <table width=100% bgcolor="#ffffcc">

               <tr>

                  <td>

                      <code><pre>

 

Line 57:     validate=&quot;false&quot; /&gt;

Line 58:    &lt;add verb=&quot;*&quot; validate=&quot;false&quot; path=&quot;Telerik.Web.UI.SpellCheckHandler.axd&quot; type=&quot;Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI&quot;/&gt;

<font color=red>Line 59:    &lt;add path=&quot;Telerik.Web.UI.SpellCheckHandler.axd&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4&quot;

</font>Line 60:     validate=&quot;false&quot; /&gt;

Line 61:    &lt;add path=&quot;Telerik.Web.UI.DialogHandler.aspx&quot; verb=&quot;*&quot; type=&quot;Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4&quot;</pre></code>

 

                  </td>

               </tr>

            </table>

 

            <br>

 

            <b> Source File: </b> C:\websites\CFFM\BizPlan\working folder\AgPlanDev\web.config<b> &nbsp;&nbsp; Line: </b> 59

            <br><br>

 

            <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Telerik.Web.UI, Version=2008.1.515.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' could not be loaded.<br><br>

 

            <table width=100% bgcolor="#ffffcc">

               <tr>

                  <td>

                      <code><pre>

 

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

</pre></code>

 

                  </td>

               </tr>

            </table>

 

            <br>

 

            <hr width=100% size=1 color=silver>

 

 

Laurie
Top achievements
Rank 2
 answered on 06 Nov 2009
1 answer
88 views
I am using a RadGrid with EditMode set to Popup. I would like to be able to change the image in the title bar. (See attached). I found the entries for changing the text format but not for the close (x) button. Please let me know how this can be changed.

Lauren Kirschner
Lauren
Top achievements
Rank 1
 answered on 06 Nov 2009
4 answers
171 views
Hi Telerik-Team

Since version Q3 a probleme occur if the cursor  moves over the tapsrtip in the radwindow. This happens only on client side without any postback to codebehind. There are no defined action on the tabs. Only the thinks are defined trough the CSS-Class or Skin. Here I use Office2007 Skin. See also the atchemnt. The error is "className  is null or no object".

Thanks a lot.
Matt
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
127 views
I have a RadGrid in a UserControl (.ascx) file.  In the javascript, I want to get a reference to the grid itself.  However, calling

 $find("<%= UserContactsGrid.ClientID %>") 

returns null.  Is there a problem with finding grids inside of ascx controls?

Thanks.
Daniel
Telerik team
 answered on 06 Nov 2009
2 answers
81 views
Hey guys,
Here's the situation.
I have a radgrid with a dropdown box with different ways to export the grid data that also triggers a confirm type form to pop up.
The form asks the user if they want to perform other tasks before exporting: yes or no, then the window is closed and sends an AJAX request to perform either option. But in both cases, although the export method is hit, nothing gets exported. I have had the grid wrapped in an AJAXPanel and not but it hasn't made a difference.
Please help! Thank you
Aaron

function exportGrid() {  
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("ExportGrid");  
        }     
 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">  
            <AjaxSettings>  
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="rgAcctTrans" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting>  
            </AjaxSettings>  
        </telerik:RadAjaxManager>  
 
           protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)  
        {  
 if (e.Argument == "ExportGrid")  
            {  
                try 
                {  
                    string dateExtension = string.Empty;  
                    string to = string.Empty;  
                    string from = string.Empty;  
                    if ((dpFrom.SelectedDate.HasValue) || (dpTo.SelectedDate.HasValue))  
                    {  
                        if (dpTo.SelectedDate.HasValue)  
                            to = dpTo.SelectedDate.Value.ToString("dd.MM.yyyy");  
                        if (dpFrom.SelectedDate.HasValue)  
                            from = dpFrom.SelectedDate.Value.ToString("dd.MM.yyyy");  
                        dateExtension += "." + from + "-" + to;  
                    }  
                    if ((dpBilledFrom.SelectedDate.HasValue) || (dpBilledTo.SelectedDate.HasValue))  
                    {  
                        if (dpBilledFrom.SelectedDate.HasValue)  
                            from = dpBilledFrom.SelectedDate.Value.ToString("dd.MM.yyyy");  
                        if (dpBilledTo.SelectedDate.HasValue)  
                            to = dpBilledTo.SelectedDate.Value.ToString("dd.MM.yyyy");  
                        dateExtension += ".Billed-" + from + "-" + to;  
                    }  
 
 
                    rgAcctTrans.ExportSettings.ExportOnlyData = false;  
                    rgAcctTrans.ExportSettings.FileName = "Transactions" + dateExtension;  
                    rgAcctTrans.ExportSettings.IgnorePaging = true;  
                    rgAcctTrans.ExportSettings.OpenInNewWindow = false;  
 
                    rgAcctTrans.Columns[0].HeaderStyle.HorizontalAlign = HorizontalAlign.Left;  
                    rgAcctTrans.Columns[0].ItemStyle.HorizontalAlign = HorizontalAlign.Left;  
                    rgAcctTrans.Columns[1].HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
                    rgAcctTrans.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
                    //rgAcctTrans.Rebind();  
 
                    switch (ddlExportTo.SelectedValue)  
                    {  
                        case "Excel":  
                            {  
                                rgAcctTrans.MasterTableView.ExportToExcel();  
                                break;  
                            }  
                        case "Word":  
                            {  
                                rgAcctTrans.MasterTableView.ExportToWord();  
                                break;  
                            }  
                        case "CSV":  
                            {  
                                rgAcctTrans.MasterTableView.ExportToCSV();  
                                break;  
                            }  
                    }  
                      
                    ddlExportTo.Items[0].Selected = true;  
                }  
                catch (Exception ex)  
                {  
                    lblMessage.Text = "An error has occurred. <br/> " + ex.Message;  
                } 
            }
        } 
Aaron
Top achievements
Rank 1
 answered on 06 Nov 2009
2 answers
131 views
Hello,

My code running since long time through various version is totally broken by Q3.2009 version.

Main problem is an exception in RadWebControl.LoadPostData: Invalid Json primitive.
Something has been changed in the way RadDock save its data, i am using a code common from forum to save the Dock position, something like this:

/// Called by DockLayout just after Init  
        protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e)  
        {           foreach (DockState state in CurrentDockStates)  
            {  
                                e.Positions[state.UniqueName]   =   state.DockZoneID;  
                e.Indices[state.UniqueName]     =   state.Index;  
            }  
} 

and

/// Called by DockLayout just after PreRender  
        protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)  
        {  
            //Save the dock state in the session. This will enable us   
            // to recreate the dock in the next Page_Init.   
            List<DockState> lst     =   RadDockLayout1.GetRegisteredDocksState();  
            CurrentDockStates       = lst;  
        } 

Second problem is that the grid I was installing in a dock to take its full width seems now greater that the available space and it generate scrollers ! Very ugly !!!

The code which was working without scrollers

<telerik:RadDockLayout runat="server" ID="RadDockLayout1">  
<telerik:RadDock ID="GridDock" Title="SELECTED" Top="150px" Left="70%"   
    style=" margin-left:auto; margin-right:auto; min-width:305px;min-height:200px;" DefaultCommands='PinUnpin' Pinned="false" DockMode="Floating" 
        runat="server" > 
        <Commands> 
        <telerik:DockPinUnpinCommand  AutoPostBack="true" /> 
        </Commands> 
        <ContentTemplate> 
        <telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" AutoGenerateColumns="False" style=" border-left-width:0; border-right-width:0; border-top-width:0; border-bottom-width:1; border-bottom-style: solid; width:303px;min-height:200px;" > 
        <MasterTableView> 
            <ExpandCollapseColumn Visible="False" Resizable="False">  
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <RowIndicatorColumn Visible="False">  
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" 
                    ItemStyle-Width='200px' UniqueName="Name">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Parameter" HeaderText="PARAMETER" 
                    ItemStyle-Width='200px' UniqueName="Parameter">  
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
        </telerik:RadGrid> 
        </ContentTemplate> 
    </telerik:RadDock>   
</telerik:RadDockLayout> 
 


Thanks for urgent help.

CS

Petio Petkov
Telerik team
 answered on 06 Nov 2009
1 answer
180 views
Have you guys considered adding a Windows 7 theme for the Toolbar control (or was it added in Q3)? It's mostly just a recolor of the Vista version, but the Windows 7 color scheme is considerably more pleasing and blends in better with other similarly themed UI elements. Apologies if this has been asked before. Thanks!
Kamen Bundev
Telerik team
 answered on 06 Nov 2009
1 answer
170 views

Hi,

I am using below template in grid :-

 
<telerik:GridTemplateColumn HeaderText="SequenceOrder" Groupable="false" Visible="true">
<ItemTemplate>
<telerik:RadNumericTextBox ID="txtSequence" runat="server" MaxLength="5" NumberFormat-DecimalDigits="0">
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>

This is done to assign a sequence to existing RowItems.

Hence when a user enters some number in above textbox and press a button the sequence is updated in database.
And when the user loads the application this textboxes are populated with previously entered sequence at runtime in ItemDataBound Event as below :-
 
 

RadNumericTextBox txtSequence = e.Item.FindControl("txtSequence") as RadNumericTextBox;
DataTable table = GetSequenceData();
if (table != null)
{
 if (table.Rows.Count == 1)
 {
  txtSequence.Text = table.Rows[0][0].ToString();
 }
}

Is there any way i can sort rows of this grid based on entered sequence values.

Pavlina
Telerik team
 answered on 06 Nov 2009
3 answers
248 views
Ive uploaded my website to a hosted environment and im getting an error with the upload progress component.
In my web.config file i have this line

<add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/>

but im getting this error

RadUpload Ajax callback error. Source url returned invalid content:



<html>

    <head>

        <title>The resource cannot be found.</title>

        <style>

         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

         pre {font-family:"Lucida Console";font-size: .9em}

         .marker {font-weight: bold; color: black;text-decoration: none;}

         .version {color: gray;}

         .error {margin-bottom: 10px;}

         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

        </style>

    </head>



    <body bgcolor="white">



            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>



            <h2> <i>The resource cannot be found.</i> </h2></span>



            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">



            <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.

            <br><br>



            <b> Requested URL: </b>/Telerik.RadUploadProgressHandler.ashx<br><br>



    </body>

</html>





../Telerik.RadUploadProgressHandler.ashx?RadUrid=4ccf6f2b-5268-462d-abc0-d5fc9c3dcd15



Did you register the RadUploadProgressHandler in web.config?



Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.



Vesko
Top achievements
Rank 2
 answered on 06 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?