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

[Solved] Radgrid edit error, entering url or html

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 29 Apr 2013, 04:50 PM
Hi, I am trying to allow inline editing of a radgrid, and I have a column that can either be text (including html) or a url. When we try to edit this row and accept or cancel the changes, in google chrome nothing happens, in internet explored and unhandled exception is thrown. Am I not able to accept html/urls?

Attached is the error from ie. Thanks.

<telerik:RadGrid ID="rgMain" runat="server" AllowPaging="false" AllowSorting="false"
                        AllowMultiRowSelection="false" AutoGenerateColumns="False" OnItemCommand="rgMain_ItemCommand"
                        HorizontalAlign="NotSet" AllowAutomaticDeletes="False" AllowAutomaticInserts="False"
                        AllowAutomaticUpdates="true" Width="100%" VirtualItemCount="0" AllowFilteringByColumn="false"
                        ShowGroupPanel="False">
                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                        <ClientSettings ReorderColumnsOnClient="false" AllowColumnsReorder="false" EnableRowHoverStyle="false"
                            AllowGroupExpandCollapse="true" AllowExpandCollapse="true" />
                        <MasterTableView DataKeyNames="DryRunDetailsID" GridLines="None" AllowMultiColumnSorting="True"
                            AutoGenerateColumns="False" HorizontalAlign="NotSet" CommandItemDisplay="Top"
                            EditMode="InPlace" AllowAutomaticUpdates="true" GroupLoadMode="Client">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                            <HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
                            <AlternatingItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                            <GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <SelectFields>
                                        <telerik:GridGroupByField FieldAlias="DryRunDate" FieldName="DryRunDate" FormatString="{0:dddd MMMM d}"
                                            HeaderText="Date"></telerik:GridGroupByField>
                                    </SelectFields>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldAlias="DryRunDate" FieldName="DryRunDate" SortOrder="Ascending"
                                            FormatString="{0:dddd MMMM d}"></telerik:GridGroupByField>
                                    </GroupByFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="">
                                    <ItemTemplate>
                                        <asp:Label ID="lblRowCount" runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                                    <ItemStyle CssClass="MyImageButton" />
                                </telerik:GridEditCommandColumn>
                                <telerik:GridDropDownColumn DataField="ClassID" DataSourceID="SqlDataSource1" HeaderText="ClassNumberPrefix"
                                    ListTextField="ClassNumberPrefix" ListValueField="ClassID" UniqueName="ClassNumberPrefix"
                                    EnableEmptyListItem="true" EmptyListItemText=" " EmptyListItemValue="0">
                                </telerik:GridDropDownColumn>
                                <telerik:GridBoundColumn UniqueName="PrimaryPresenter" SortExpression="PrimaryPresenter"
                                    HeaderText="Primary Presenter" DataField="PrimaryPresenter" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="DryRunStartTime" HeaderText="Start Date" SortExpression="DryRunStartTime" UniqueName="DryRunStartTime" DataType="System.DateTime" PickerType="DateTimePicker"></telerik:GridDateTimeColumn>
                                <telerik:GridDateTimeColumn DataField="DryRunEndTime" HeaderText="End Date" SortExpression="DryRunEndTime" UniqueName="DryRunEndTime" DataType="System.DateTime" PickerType="DateTimePicker"></telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn UniqueName="DryRunLocation" SortExpression="DryRunLocation"
                                    HeaderText="Location" DataField="DryRunLocation" ReadOnly="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridDropDownColumn DataField="DryRunCoordinatorID" DataSourceID="SqlDataSource2"
                                    HeaderText="Slot Owner" ListTextField="CoordinatorName" ListValueField="DryRunCoordinatorID"
                                    UniqueName="SlotOwner" EnableEmptyListItem="true" EmptyListItemText=" "
                                    EmptyListItemValue="0">
                                </telerik:GridDropDownColumn>
                            </Columns>
                            <ExpandCollapseColumn ButtonType="ImageButton" Visible="true" UniqueName="ExpandColumn">
                                <HeaderStyle Width="19px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <RowIndicatorColumn ItemStyle-Width="0px" HeaderStyle-Width="0px" />
 
                        </MasterTableView>
                    </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 May 2013, 11:50 AM
Hi Darren,

Generally, there should not be any issue related to the text format. Can you please disable any ajaxification on the page if present, and see whether more informative error will occur?

Greetings,
Eyup
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
Darren
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or