Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
79 views
I'd like to use the RadMenu with our search engine appliance from Adobe (ie. Omniture). Typically search engines don't support ajax well. How can I configure RadMenu manually to not require ajax?


Eric
Simon
Telerik team
 answered on 02 May 2011
1 answer
89 views
I have a RadGrid which displays a list of lesson plans.
When I click "edit" the text appears in the RADeditor (see Atached Image)
When I click the "save" button the data is saved in the database but the grid isn't updated.
If I click "Refresh" to rebind the grid, all the items are displayed in the list except the one I was editing.
Do you have any idea what I need to do to ensure updates are shown in the list when I click  "Save"?

The code for the grid and editor are displayed below

<     <asp:Panel ID="ListViewPanel1" runat="server">
                <asp:LinkButton ID="btnRebind" runat="server" CommandName="RebindGrid">Refresh Plan</asp:LinkButton>
  
                    <telerik:RadGrid ID="AssessmentGrid" runat="server" ShowHeader="True" ShowFooter="true"
                        BorderWidth="1" CellPadding="3" AutoGenerateColumns="false" Width="620px" Skin="WebBlue"
                        AllowPaging="true" PageSize="10" AllowCustomPaging="true" VirtualItemCount="50"
                        OnNeedDataSource="AssessmentGrid_NeedDataSource" OnItemCommand="OnSelectRecords"
                        AllowAutomaticUpdates="true">
                        <PagerStyle Mode="NumericPages" />
                        <MasterTableView ShowFooter="true" DataKeyNames="assessment_plan_reference" EditMode="InPlace">
                            <RowIndicatorColumn Visible="true" UniqueName="RowIndicator">
                                <HeaderStyle Width="20px" BackColor="LightSkyBlue" />
                            </RowIndicatorColumn>
                            <Columns>
                                <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" ItemStyle-Width="50px"
                                    HeaderStyle-Width="50px" HeaderText="Edit" Text="Edit" />
                                <telerik:GridBoundColumn UniqueName="assessment_plan_reference" DataField="assessment_plan_reference"
                                    Visible="false" runat="server" ItemStyle-Width="50px" />
                                <telerik:GridBoundColumn UniqueName="week_number" DataField="week_number" HeaderText="Week"
                                    HeaderStyle-HorizontalAlign="left" HeaderStyle-Width="50px" ItemStyle-Width="40px"
                                    runat="server" ReadOnly="true" />
                                <telerik:GridBoundColumn UniqueName="content" DataField="content" ItemStyle-Wrap="true"
                                    HeaderText="Content" HeaderStyle-Width="270px" ItemStyle-Width="270px" ItemStyle-HorizontalAlign="left"
                                    runat="server" ReadOnly="true" />
                                <telerik:GridBoundColumn UniqueName="activity" DataField="activity" ItemStyle-Wrap="true"
                                    HeaderText="Activity" ItemStyle-Width="270px" ItemStyle-HorizontalAlign="left"
                                    runat="server" ReadOnly="true" />
                            </Columns>
                        </MasterTableView>
                        <ClientSettings>
                            <Selecting AllowRowSelect="true" />
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="false">
                            </Scrolling>
                        </ClientSettings>
                    </telerik:RadGrid>
                </asp:Panel>
            </div>
            <div style="padding: 10px; float: left; border-width: 1px; border-style: solid; border-color: #33ff99;">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxGridLoadingPanel">
                    <telerik:RadTabStrip ID="RadTabStripEditor" runat="server" Skin="WebBlue" MultiPageID="RadMultiPage1"
                        SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="true" Width="400px" Orientation="HorizontalBottom"
                        OnTabClick="RadTabStripEditor_TabClick">
                        <Tabs>
                            <telerik:RadTab Text="Content">
                            </telerik:RadTab>
                            <telerik:RadTab Text="Activity">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView"
                        Width="700px" Height="1000px">
                        <telerik:RadPageView ID="RadPageView1" runat="server">
                            <table cellspacing="0" cellpadding="0">
                                <tr>
                                    <td style="vertical-align: top;">
                                        <telerik:RadSpell ID="RadSpell1" runat="server" DictionaryPath="~/App_Data/RadSpell/"
                                            ControlToCheck="RadEditor1" Enabled="true" SupportedLanguages="en-US,English,fr-FR,French"
                                            ControlsToCheck="RadEditor1" DictionaryLanguage="en-US" />
                                        <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Height="515px"
                                            SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/">
                                            <Modules>
                                                <telerik:EditorModule Name="RadEditorHtmlInspector" Visible="false" Enabled="true" />
                                            </Modules>
                                            <Languages>
                                                <telerik:SpellCheckerLanguage Code="en-US" Title="English" />
                                            </Languages>
                                            <Tools>
                                                <telerik:EditorToolGroup Tag="MainToolbar"> ....
                                                    
                                                </telerik:EditorToolGroup>
                                            </Tools>
                                            <Content>
                                              
                                            </Content>
                                            <SpellCheckSettings DictionaryPath="~/App_Data/RadSpell/" />
                                        </telerik:RadEditor>
                                        <asp:Button ID="btnSubmit" runat="server" Text="Save Plan" OnClick="btnSave_Click" />
                                        <input type="hidden" name="EditedRef" runat="server" id="EditedRef" />
                                        <input type="hidden" name="Editedcontent" runat="server" id="Editedcontent" />
                                        <input type="hidden" name="currentdisplay" runat="server" id="currentdisplay" />
                                        <br />
                                    </td>
