Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
136 views
I am using the RadSkinManager on the Masterpage. I have attempted to set a smaller font-size and I've even tried the "!important" settings extension, but the resizing fails to work.  The only way I was able to make it work was to completely remove the Telerik style from the control.  Thank you in advance for help guidance.
Stephen
Top achievements
Rank 1
 answered on 21 Aug 2009
3 answers
207 views
I am having a an issue which I figured out I could perhaps work my way around by using 2 FormDecorators - but that doesn't seem to work.

Is it supposed to work with multiple FormDecorators on a page?

This is what my code looks like :

  <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Black" DecoratedControls="Buttons" /> 
  <telerik:RadFormDecorator ID="RadFormDecorator2" runat="server" Skin="Default" DecoratedControls="Textbox" /> 
 

How does it look to you?


Svetlina Anati
Telerik team
 answered on 21 Aug 2009
1 answer
133 views
I have a rad grid with a custom control added in the grid whenever a row in the grid is expanded. This control has a radtabstrip control inside and for each radpageview, there are also controls. I have the update panels set in the right spot, at least i think i do. So when i go to use the checkbox or click one of the buttons in the control, the page refreshes and the custom control that was added in the grid is gone. I'm thinking maybe i have my update panels in the wrong spot or i need to do something so that the grid doesn't update when the controls are used. Any help or input on this would be greatly appreciated.

Here's my code for my grid....
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional" RenderMode="Inline"> 
            <ContentTemplate> 
                <table style="width: 100%;"> 
                    <tr valign="top"> 
                        <td valign="top" class="style28"> 
                            <table style="width: 820px"> 
                                <tr> 
                                    <td class="style25" valign="top"> 
                                        <asp:TextBox ID="TextBoxSearchLeft" runat="server" Font-Names="Calibri" Font-Size="Small"></asp:TextBox> 
                                        <asp:Label ID="LblHyphen" runat="server" Text="-" Font-Size="Larger"></asp:Label> 
                                        <asp:TextBox ID="TextBoxSearchRight" runat="server" Font-Names="Calibri" Font-Size="Small" 
                                            Visible="False"></asp:TextBox> 
                                        <cc1:MaskedEditExtender ID="TextBoxSearchLeft_MaskedEditExtender" runat="server" 
                                            Enabled="True" Mask="99/99/9999" MaskType="Date" OnFocusCssClass="MaskedEditFocus" 
                                            OnInvalidCssClass="MaskedEditError" TargetControlID="TextBoxSearchLeft"> 
                                        </cc1:MaskedEditExtender> 
                                        <cc1:CalendarExtender ID="TextBoxSearchLeft_CalendarExtender" runat="server" Enabled="True" 
                                            TargetControlID="TextBoxSearchLeft"> 
                                        </cc1:CalendarExtender> 
                                        <cc1:MaskedEditExtender ID="TextBoxSearchRight_MaskedEditExtender" runat="server" 
                                            Enabled="True" Mask="99/99/9999" MaskType="Date" OnFocusCssClass="MaskedEditFocus" 
                                            OnInvalidCssClass="MaskedEditError" TargetControlID="TextBoxSearchRight"> 
                                        </cc1:MaskedEditExtender> 
                                        <cc1:CalendarExtender ID="TextBoxSearchRight_CalendarExtender" runat="server" Enabled="True" 
                                            TargetControlID="TextBoxSearchRight"> 
                                        </cc1:CalendarExtender> 
                                    </td> 
                                    <td align="left" class="style26" valign="top"> 
                                        <asp:DropDownList ID="DDLCrit" runat="server" Height="20px" AutoPostBack="true"> 
                                            <asp:ListItem Value="0">Search Criteria</asp:ListItem> 
                                            <asp:ListItem Value="1">Facility Name</asp:ListItem> 
                                            <asp:ListItem Value="2">Hardware</asp:ListItem> 
                                            <asp:ListItem Value="3">In-Service Date</asp:ListItem> 
                                        </asp:DropDownList> 
                                    </td> 
                                    <td align="right" class="style27"> 
                                        <asp:ImageButton ID="BtnSearchFacilities" runat="server" ImageUrl="~/EDRC/Images/Search.png" 
                                            Width="26px" /> 
                                    </td> 
                                </tr> 
                            </table> 
                            <table style="width: 821px"> 
                                <tr> 
                                    <td class="style29"> 
                                        <telerik:RadGrid ID="RadGrid_Search" runat="server" DataSourceID="DS_Facility_Hardware_Search" 
                                            GridLines="None" Width="815px" AllowPaging="True" Height="257px" Style="margin-right: 0px" 
                                            PageSize="8" Skin="Gray"> 
                                            <HeaderContextMenu EnableTheming="True"> 
                                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                            </HeaderContextMenu> 
                                            <PagerStyle PageButtonCount="1" /> 
                                            <MasterTableView AutoGenerateColumns="False" DataSourceID="DS_Facility_Hardware_Search"> 
                                                <RowIndicatorColumn> 
                                                    <HeaderStyle Width="20px" /> 
                                                </RowIndicatorColumn> 
                                                <ExpandCollapseColumn> 
                                                    <HeaderStyle Width="20px" /> 
                                                </ExpandCollapseColumn> 
                                                <NestedViewTemplate> 
                                                    <asp:Panel ID="PanelNestedGrid" runat="server"> 
                                                    </asp:Panel> 
                                                </NestedViewTemplate> 
                                                <Columns> 
                                                    <telerik:GridTemplateColumn> 
                                                        <ItemTemplate> 
                                                            <asp:ImageButton ID="BtnDelete" runat="server" CommandName="Select" ImageUrl="~/EDRC/Images/Symbol-Delete-small.png"> 
                                                            </asp:ImageButton> 
                                                        </ItemTemplate> 
                                                    </telerik:GridTemplateColumn> 
                                                    <telerik:GridBoundColumn DataField="FacilityID" DataType="System.Int32" HeaderText="FacilityID" 
                                                        ReadOnly="True" SortExpression="FacilityID" UniqueName="FacilityID" Visible="false"> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="SFFacilityID" DataType="System.Int32" HeaderText="SFFacilityID" 
                                                        SortExpression="SFFacilityID" UniqueName="SFFacilityID" Visible="false"> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="FacilityName" HeaderText="FacilityName" SortExpression="FacilityName" 
                                                        UniqueName="FacilityName"> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="Website" HeaderText="Website" SortExpression="Website" 
                                                        UniqueName="Website"> 
                                                    </telerik:GridBoundColumn> 
                                                </Columns> 
                                            </MasterTableView> 
                                            <FilterMenu EnableTheming="True"> 
                                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                            </FilterMenu> 
                                            <ClientSettings EnableRowHoverStyle="true"> 
                                                <Selecting AllowRowSelect="True" /> 
                                            </ClientSettings> 
                                        </telerik:RadGrid> 
                            </table> 
                        </td> 
                    </tr> 
                </table> 
            </ContentTemplate> 
        </asp:UpdatePanel> 


