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

GridBoundColumn: MaxLength in Child Grids

3 Answers 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 29 Jan 2009, 03:09 PM
Hello,

The MaxLength property on the GridBoundColumn restricts the number of characters allowed when editing or adding data into this column.  This works fine when there is only one grid, however when I try to use this property inside of a child grid (a GridTableView within the DetailTables of the MasterViewTable), the field is not length restricted.  Please take a look at my simple markup below:

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
            OnInsertCommand="InsertData">
            <HeaderContextMenu EnableTheming="True">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </HeaderContextMenu>
            <MasterTableView EditMode="PopUp" CommandItemDisplay="Top">
                <DetailTables>
                    <telerik:GridTableView EditMode="PopUp" CommandItemDisplay="Top">
                        <Columns>
                            <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name"
                                MaxLength="3" UniqueName="Name">
                            </telerik:GridBoundColumn>
                            <telerik:GridEditCommandColumn>
                            </telerik:GridEditCommandColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name"
                        MaxLength="3" UniqueName="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableTheming="True">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </FilterMenu>
        </telerik:RadGrid>
    </div>
    </form>
</body>

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 02 Feb 2009, 05:30 PM
Hi Jason,

I successfully reproduced the issue you described and logged this bug to our backlog. The fix will be implemented in the next internal build which will be available from your account and announced officially for the Q1 2009 of RadControls for ASP.NET AJAX, expected at the end of February.

I also updated your Telerik points for the report.

Best regards,
Georgi Krustev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Stephen
Top achievements
Rank 1
answered on 05 Jun 2014, 11:58 AM
Hi,

Was this bug ever corrected as I seem to be having the same issue?

Thanks
0
Shinu
Top achievements
Rank 2
answered on 06 Jun 2014, 10:22 AM
Hi Paul,

I was not able to replicate this in the latest version. Please try using the latest versions. For updating or downloading trial versions, you can try the following links. If it doesn't help to resolve, please provide your code snippet.
Updating RadControls for ASP.NET AJAX to another version or license
Versions you can download

Thanks,
Shinu
Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Paul Stephen
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or