Shinu
Top achievements
Rank 2
 answered on 02 May 2011
8 answers
346 views
I've got a grid which has an EditForm:

<EditFormSettings EditFormType="Template">
<FormTemplate>      
<asp:CheckBox runat="server" ID="chkPrintedPaper" Text="Printed Paper" Checked='<%# ConvertChecked(Eval("PrintedPaper")) %>' />
 </FormTemplate>
</EditFormSettings>

ConvertChecked is a code-behind function which turns 1, 0, NULL into True, False, False respectively.

For my insert command:

InsertCommandType="StoredProcedure" InsertCommand="csp_reg_saveEMSite"                    
<InsertParameters>                   
    <asp:Parameter Name="PrintedPaper" Type="boolean" />
</InsertParameters>

When I do a trace, the value of chkPrintedPaper isn't picked up (other fields, all textboxes, are fine).  What do I need to do here?
Vasil
Telerik team
 answered on 02 May 2011
1 answer
36 views

Hi,

 I am using Grid component with paging, in ASP.NET MVC2 application, but on page change, all site had been reloaded. I am not using any custom handler, only defaults.

What is the problem here?

Thanks,
Edgar

Iana Tsolova
Telerik team
 answered on 02 May 2011
1 answer
94 views
Hi,
     Please see attached image file.