Here's the code from my custom control...
 <telerik:RadTabStrip ID="RadTabStrip1" runat="server"  
        MultiPageID="RadMultiPage1" SelectedIndex="2" Skin="Default2006"> 
        <Tabs> 
            <telerik:RadTab runat="server" Text="Information"  
                PageViewID="PageView_FacInformation" Selected="True"> 
 
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Allocate Hardware" PageViewID="PageView_AllocateHardware"> 
            
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Retire/Return Assets"  
                PageViewID="PageView_RetireAssets" > 
 
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="History" PageViewID="PageView_History"> 
            
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
        <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional" > 
                    <ContentTemplate> 
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="2"> 
    <telerik:RadPageView ID="PageView_FacInformation" runat="server"> 
 
                        <asp:Panel ID="Panel_Main" runat="server" Height="230px"> 
                            <asp:Label ID="Label1" runat="server" Style="font-size: 14px; position: absolute; 
                                top: 35px; left: 10px;" Text="Address" Font-Underline="True" /> 
                            <asp:Label ID="Label2" runat="server" Style="font-size: 14px; position: absolute; 
                                top: 89px; left: 10px; height: 17px;" Text="Contact Information" Font-Underline="True" /> 
                            <asp:Label ID="Label3" runat="server" Style="font-size: 14px; position: absolute; 
                                top: 35px; left: 270px; height: 17px; width: 182px;" Text="ISP/Phone Company Information" 
                                Font-Underline="True" /> 
                            <asp:Label ID="Label4" runat="server" Style="font-size: 14px; position: absolute; 
                                top: 155px; left: 270px;" Text="Hardware" Font-Underline="True" /> 
                            <asp:Label ID="Label5" runat="server" Style="font-size: 14px; position: absolute; 
                                top: 35px; left: 590px; height: 17px; width: 60px;" Font-Underline="True" Text="Comments" /> 
                            <asp:Label ID="lblAddress" runat="server" Style="position: absolute; top: 49px; left: 10px;" 
                                Text="Label" /> 
                            <asp:Label ID="lbl_ISP_Phone_Info" runat="server" Style="position: absolute; top: 49px; 
                                left: 270px;" Text="Label" /> 
                            <asp:Label ID="lblComments" runat="server" Style="position: absolute; top: 49px; 
                                left: 590px;" Text="Label" /> 
                            <asp:Label ID="lblContactInfo" runat="server" Style="position: absolute; top: 105px; 
                                left: 10px;" Text="Label" /> 
                            <asp:Label ID="lblHardware" runat="server" Style="position: absolute; top: 170px; 
                                left: 270px;" Text="Label" /> 
                        </asp:Panel> 
 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="PageView_AllocateHardware" runat="server"> 
 <%--   <asp:UpdatePanel ID="UpdatePanel_AllocateHardware" runat="server"> 
    <ContentTemplate>--%> 
     
 
    <table style="border-width: 1px; border-color: #808080; width: 100%; border-bottom-style: solid; 
                    font-size: 12px;"> 
                    <tr> 
                        <td class="style5" colspan="0" style="border-width: 1px; border-color: #808080; border-top-style: solid;" 
                            valign="top"> 
                            <asp:CheckBox ID="CheckBoxPC" runat="server" AutoPostBack="True" Text="PC" /> 
                        </td> 
                        <td class="style7" colspan="0" style="border-color: #808080; border-spacing: 0px;" 
                            valign="top"> 
                            <table style="width: 100%; font-size: 12px;"> 
                                <tr> 
                                    <td class="style32" valign="top"> 
                                        <asp:Label ID="Label15" runat="server" Text="Search by SerialNumber/Tag"></asp:Label> 
                                        <br /> 
                                        <asp:TextBox ID="TextBoxPC" runat="server" BackColor="LightGray" Enabled="False" 
                                            Font-Names="Calibri" Font-Size="9pt" ForeColor="Gray" Height="14px"></asp:TextBox> 
                                        <asp:ImageButton ID="BtnPCSearch" runat="server" Enabled="False" ImageAlign="Top" 
                                            ImageUrl="~/EDRC/Images/Search.png" /> 
                                    </td> 
                                    <td valign="top"> 
                                        <asp:Label ID="Label16" runat="server" Text="Select a PC"></asp:Label> 
                                        <br /> 
                                        <asp:ListBox ID="ListBoxPC" runat="server" BackColor="LightGray" Enabled="False" 
                                            Font-Names="Calibri" Font-Size="9pt" ForeColor="Gray" Width="300px" DataTextField="Asset Name" 
                                            DataValueField="Assid"></asp:ListBox> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="style32" valign="bottom"> 
                                        <asp:CheckBox ID="CheckBoxPCContract" runat="server" AutoPostBack="True" BackColor="#CCCCCC" 
                                            Enabled="False" ForeColor="Gray" Text="Contract" /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp; 
                                    </td> 
                                    <td align="left" valign="top"> 
                                        <asp:Label ID="Label17" runat="server" Text="Expiration Date"></asp:Label> 
                                        <br /> 
                                        <asp:TextBox ID="TextBoxPCContractDate" runat="server" BackColor="LightGray" Enabled="False" 
                                            Font-Names="Calibri" Font-Size="9pt" ForeColor="Gray" Height="14px" Width="80px"></asp:TextBox> 
                                        <cc1:MaskedEditExtender ID="TextBoxPCContractDate_MaskedEditExtender" runat="server" 
                                            Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="TextBoxPCContractDate" 
                                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" 
                                            CultureTimePlaceholder=""> 
                                        </cc1:MaskedEditExtender> 
                                        <cc1:CalendarExtender ID="TextBoxPCContractDate_CalendarExtender" runat="server" 
                                            Enabled="True" TargetControlID="TextBoxPCContractDate"> 
                                        </cc1:CalendarExtender> 
                                        <cc1:MaskedEditValidator ID="MEV_TextBoxPCContractDate" runat="server" ControlExtender="TextBoxPCContractDate_MaskedEditExtender" 
                                            ControlToValidate="TextBoxPCContractDate" Display="Dynamic" EmptyValueBlurredText="*" 
                                            EmptyValueMessage="Date is required" InvalidValueBlurredMessage="*" InvalidValueMessage="Date is invalid" 
                                            TooltipMessage="Input a date" ValidationGroup="MKE" ErrorMessage="MEV_TextBoxPCContractDate" /> 
                                    </td> 
                                </tr> 
                            </table> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td class="style9" colspan="0" style="border-width: 1px; border-color: #808080;" 
                            valign="top"> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td class="style4" style="border-width: 1px; border-color: #808080; border-top-style: solid" 
                            valign="top"> 
                            <asp:CheckBox ID="CheckBoxScanner" runat="server" AutoPostBack="True" Text="Scanner" /> 
                        </td> 
                        <td height="80" valign="top"> 
                            <table style="width: 100%; font-size: 12px;"> 
                                <tr> 
                                    <td class="style6" valign="top"> 
                                        <asp:Label ID="Label13" runat="server" Text="Search by SerialNumber/Tag"></asp:Label> 
                                        <br /> 
                                        <asp:TextBox ID="TextBoxScanner" runat="server" BackColor="LightGray" Enabled="False" 
                                            Font-Names="Calibri" Font-Size="9pt" ForeColor="Gray" Height="14px"></asp:TextBox> 
                                        <asp:ImageButton ID="BtnScannerSearch" runat="server" Enabled="False" ImageAlign="Top" 
                                            ImageUrl="~/EDRC/Images/Search.png" /> 
                                        <br /> 
                                    </td> 
                                    <td valign="top"> 
                                        <asp:Label ID="Label14" runat="server" Text="Select a Scanner"></asp:Label> 
                                        <br /> 
                                        <asp:ListBox ID="ListBoxScanner" runat="server" BackColor="LightGray" Enabled="False" 
                                            Font-Names="Calibri" Font-Size="9pt" ForeColor="Gray" Width="300px" DataTextField="SerialNumber" 
                                            DataValueField="Assid"></asp:ListBox> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="style6" valign="bottom"> 
                                        <asp:CheckBox ID="CheckBoxScannerContract" runat="server" AutoPostBack="True" Enabled="False" 
                                            ForeColor="Gray" Text="Contract" /> 
                                        &nbsp;&nbsp;&nbsp;&nbsp; 
                                    </td> 
                                    <td valign="top"> 
                                        <asp:Label ID="Label18" runat="server" Text="Expiration Date"></asp:Label> 
                                        <br /> 
                                        <asp:TextBox ID="TextBoxScannerContractDate" runat="server" BackColor="LightGray" 
                                            Enabled="False" Font-Names="Calibri" Font-Size="9pt" ForeColor="Gray" Height="14px" 
                                            Width="80px"></asp:TextBox> 
                                        <cc1:MaskedEditExtender ID="TextBoxScannerContractDate_MaskedEditExtender" runat="server" 
                                            Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="TextBoxScannerContractDate" 
                                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" 
                                            CultureTimePlaceholder=""> 
                                        </cc1:MaskedEditExtender> 
                                        <cc1:CalendarExtender ID="TextBoxScannerContractDate_CalendarExtender" runat="server" 
                                            Enabled="True" TargetControlID="TextBoxScannerContractDate"> 
                                        </cc1:CalendarExtender> 
                                        <cc1:MaskedEditValidator ID="MEV_TextBoxScannerContractDate" runat="server" ControlExtender="TextBoxScannerContractDate_MaskedEditExtender" 
                                            ControlToValidate="TextBoxScannerContractDate" Display="Dynamic" EmptyValueBlurredText="*" 
                                            EmptyValueMessage="Date is required" InvalidValueBlurredMessage="*" InvalidValueMessage="Date is invalid" 
                                            TooltipMessage="Input a date" ValidationGroup="MKE" ErrorMessage="MEV_TextBoxScannerContractDate" /> 
                                    </td> 
                                </tr> 
                            </table> 
                        </td> 
                    </tr> 
                </table> 
