Telerik Forums
UI for ASP.NET AJAX Forum
27 answers
820 views
I've got a radGrid that allows in-place editing.   After the user makes changes to the row, and presses the CommandButton.Update button to commit the change, the following error message displays:

Sys.WebForms.PageRequestManagerServerErrorException:  An item with the same key has already been added.

I don't think we were getting this error until we replaced our demo version of Telerik asp.net controls with the purchased version this week. 

Interestingly, the row does in fact get persisted to the database.  However, this error is causing the row to stay in Edit mode.

Anyone else have this problem?  Any suggestions as to what I may be doing wrong?

Thanks!
Eyup
Telerik team
 answered on 28 Aug 2012
4 answers
366 views
If I include jQuery in a RadScriptManager like this (ignore the fact that I'm loading a different version, that just makes the problem easier to spot):

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true">
<CompositeScript>
<Scripts>
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" Path="~/SCRIPTs/jquery-1.8.0.min.js" />
</Scripts>
</CompositeScript>
</telerik:RadScriptManager>

And then add a Telerik control to the page:

<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
</telerik:RadDateTimePicker>

Then if you search among the files loaded (I used search in the Firebug script tab with the multiple files option ticked - search for 'jquery.org') then you'll see that there are two copies of jQuery loaded - the 1.8.0 one in a ScriptResource.axd file and the 1.7.2 one in a Telerik.Web.UI.WebResource.axd file.

If you turn script combining off then only one version of jQuery is loaded, the 1.8.0 one, however you then of course see about 12 separate script requests.

I'd like to use script combining, but I'd like to only load jquery once, how can I do this?
Dev
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
96 views
Hello,

This bug seems to be specific to Chrome. I'm currently using Chrome version 21.0.1180.79 m. RadEditor seems to be hijacking event handling to cause an exception in RadSplitter. The error that I'm getting is "Uncaught TypeError: Cannot read property 'tagName' of null". It's taken me a bit to narrow it down, but the following code reproduces. I'm using Telerik.Web.UI version 2011.3.1115.35

Steps to reproduce this error:
1. Click on the RadEditor to give it focus.
2. Try to slide the RadSplitter

Results: The split bar moves faster than your cursor. See stack trace below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadSplitter ID="pageSplitter" runat="server" LiveResize="True" Height="800px" Width="1200px">
          
            <telerik:RadPane ID="RadPane1" runat="server" Width="250px" MinWidth="250">
                <asp:Panel ID="pnlNavTree" runat="server">                     
                     
                </asp:Panel>                       
            </telerik:RadPane>
       
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" />
       
            <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None">
                <asp:Panel ID="pnlRightPane" runat="server">
                    <telerik:RadEditor runat="server" ID="Editor"></telerik:RadEditor>
                </asp:Panel>
            </telerik:RadPane>
         
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

Stack Trace:
Uncaught TypeError: Cannot read property 'tagName' of null Telerik.Web.UI.WebResource.axd:9418
Telerik.Web.UI.Editor.Selection.getParentElement Telerik.Web.UI.WebResource.axd:9418
a.RadEditor.getSelectedElement Telerik.Web.UI.WebResource.axd:9896
a.RadEditor.getToolValue Telerik.Web.UI.WebResource.axd:9928
Telerik.Web.UI.Editor.DefaultToolAdapter.setToolState Telerik.Web.UI.WebResource.axd:6740
Telerik.Web.UI.Editor.DefaultToolAdapter._onEditorSelectionChange Telerik.Web.UI.WebResource.axd:6891
(anonymous function) Telerik.Web.UI.WebResource.axd:6
(anonymous function) Telerik.Web.UI.WebResource.axd:6
Telerik.Web.UI.RadWebControl.raiseEvent Telerik.Web.UI.WebResource.axd:778
Type.callBaseMethod Telerik.Web.UI.WebResource.axd:6
a.RadEditor.raiseEvent Telerik.Web.UI.WebResource.axd:9661
a.RadEditor.set_html Telerik.Web.UI.WebResource.axd:10229
a.RadEditor.onParentNodeChanged Telerik.Web.UI.WebResource.axd:9884
a.RadEditor.repaint Telerik.Web.UI.WebResource.axd:10489
window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.repaintChildren Telerik.Web.UI.WebResource.axd:96
a.RadPane.set_width Telerik.Web.UI.WebResource.axd:2411
a.RadSplitter._resizeTwoPanesWithDelta Telerik.Web.UI.WebResource.axd:1664
a.RadSplitter._resizeAdjacentPane Telerik.Web.UI.WebResource.axd:1669
a.RadSplitter._resizePanes Telerik.Web.UI.WebResource.axd:2056
a.RadPane.resize Telerik.Web.UI.WebResource.axd:2421
a.RadSplitBar.onDrag Telerik.Web.UI.WebResource.axd:2819
a.ResizeExtender._raiseDragEvent Telerik.Web.UI.WebResource.axd:3526
a.ResizeExtender._resize Telerik.Web.UI.WebResource.axd:3608
a.ResizeExtender._onDocumentMouseMove Telerik.Web.UI.WebResource.axd:3675
(anonymous function)
Rumen
Telerik team
 answered on 28 Aug 2012
1 answer
71 views
Using InputType ="Text" mode it automatically allows adding new entries that don't exist in the datasource.
How do I turn this off?

In the documentation (http://www.telerik.com/help/aspnet-ajax/autocompletebox-items-selection.html) it talks about it being off automatically for InputType="Token", but no help for InputType ="Text" 
.
Ivana
Telerik team
 answered on 28 Aug 2012
2 answers
101 views
Hi, I have a RadGrid bringing data back from the database. When I add a new Item I have several ComboBoxes. The first is populated when the EditForm opens. I next want to bind the next ComboBox with the selected value of the first ComboBox when the selected value changes. How do I do it?

I have another 3 ComboBoxes (not shown yet) that will continue in the same way as each selected value changes.

    <telerik:RadGrid DataSourceID="dsActionList" ID="rdgActions" runat="server" CellSpacing="0"
        GridLines="None" AllowPaging="True" PageSize="10" EnableHeaderContextMenu="True"
        AutoGenerateColumns="False" ShowStatusBar="True">
        <ItemStyle CssClass="ItemStyle" />
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <ClientSettings EnableRowHoverStyle="True">
        </ClientSettings>
        <AlternatingItemStyle CssClass="AlternatingItemStyle" />
        <MasterTableView GridLines="None" CellSpacing="0" runat="server" DataKeyNames="PlanTestActionID"
            CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Action">
            <Columns>
                <telerik:GridTemplateColumn UniqueName="ViewEdit">
                    <ItemTemplate>
                        <asp:LinkButton Text='<%# Bind("ViewEditText") %>' runat="server" ID="btnViewEdit"
                            CommandName="Edit" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn HeaderText="Business Area" UniqueName="BusinessArea" DataField="BusinessAreaDesc">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Plan Description" UniqueName="PlanDescription"
                    DataField="PlanDescription">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Actual Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="ActualDate" DataField="ActualDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Action Title" UniqueName="ActionTitle" DataField="ActionTitle">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Target Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="TargetDate" DataField="TargetDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Action User" UniqueName="ActionUser" DataField="ActionUser">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Originator" UniqueName="Originator" DataField="Originator">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Completed Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="CompletedDate" DataField="CompletedTime">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Approved Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="ApprovedDate" DataField="ApprovedTime">
                </telerik:GridBoundColumn>
                <%--Hide the next 3 checkboxes and Date but give them a default insert value--%>
                <telerik:GridBoundColumn HeaderText="Cancelled Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="CancelledDate" DataField="CancelledDate" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DefaultInsertValue="false" DataField="Cancelled" DataType="System.Boolean"
                    UniqueName="hCancelled" Visible="False">
                </telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn DefaultInsertValue="false" DataField="Completed" DataType="System.Boolean"
                    UniqueName="hCompleted" Visible="False">
                </telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn DefaultInsertValue="false" DataField="Approved" DataType="System.Boolean"
                    UniqueName="hApproved" Visible="False">
                </telerik:GridCheckBoxColumn>
            </Columns>
            <EditFormSettings EditFormType="Template" PopUpSettings-Modal="True">
                <FormStyle BackColor="#E0ECFE"></FormStyle>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
                <FormTemplate>
                    <asp:HiddenField ID="hdnPlanTestActionID" runat="server" Value='<%# Bind("PlanTestActionID") %>' />
                    <asp:HiddenField ID="ViewEdit" runat="server" Value='<%# Bind("ViewEdit") %>' />
                   
                    <table>
                        <tr runat="server" id="trOriginatorDetails">
                            <td>
                                <asp:Label ID="Label34" runat="server" Text="Created By:"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblOriginatorUserID" runat="server" Text='<%# Bind("Originator") %>'></asp:Label>
                            </td>
                            <td width="50px">
                            </td>
                            <td>
                                <asp:Label ID="Label50" runat="server" Text="Create Time:"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblCreateTime" runat="server" Text='<%# Bind("CreateTime", "{0:dd MMM yyyy}") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr runat="server" id="trDropDowns">
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Select Business Area:"></asp:Label><br />
                                <asp:Label ID="Label3" runat="server" Text="Select Business Component:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadComboBox ID="ddlBusinessArea" runat="server" DataSourceID="dsBusinessAreaList"
                                    DataTextField="BusinessAreaDesc" DataValueField="BusinessAreaID" AppendDataBoundItems="True"
                                    AutoPostBack="True">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="" Value="0" />
                                    </Items>
                                </telerik:RadComboBox>
                                <br />
                                <telerik:RadComboBox ID="ddlBusinessComponent" runat="server" DataSourceID="dsBusinessComponentList"
                                    DataTextField="ProcessDesc" DataValueField="ProcessID" AppendDataBoundItems="True"
                                    AutoPostBack="True">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="" Value="0" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        .
                        .
                        .
                        <tr>
                            <td height="50">
                            </td>
                            <td>
                                <asp:LinkButton ID="btnUpdate" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                                    runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'></asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                    CommandName="Cancel"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
        </MasterTableView><HeaderStyle Font-Bold="True" />
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Outlook">
        </HeaderContextMenu>
    </telerik:RadGrid>

Tom
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
113 views
Hi,

I want a RadGrid with expand/collapse functionallity.
When expanding a selected row, I want to display another RadGrid with the same functionallity, but I want to display image or some data (not a table or grid).

I read about hirarchical grids, and I need something like a grid with detailtable that has nestedview template.
Is it possible to do something like this?
Is there an implementation for expand/collapse in DetailTable?
How can I call itemcreated function for the DetailTable?

Is there any example for something like this?

Thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Aug 2012
4 answers
73 views
Hi,
 I've added the spell checker to the tool bar and can see the function working normally except for when adding a word to the dictionary, I get the following error :-

RadSpell error. Server returned error: 403

 

Please, see the help for more details: RadSpell 3.x - Configuration - SpellCheckHandler.

 

/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Spell/Telerik.RadSpellCheckHandler.ashx

 

Forbidden

 

403 FORBIDDEN

 I've seen the same error responded to in the full version, and have set the network service with the relevant write permissions, but I'm still seeing a problem with this. Can you advise?

Thanks,
Jason.

Jason Brownhill
Top achievements
Rank 1
 answered on 28 Aug 2012
3 answers
359 views
Team,

I am removing all data rows of grid from client side.
I wanted to show 
"No records to display."
in grid.
But it does not shows empty row which contains "No records to display".
Please let me know from where I can set this empty row message from clientside?
Following is my code. 
This code works if grid doesn't contain any data but if grid contains the data then it removes the row from the grid but doesn't show
 "No records to display". 

var mastertableview = objgrid.get_masterTableView();
mastertableview.set_dataSource({});
mastertableview.set_virtualItemCount(1);
mastertableview.dataBind();

Regards,
Sampada
Radoslav
Telerik team
 answered on 28 Aug 2012
3 answers
117 views
Hi, 
I am using RadTabStrip with "Metro" skin. By default this skin is blue.

Is it possible to set a custom color of that RadTabStrip?

br,
Jan
Shinu
Top achievements
Rank 2
 answered on 28 Aug 2012
3 answers
253 views
Hi,

I try to edit rows in a RadGrid with EditFormSettings :

<EditFormSettings UserControlName="Controles/ManteminientoGridFacturasGastos.ascx" EditFormType="WebUserControl">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>


When i invoke the click event from the button insert on ManteminientoGridFacturasGastos.ascx i'm not able to capture this event on the RadGrid.
<td>
                        <telerik:RadButton ID="cBtnInsertar" runat="server" Text="Insertar" CommandName="Insert" Visible='<%# (DataItem is Telerik.Web.UI.GridInsertionObject) %>' />
                        <telerik:RadButton ID="cBtnModificar" runat="server" Text="Modificar" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' />
                    </td>
                    <td>
                        <telerik:RadButton ID="cBtnCancelar" runat="server" Text="Cancelar"
                            CausesValidation="false" CommandName="Cancel" onclick="cBtnCancelar_Click" />
                    </td>

For example, when i push the button cBtnInsertar i want to activate the event RadGrid1_InsertCommand on RadGrid but it not invoked.

I need help.

Best regards,
Andrey
Telerik team
 answered on 28 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?