and please refer foll. code.
<telerik:RadGrid runat="server" ID="rgQuestions" OnNeedDataSource="rgQuestions_NeedDataSource"
                                                        AllowPaging="True" AllowMultiRowSelection="true" OnItemDataBound="rgQuestions_ItemDataBOund"
                                                        PageSize="30" EnableHeaderContextMenu="true" AutoGenerateColumns="false"
                                                       >
                                                        <MasterTableView DataKeyNames="Q_QuestionId" TableLayout="Fixed">
                                                            <GroupByExpressions>
                                                                <telerik:GridGroupByExpression>
                                                                    <SelectFields>
                                                                        <telerik:GridGroupByField FieldAlias="Category" FieldName="Q_CategoryName" HeaderValueSeparator=" : ">
                                                                        </telerik:GridGroupByField>
                                                                    </SelectFields>
                                                                    <GroupByFields>
                                                                        <telerik:GridGroupByField FieldName="Q_CategoryName"></telerik:GridGroupByField>
                                                                    </GroupByFields>
                                                                </telerik:GridGroupByExpression>
                                                            </GroupByExpressions>
                                                            <Columns>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_QuestionId" HeaderText="Question Id">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_Question" HeaderText="Question">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_AnswerType" HeaderText="AnswerType">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_QuestionMark" HeaderText="QuestionMark">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_Mandatory" HeaderText="Mandatory">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn Visible="False" DataField="Q_MarksStatus" HeaderText="MarksStatus">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridTemplateColumn Visible="False">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblAnsType" runat="server" Visible="False" Text='<%# DataBinder.Eval(Container.DataItem, "Q_AnswerType") %>'>
                                                                        </asp:Label>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridBoundColumn DataField="Q_Order" HeaderStyle-Width="5%" ItemStyle-VerticalAlign="Top" >
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridTemplateColumn DataField="Q_Question" HeaderText="Question" HeaderStyle-Width="65%">
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblQuestion" runat="server" Text='<%# Eval("Q_Question") %>'>
                                                                        </asp:Label>
                                                                        <br />
                                                                        <asp:Panel ID="QuestionDetails" runat="server">
                                                                            <asp:Label ID="lblAnsType1" runat="server" Visible="False" Text='<%# DataBinder.Eval(Container.DataItem, "Q_AnswerType") %>'>
                                                                                                                                  
                                                                            </asp:Label>
                                                                            <asp:Label ID="lblQuestionID" runat="server" Text='<%# Eval("Q_QuestionId") %>' Visible="false">
                                                                            </asp:Label>
                                                                           
                                                                        </asp:Panel>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                 
                                                                <telerik:GridTemplateColumn   HeaderStyle-Width="15%">
                                                                    <ItemStyle VerticalAlign="top"></ItemStyle>
                                                                    <ItemTemplate>
                                                                        <%--<asp:HyperLink id="hlinkEdit" runat="server" ToolTip="Edit" ImageUrl="../Images/edit.gif" NavigateUrl='<%#"AddQuestion.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>' >
                                            </asp:HyperLink>--%>
                                                                        <asp:HyperLink ID="hlinkEdit" runat="server" ToolTip="Edit Question" ImageUrl="../Images/edit.gif"
                                                                            NavigateUrl='<%#"AddQuestions.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>'>
                                                                        </asp:HyperLink>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn  HeaderStyle-Width="15%">
                                                                    <ItemStyle VerticalAlign="top"></ItemStyle>
                                                                    <ItemTemplate>
                                                                        <a href="#" onclick="Delete('<%# DataBinder.Eval(Container.DataItem, "Q_QuestionId") %>','<%# DataBinder.Eval(Container.DataItem, "Q_QuestionnaireId") %>')">                                                                       
                                                                            <img src="../Images/delete.gif" title="Delete" border="0"></a>
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                                                            <Resizing AllowColumnResize="true" />
                                                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                                            <%-- <ClientEvents OnRowDropping="onRowDropping" />--%>
                                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                        </ClientSettings>
                                                        <PagerStyle Mode="NumericPages" PageButtonCount="4" />
                                                    </telerik:RadGrid>


Regards,
Abhi
Shinu
Top achievements
Rank 2
 answered on 02 May 2011
3 answers
60 views
Hi Telerik Team,
     I want to use a custom skin for a radcontrol.In old version of radcontrol it is possible.Now we are using (Radcontrols for ASP.Net Ajax Q1 2011 SP1).How  can I use custom skin in this version?

Waiting for the reply.

By
Dayana
Veli
Telerik team
 answered on 02 May 2011
1 answer
467 views

Hello,

I am using the RadTooltip in a RadTreeNode template to display data associated with each node in the tooltip. The length of the text will be different for each node. I am hoping to get the following behavior:

  • Be able to set a maximum height for the tooltip
  • Have the tooltip automatically size the height based on content unless that maximum height is exceeded.
  • If that height is exceeded, set the height of the tootip to the maximum and a add vertical scrollbar so all content can be scrolled to.

 

Can you let me know if this is possible?

Thanks, Craig