<%--                                    </ContentTemplate> 
    </asp:UpdatePanel>--%> 
                <table style="width: 100%; font-size: 12px;"> 
                    <tr> 
                        <td class="style30" valign="bottom"> 
                            <asp:Label ID="ErrorlblNewHardware" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label> 
<%--                            <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel_AllocateHardware 
                                DisplayAfter="0"> 
                                <ProgressTemplate> 
                                    <asp:Image ID="Image2" runat="server" ImageUrl="~/EDRC/Images/ajax-loader.gif" /> 
                                </ProgressTemplate> 
                            </asp:UpdateProgress>--%> 
                        </td> 
                        <td class="style31"> 
                            <asp:Label ID="lblHardwareID" runat="server" Text="lbl" Visible="False"></asp:Label> 
                        </td> 
                        <td> 
                            <asp:ImageButton ID="BtnSaveHardware" runat="server" ImageUrl="~/EDRC/Images/Save_small.png" /> 
                        </td> 
                    </tr> 
                </table> 
 
    </telerik:RadPageView> 
        <telerik:RadPageView ID="PageView_RetireAssets" runat="server"> 
    </telerik:RadPageView> 
        <telerik:RadPageView ID="PageView_History" runat="server"> 
    </telerik:RadPageView> 
    </telerik:RadMultiPage> 
                        </ContentTemplate> 
                </asp:UpdatePanel> 


