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

Radtab in radgrid

2 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Babu Puchakayala
Top achievements
Rank 1
Babu Puchakayala asked on 11 Jun 2010, 03:06 PM
Dear Telerik Team,

I created a radgrid with Template Edit Form on row double click. I want to place rad tab inside that from. Is that possible? I just tried but i am not getting. Please let me know.


Thanks
Babu

2 Answers, 1 is accepted

Sort by
0
Babu Puchakayala
Top achievements
Rank 1
answered on 14 Jun 2010, 04:44 PM
HI Telerik Team,

I have created radtab in radgrid editform. But the tab is not diplaying in editform. Can anyone help me how to fix this?


This is my code.


                            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
 
                                <script type="text/javascript"
                                    function RowDblClick(sender, eventArgs) { 
                                        sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()); 
                                    } 
                                </script> 
 
                            </telerik:RadCodeBlock> 
                            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                                <AjaxSettings> 
                                    <telerik:AjaxSetting AjaxControlID="gvCktMap"
                                        <UpdatedControls> 
                                            <telerik:AjaxUpdatedControl ControlID="gvCktMap" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                        </UpdatedControls> 
                                    </telerik:AjaxSetting> 
                                </AjaxSettings> 
                            </telerik:RadAjaxManager> 
                            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
                            </telerik:RadAjaxLoadingPanel> 
                            <telerik:RadGrid ID="gvCktMap" BorderColor="White" runat="server" AutoGenerateColumns="false" 
                                AllowSorting="true" BackColor="White" AllowPaging="true" PageSize="25" GridLines="None" 
                                ShowGroupPanel="True" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" 
                                AllowMultiRowSelection="true" AllowFilteringByColumn="True" AllowCustomPaging="false" 
                                OnItemCreated="gvCktMap_ItemCreated" EnableViewState="false" OnNeedDataSource="gvCktMap_NeedDataSource"
                                <MasterTableView CommandItemDisplay="None" DataKeyNames="sId" UseAllDataFields="true"
                                    <Columns> 
                                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"
                                        </telerik:GridEditCommandColumn> 
                                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete"
                                        </telerik:GridButtonColumn> 
                                        <telerik:GridBoundColumn UniqueName="CustomerName" HeaderText="CustomerName" DataField="CustomerName" 
                                            ReadOnly="true"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="MarketName" HeaderText="MarketName" DataField="MarketName" 
                                            ReadOnly="true"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Lob" HeaderText="LOB" DataField="LOB" ReadOnly="true"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="SiteName" HeaderText="SiteName" DataField="Site Name" 
                                            ReadOnly="true"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="TaskStatus" HeaderText="TaskStatus" DataField="TaskStatus"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Task Due Date" HeaderText="Task Due Date" DataField="Task Due Date"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Sch SM Imp Date" HeaderText="Sch SM Imp Date" 
                                            DataField="Sch SM Imp Date"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Target PTD" HeaderText="Target PTD" DataField="Target PTD"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Actual PTD" HeaderText="Actual PTD" DataField="Actual PTD"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Actual PTT" HeaderText="Actual PTT" DataField="Actual PTT"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Foc Date" HeaderText="Foc Date" DataField="Foc Date"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn UniqueName="Notification Date" HeaderText="Notification Date" 
                                            DataField="Notification Date"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridCheckBoxColumn UniqueName="Include FOC?" HeaderText="Include FOC?" DataField="Include FOC?"
                                        </telerik:GridCheckBoxColumn> 
                                        <telerik:GridCheckBoxColumn UniqueName="Include DLR?" HeaderText="Include DLR?" DataField="Include DLR?"
                                        </telerik:GridCheckBoxColumn> 
                                    </Columns> 
                                    <EditFormSettings> 
                                        <FormTemplate> 
                                            <table id="Table1" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" 
                                                style="border-collapse: collapse; background: white;"
                                                <tr> 
                                                    <td colspan="2" style="font-size: small"
                                                        <b>Employee Details</b> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td colspan="2"
                                                        <b>Company Info:</b> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <table id="Table2" cellspacing="1" cellpadding="1" width="250" border="0"
                                                            <tr class="exampleWrapper"
                                                                <td> 
                                                                    <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop" 
                                                                        SelectedIndex="0" MultiPageID="RadMultiPage1"
                                                                        <Tabs> 
                                                                            <telerik:RadTab Text="Quick Notes"
                                                                            </telerik:RadTab> 
                                                                            <telerik:RadTab Text="Information"
                                                                            </telerik:RadTab> 
                                                                            <telerik:RadTab Text="Services"
                                                                            </telerik:RadTab> 
                                                                        </Tabs> 
                                                                    </telerik:RadTabStrip> 
                                                                    <!--no spaces between the tabstrip and multipage, in order to remove unnecessary whitespace--> 
                                                                    <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" Height="218px" 
                                                                        Width="396px" CssClass="multiPage"
                                                                        <telerik:RadPageView runat="server" ID="RadPageView1" CssClass="corporatePageView"
                                                                            <ul> 
                                                                                <li>Corporate Info</li> 
                                                                                <li>Press Center</li> 
                                                                                <li>Customers</li> 
                                                                                <li>Awards</li> 
                                                                            </ul> 
                                                                        </telerik:RadPageView> 
                                                                        <telerik:RadPageView runat="server" ID="RadPageView2" CssClass="productsPageView"
                                                                            <ul> 
                                                                                <li>RadControls for ASP.NET</li> 
                                                                                <li>RadControls for WinForms</li> 
                                                                                <li>Telerik Reporting</li> 
                                                                                <li>Sitefinity CMS</li> 
                                                                            </ul> 
                                                                        </telerik:RadPageView> 
                                                                        <telerik:RadPageView runat="server" ID="RadPageView3" CssClass="servicesPageView"
                                                                            <ul> 
                                                                                <li>Enterprise Services</li> 
                                                                                <li>Enterprise Account Manager</li> 
                                                                                <li>On-site Training</li> 
                                                                                <li>GoToMeeting Sessions</li> 
                                                                            </ul> 
                                                                        </telerik:RadPageView> 
                                                                    </telerik:RadMultiPage> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </td> 
                                                    <td> 
                                                    </td> 
                                                </tr> 
                                                <tr> 
                                                    <td> 
                                                        <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0"
                                                            <tr> 
                                                                <td> 
                                                                    Task Status: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox2" runat="server" TabIndex="8"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Task Due Date: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox3" runat="server" TabIndex="9"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Sch SM Imp Date: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="Textbox5" runat="server" TabIndex="10"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Target PTD: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox4" runat="server" TabIndex="11"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Actual PTD: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox12" runat="server" TabIndex="11"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Actual PTT: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox13" runat="server" TabIndex="11"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Foc Date: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox14" runat="server" TabIndex="11"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Notification Date: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:TextBox ID="TextBox15" runat="server" TabIndex="11"
                                                                    </asp:TextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Include FOC?: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:CheckBox ID="TextBox16" runat="server" TabIndex="11"></asp:CheckBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td> 
                                                                    Include DLR?: 
                                                                </td> 
                                                                <td> 
                                                                    <asp:CheckBox ID="TextBox1" runat="server" TabIndex="11"></asp:CheckBox> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </td> 
                                                    <td> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                        </FormTemplate> 
                                    </EditFormSettings> 
                                </MasterTableView> 
                                <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"
                                    <ClientEvents OnRowDblClick="RowDblClick" /> 
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                                    <Selecting AllowRowSelect="True"></Selecting> 
                                    <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" 
                                        ResizeGridOnColumnResize="False"></Resizing> 
                                </ClientSettings> 
                                <GroupingSettings ShowUnGroupButton="true" /> 
                                <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Font-Bold="true" AlwaysVisible="true" /> 
                            </telerik:RadGrid> 


Thanks in Advance
0
Babu Puchakayala
Top achievements
Rank 1
answered on 14 Jun 2010, 04:51 PM
I got it. i just added EditFormType="Template" in EditFormSettings tag. Its working now.

Thanks
Tags
Grid
Asked by
Babu Puchakayala
Top achievements
Rank 1
Answers by
Babu Puchakayala
Top achievements
Rank 1
Share this question
or