Svetlina Anati
Telerik team
 answered on 02 May 2011
1 answer
51 views
Hi All,
I'm not sure how many people are familiar with the nyromodal jquery plugin, but I'm using one on my site with a radmenu.
The problem is when the nyromodal box opens, the entire screen goes dark into a theatre mode except for the radmenu.
Is there a property I need to set or something I can do to make it perform the same way?
Thanks,
Aaron
Veronica
Telerik team
 answered on 02 May 2011
1 answer
165 views
I'm trying to use the Selenium WebDriver for Chrome to upload a file via the RadUpload control.

I cannot seem drive the interface when chrome pops up the select file box.  Are they any examples of this ?

Can I simulate the selection by populating any elements behind the scenes ?

Cheers..

Robert
Helen
Telerik team
 answered on 02 May 2011
1 answer
159 views
In my i set Mandatory fields
textbox value empty .
does't close the popup window.
one of the other form i work that forms popup window never closed.this forms is one grid
but here code form is two radgrid


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewModels.aspx.cs" Inherits="TBS_HelpDesk.Views.Assets.NewModels"
    MasterPageFile="~/Views/Shared/MasterPage.Master" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadCodeBlock runat="server" ID="radCodeBlock">
        <script type="text/javascript">
            function onToolBarClientButtonClicking(sender, args) {
                var grid = $find("<%=RadGrid2.ClientID %>");
                debugger;
                var comandName = args.get_item().get_commandName();
                if (comandName == "Filter") {
                    if (grid.get_masterTableView().get_isFilterItemVisible()) {
                        grid.get_masterTableView().hideFilterItem();
                    }
                    else {
                        grid.get_masterTableView().showFilterItem();
                    }
                }
            }
            function onToolBarClientButtonClickingMan(sender, args) {
                var grid = $find("<%=RadGrid1.ClientID %>");
                debugger;
                var comandName = args.get_item().get_commandName();
                if (comandName == "Filter1") {
                    if (grid.get_masterTableView().get_isFilterItemVisible()) {
                        grid.get_masterTableView().hideFilterItem();
                    }
                    else {
                        grid.get_masterTableView().showFilterItem();
                    }
                }
            }

            function getOuterHTML(obj) {
                if (typeof (obj.outerHTML) == "undefined") {
                    var divWrapper = document.createElement("div");
                    var copyOb = obj.cloneNode(true);
                    divWrapper.appendChild(copyOb);
                    return divWrapper.innerHTML
                }
                else
                    return obj.outerHTML;
            }
            function PrintRadGrid() {
                var previewWnd = window.open('about:blank', '', '', false);
                var sh = '<%= ClientScript.GetWebResourceUrl(RadGrid1.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",RadGrid1.Skin)) %>';
                var shBase = '<%= ClientScript.GetWebResourceUrl(RadGrid1.GetType(),"Telerik.Web.UI.Skins.Grid.css") %>';
                var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link>";
                styleStr += "<link href = '" + shBase + "' rel='stylesheet' type='text/css'></link></head>";
                var htmlcontent = styleStr + "<body>" + getOuterHTML($find('<%= RadGrid1.ClientID %>').get_element()) + "</body></html>";
                previewWnd.document.open();
                previewWnd.document.write(htmlcontent);
                previewWnd.document.close();
                previewWnd.print();
                previewWnd.close(); // working

            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelHeight="" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" UpdatePanelHeight="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" UpdatePanelHeight="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <table border="0">
        <tr>
            <td valign="top" style="width: 250px">
                <telerik:RadGrid runat="server" ID="RadGrid1" CellPadding="0" GridLines="None" AutoGenerateColumns="False"
                    AllowPaging="True" AllowSorting="true" AllowFilteringByColumn="true" OnNeedDataSource="RadGrid1_NeedDataSource"
                    OnItemCommand="RadGrid1_ItemCommand" Skin="Vista" Height="300px">
                    <MasterTableView DataKeyNames="Manuf_ID" CommandItemDisplay="Top" EditFormSettings-PopUpSettings-Modal="true"
                        EditMode="PopUp" IsFilterItemExpanded="false">
                        <CommandItemTemplate>
                            <telerik:RadToolBar ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick" runat="server"
                                OnClientButtonClicking="onToolBarClientButtonClickingMan">
                                <Items>
                                    <telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" ImageUrl="../../images/AddRecord.gif"
                                        Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Filter" CommandName="Filter1" ImageUrl="../../images/Filter 3.gif">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Print" CommandName="Print" onclick="PrintRadGrid()">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Refresh" CommandName="RebindGrid" ImageUrl="../../images/Refresh.gif">
                                    </telerik:RadToolBarButton>
                                </Items>
                            </telerik:RadToolBar>
                        </CommandItemTemplate>
                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="10px" />
                            <telerik:GridBoundColumn DataField="Manuf_ID" DataType="System.Int32" HeaderText="Manuf ID"
                                SortExpression="Manuf_ID" UniqueName="Manuf_ID" Visible="false" ReadOnly="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Manuf_Name" HeaderText="Manufacturer Name" SortExpression="Manuf_Name"
                                UniqueName="Manuf_Name" HeaderStyle-Width="120px">
                                <HeaderStyle Width="120px"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Manuf_Description" HeaderText="Manuf Description"
                                SortExpression="Manuf_Description" UniqueName="Manuf_Description" HeaderStyle-Width="150px"
                                Visible="false">
                                <HeaderStyle Width="150px"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridCheckBoxColumn DataField="Manuf_Inactive" DataType="System.Boolean"
                                HeaderText="Inactive" SortExpression="Manuf_Inactive" UniqueName="Manuf_Inactive"
                                FilterControlWidth="30px" HeaderStyle-Width="100px" Visible="false">
                                <HeaderStyle Width="100px"></HeaderStyle>
                            </telerik:GridCheckBoxColumn>
                            <telerik:GridBoundColumn DataField="Manuf_Inactive" DataType="System.Boolean" HeaderText="Inactive"
                                SortExpression="Manuf_Inactive" FilterControlWidth="30px" HeaderStyle-Width="100px"
                                ReadOnly="true" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteColumn"
                                CommandArgument="Child" ConfirmDialogType="RadWindow" ConfirmText="Are You Sure Want To Delete This Record?"
                                ConfirmTitle="Delete Confirm" HeaderStyle-Width="10px" />
                        </Columns>
                        <EditFormSettings CaptionFormatString="Create" EditFormType="Template">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                            <FormTemplate>
                                <div style="margin-left: 15px;">
                                    <table>
                                        <tr>
                                            <td style="height: 75px; width: 400px;">
                                                <table style="float: right;">
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                            <asp:Label ID="Label2" Text="Mandatory Field(s)" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <fieldset>
                                                    <legend style="margin-bottom: 10px">Manufactere</legend>
                                                    <table cellspacing="2" cellpadding="1" width="100%" border="0">
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox Width="200px" ID="Manuf_ID" AutoCompleteType="Disabled" runat="server"
                                                                    Text='<%# Bind("Manuf_ID") %>' Visible="false"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                                Name :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="200px" ID="Manuf_Name" AutoCompleteType="Disabled" runat="server"
                                                                    Text='<%# Bind("Manuf_Name") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                Description :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="200px" ID="Manuf_Description" AutoCompleteType="Disabled" runat="server"
                                                                    TextMode="MultiLine" Height="100px" Text='<%# Bind("Manuf_Description") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                Inactive :
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox Width="200px" ID="Manuf_Inactive" AutoCompleteType="Disabled" runat="server"
                                                                    Text='<%# Bind("Manuf_Inactive") %>' />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="Button3" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                </asp:Button>
                                                <asp:Button ID="Button4" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel">
                                                </asp:Button>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </FormTemplate>
                            <PopUpSettings Modal="True"></PopUpSettings>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings EnablePostBackOnRowClick="true">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
            <td valign="top" style="width: 100px">
            </td>
            <td valign="middle" style="width: 250px">
                <table>
                    <tr>
                        <td>
                            <asp:TextBox runat="server" ID="ModelText"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <telerik:RadGrid runat="server" ID="RadGrid2" CellPadding="0" GridLines="None" AutoGenerateColumns="False"
                    AllowPaging="True" AllowSorting="true" Skin="Office2007" AllowFilteringByColumn="true"
                    OnItemCommand="RadGrid2_ItemCommand" OnNeedDataSource="RadGrid2_NeedDataSource">
                    <MasterTableView CommandItemDisplay="Top" EditFormSettings-PopUpSettings-Modal="true"
                        EditMode="PopUp" IsFilterItemExpanded="false">
                        <CommandItemTemplate>
                            <telerik:RadToolBar ID="RadToolBar2" OnButtonClick="RadToolBar2_ButtonClick" runat="server"
                                OnClientButtonClicking="onToolBarClientButtonClicking">
                                <Items>
                                    <telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" ImageUrl="../../images/AddRecord.gif"
                                        Visible='<%# !RadGrid2.MasterTableView.IsItemInserted %>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Filter" CommandName="Filter" ImageUrl="../../images/Filter 3.gif">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Print" CommandName="Print" onclick="PrintRadGrid()">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Refresh" CommandName="RebindGrid" ImageUrl="../../images/Refresh.gif">
                                    </telerik:RadToolBarButton>
                                </Items>
                            </telerik:RadToolBar>
                        </CommandItemTemplate>
                        <PagerStyle BackColor="#D8EBFC" Mode="NextPrevNumericAndAdvanced" />
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="10px" />
                            <telerik:GridNumericColumn DataField="Model_ID" HeaderText="Id" SortExpression="Model_ID"
                                UniqueName="Model_ID" Visible="false" ReadOnly="true">
                            </telerik:GridNumericColumn>
                            <telerik:GridBoundColumn DataField="Model_Name" HeaderText="Model Name" SortExpression="Model_Name"
                                UniqueName="Model_Name" HeaderStyle-Width="100px">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Model_Description" HeaderText="Description" SortExpression="Model_Description"
                                UniqueName="Model_Description" HeaderStyle-Width="300px" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteColumn"
                                CommandArgument="Child" ConfirmDialogType="RadWindow" ConfirmText="Are You Sure Want To Delete This Record?"
                                ConfirmTitle="Delete Confirm" HeaderStyle-Width="10px" />
                        </Columns>
                        <EditFormSettings CaptionFormatString="Create" EditFormType="Template">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                            <FormTemplate>
                                <div style="margin-left: 15px;">
                                    <table>
                                        <tr>
                                            <td style="height: 75px; width: 400px;">
                                                <table style="float: right;">
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                            <asp:Label ID="Label2" Text="Mandatory Field(s)" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <fieldset>
                                                    <legend style="margin-bottom: 10px">Model</legend>
                                                    <table cellspacing="2" cellpadding="1" width="100%" border="0">
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox Width="200px" ID="Model_ID" AutoCompleteType="Disabled" runat="server"
                                                                    Text='<%# Bind("Model_ID") %>' Visible="false"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                                Name :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="200px" ID="Model_Name" AutoCompleteType="Disabled" runat="server"
                                                                    Text='<%# Bind("Model_Name") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                Description :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="200px" ID="Model_Description" AutoCompleteType="Disabled" runat="server"
                                                                    TextMode="MultiLine" Height="100px" Text='<%# Bind("Model_Description") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="Button3" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                </asp:Button>
                                                <asp:Button ID="Button4" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel">
                                                </asp:Button>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </FormTemplate>
                            <PopUpSettings Modal="True"></PopUpSettings>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings EnablePostBackOnRowClick="true">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
    </table>
</asp:Content>



Thanks,
Mohamed.
Princy
Top achievements
Rank 2
 answered on 02 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?