Veli
Telerik team
 answered on 21 Aug 2009
1 answer
186 views
Hello telerik team

Sometime mysite is work fine  and sometime i have met an error like this "Item has already been added. Key in dictionary: 'RegEx' Key being added: 'RegEx'"
Can you explain to me why i make an that error?

Best Regrads.
Phuc Hoang


Veli
Telerik team
 answered on 21 Aug 2009
4 answers
191 views
Hello,

I want to do some client adaptation on a node doubleclick and I have to customize my script depending language so I used a radcodeblck for it.
But I get an error on Page, the function called by TreeView OnClientDoubleClick is not found .
If I look to page source in browser, the function is here and well formated ?
Here is my code
<Telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
<script type="text/javascript" language="javascript">  
    function TemplateDoubleClick(sender, eventArgs) {  
        var node = eventArgs.get_node();  
        var cat = node.get_category();  
        for (var i = 0; i < node.get_nodes().get_count(); i++) {  
            var nd = node.get_nodes().getNode(i);  
            var cat2 = nd.get_category();  
            if (cat2 == 'Id')  
                nd.set_text('<%= Localize("NEWID","New Id") %>');  
            else if (cat2 == 'Icon')  
                nd.set_text('<%= Localize("NEWICON","New Icon url") %>');  
            else if (cat2 == 'IsProfile')  
                nd.check();  
        }  
        return;  
    }  
</script> 
</Telerik:RadCodeBlock> 
 
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" ValidationGroup='Main' SelectedIndex='0' > 
    <Tabs> 
        <telerik:RadTab runat="server" TabIndex='0' PageViewID="PageView1" Text="Page 1" /> 
        <telerik:RadTab runat="server" TabIndex='1' PageViewID="PageView2" Text="Page 2" /> 
    </Tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex='0' > 
    <telerik:RadPageView ID="RadPageView1" runat="server">  
    </telerik:RadPageView> 
    <telerik:RadPageView ID="PageView2" runat="server">  
                <telerik:RadTreeView ID="RadTemplatesTree"  CssClass='TreeView' OnClientDoubleClick='TemplateDoubleClick'  AllowNodeEditing='true' CheckBoxes="true"  EnableDragAndDrop="true" EnableDragAndDropBetweenNodes="true"   
                            MultipleSelect="false"  runat="server">  
..... 


Where is my error.

Thanks.
CS
CSurieux
Top achievements
Rank 2
 answered on 21 Aug 2009
11 answers
1.1K+ views
Hello.

I need to delete all rows of a datagrid from client side. I have the following javascript code:

******************************************
            var masterTable = $find("<%=  RadGrid1.ClientID %>").get_masterTableView();

            var numRows = masterTable.get_dataItems().length;
            for (i = numRows-1; i >= 0 ; i--)
            {
                masterTable.deleteItem(masterTable.get_dataItems()[i].get_element());
            }

******************************************

In the begining it worked fine, but if I put the radgrid into an updatePanel, it only works for the first row to delete. With the second row, I get this error:

'this.get_element().tBodies' is null or is not an object

I need the radgrid into an update panel in order to perform another tasks server-side using Ajax.

Any idea? Is there another way to delete all rows in a radgrid client-side?

Thanks in advance.




Tsvetoslav
Telerik team
 answered on 21 Aug 2009
1 answer
103 views
Hi, I'm using RadGrid to show my data.
I programmatically assign the DataSource to the DataGrid
And I'm using almost only TemplateColumn.
And I'm using the EditFormTemplate to define the template for editing (because I need flexibility).
But now, the Grid is not entering in edit mode... I tried a lot of methods.. using CommandName = "Edit" or by using Item.Edit = true or using the EditIndexes Collection... but none of them worked...
Can you help me?
Here the Grid declaration:
<rad:RadGrid ID="articlesGrid" runat="server" AllowPaging="true" AllowSorting="false" 
    AutoGenerateColumns="false" AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false" 
    AllowAutomaticDeletes="True" AllowAutomaticInserts="True"  
    AllowAutomaticUpdates="True" onitemdatabound="articlesGrid_ItemDataBound"  
    onitemcommand="articlesGrid_ItemCommand"  
    onsortcommand="articlesGrid_SortCommand" oneditcommand="articlesGrid_EditCommand" 
    > 
    <MasterTableView NoMasterRecordsText="<%$ Resources:,NoData %>" PageSize="10" AllowPaging="true" AllowSorting="false"> 
        <Columns> 
            <rad:GridTemplateColumn UniqueName="id" ReadOnly="true" HeaderText="<%$ Resources:Grids,Articles_ID %>" SortExpression="id_article"> 
                <ItemTemplate> 
                    <asp:Label ID="labelID" runat="server" Text='<%# Eval("id_article") %>' /> 
                </ItemTemplate> 
            </rad:GridTemplateColumn> 
            <rad:GridTemplateColumn UniqueName="title" HeaderText="<%$ Resources:Grids,Articles_Title %>" SortExpression="title"> 
                <ItemTemplate> 
                    <asp:Label ID="labelTitle" runat="server" Text='<%# Eval("title") %>' /> 
                </ItemTemplate> 
            </rad:GridTemplateColumn> 
            <rad:GridButtonColumn UniqueName="edit" HeaderText="<%$ Resources:Labels,Edit %>" CommandName="Edit" Text="<%$ Resources:Labels,Edit %>" /> 
            <rad:GridButtonColumn UniqueName="delete" HeaderText="<%$ Resources:Labels,Delete %>" CommandName="Delete" Text="<%$ Resources:Labels,Delete %>" /> 
        <!--CONTINUES--> 
        </Columns> 
        <EditFormSettings EditFormType="Template"> 
            <FormTemplate> 
                <table> 
                    <tr align="right"> 
                        <td colspan="2"> 
                            <asp:ImageButton ID="buttonUpdate" runat="server" CommandName="Update" ToolTip="<%$ Resources:Labels,Update %>" ValidationGroup="editArticle" CausesValidation="true" /> 
                            <asp:ImageButton ID="buttonCancel" runat="server" CommandName="Cancel" ToolTip="<%$ Resources:Labels,Cancel %>" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:,Author %>" AssociatedControlID="textBoxAuthor" /> 
                        </td> 
                        <td> 
                            <asp:TextBox ID="textBoxAuthor" runat="server" Text='<%# Bind("author") %>' MaxLength="80" Width="200px" /> 
                        </td> 
                    </tr> 
                <!--CONTINUES...--> 
                </table> 
            </FormTemplate> 
        </EditFormSettings> 
    </MasterTableView> 
</rad:RadGrid>
Thank you.
PS: I also tried to set the AllowAutomaticDeletes/Inserts/Updates to False but nothing..
hk proj
Top achievements
Rank 1
 answered on 21 Aug 2009
3 answers
181 views

How can all the filtered types and values from a grid view? In the grid view, we want to provide the flexibility to filter the result by more than one column. We are using custom data source to load the grid. The below URL helps to identify the last selected filter type and value (for example col.5).

http://www.telerik.com/help/aspnet-ajax/grdoperatewithfilterexpression.html

 

But I’m interested to know ALL the previously selected (for example Col 1, Col 2, and Col 3) filter type and value

 

 I’ve contacted the support and they have not given me the direct (appropriate) answer. Could any one help me?

Yavor
Telerik team
 answered on 21 Aug 2009
2 answers
127 views

I am having a problem with my RadGrid control.  It appears that the header line, one of the rows and some of the text is shifted all the way over to the right to the point where it's past the right border area.  How can I fix that?  See the link for a picture.  Thanks!

http://img198.imageshack.us/img198/6192/cssmessedup.jpg

Brett
Top achievements
Rank 1
 answered on 21 Aug 2009
1 answer
226 views
I have several columns in a instance of RadGrid using a DataFormatString to display currency with the decimal values removed (i.e. {0:c0}).

When a user attempts to filter on any of these columns using the "Equals" filter option, nothing is returned.  I presume this is because the underlying data contains the decimal values which is what RadGrid is filtering on.

Is there a recommended way of handling this scenario?
Veli
Telerik team
 answered on 21 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?