Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
315 views
Hi,
Please consider UI hierarchy below:

RadListView (ParentListView)

        ParentListView Child 1 RadGrid

        ParentListView Child 2RadGrid

        ParentListView Child 3 RadListView Sub (Sub ListView)

                 Sub ListView Child 1 RadGrid

                 Sub ListView Child 2 RadGrid

Every grid above supports Add and Edit item functionality and every grid has it's Need Data Source event.
The problem is whenever I Add new record in ParentListView Child 2RadGrid (using template) it get reflected in UI, however when I try to add new record in Sub ListView Child 2 RadGrid it opens template view, user can enter value in it and click on Save button however it doesn't show newly added record in UI (the datasource object has new record in it).

(No Declarative DataSource is used for any control).


Any help is appreciated.

Thanks,
Shekhar


Here is the code

<telerik:RadListView runat="server" ID="radListViewParent" ItemPlaceholderID="ParentPlaceHolder"
    Skin="Vista" Font-Bold="true" EnableViewState="true">
    <LayoutTemplate>
        <table cellpadding="0" cellspacing="0" width="99%">
            <tr>
                <td align="left">
                    <asp:PlaceHolder ID="ParentPlaceHolder" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
            <tr style="height: 20px;">
                <td align="left">
                    <telerik:RadButton ID="btnAddNewItem" Text="Add New" CommandName="PerformInsert"
                        runat="server">
                    </telerik:RadButton>
                </td>
            </tr>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <table cellpadding="0" cellspacing="0" width="99%">
            <tr>
                <td>
                    <asp:HiddenField runat="server" ID="hdnFldId" Value='<%# Bind("Id") %>' />
                    <asp:Label ID="Label1" runat="server">Heading</asp:Label>
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txtHeading" Text='<%# Bind("Text") %>'>
                    </telerik:RadTextBox>
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgBtnDelete" AlternateText="Delete" CommandName="Delete"
                        CommandArgument='<%# Bind("Id") %>' OnClientClick="return CofirmHeadingDelete()"
                        ImageUrl="~/App_Themes/Theme1/images/delete_small_btn.gif" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server">Text</asp:Label>
                </td>
                <td colspan="2">
                    <telerik:RadEditor runat="server" ID="radHeadingText" Height="200" Width="500" AutoResizeHeight="false"
                        Content='<%# Bind("TextDiscription") %>'>
                        <Tools>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="Bold" Text="Bold" />
                                <telerik:EditorTool Name="Italic" Text="Italic" />
                                <telerik:EditorTool Name="Underline" Text="Underline" />
                                <telerik:EditorTool Name="InsertLink" Text="Insert Link Dialog" />
                                <telerik:EditorTool Name="Unlink" />
                            </telerik:EditorToolGroup>
                        </Tools>
                    </telerik:RadEditor>
                </td>
            </tr>
            <!--ParentListView Child 1 RadGrid  -->
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <fieldset style="width: 100%;">
                        <legend style="font-weight: bold; font-size: larger; color: Black;">Ref Doc</legend>
                        <telerik:RadGrid runat="server" ID="ParentListViewChild1RadGrid" AutoGenerateColumns="false"
                            AllowSorting="false" AllowAutomaticUpdates="true" AllowAutomaticInserts="true"
                            Skin="Web20" OnItemDataBound="ParentListViewChild1RadGrid_ItemDataBound" OnItemCommand="ParentListViewChild1RadGrid_ItemCommand"
                            OnItemCreated="ParentListViewChild1RadGrid_ItemCreated" OnNeedDataSource="ParentListViewChild1RadGrid_NeedDataSource">
                            <MasterTableView DataKeyNames="Id" CommandItemDisplay="Bottom" Width="100%" InsertItemDisplay="Bottom">
                                <Columns>
                                    <telerik:GridTemplateColumn ReadOnly="true">
                                        <ItemTemplate>
                                            <asp:Image ID="imgFiletypeIcon" runat="server" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="Description" HeaderText="Description">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CustomFileName" HeaderText="CustomFileName" ReadOnly="true"
                                        Display="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridAttachmentColumn MaxFileSize="1048576" EditFormHeaderTextFormat="Upload File:"
                                        AttachmentDataField="BinaryData" DataTextField="CustomFileName" UniqueName="AttachmentColumn">
                                    </telerik:GridAttachmentColumn>
                                    <telerik:GridEditCommandColumn HeaderStyle-Width="30px" EditImageUrl="../../../App_Themes/Theme1/images/update_small_btn.png"
                                        ButtonType="ImageButton">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridTemplateColumn>
                                        <ItemTemplate>
                                            <asp:ImageButton AlternateText="Delete" runat="server" ID="imgBtnEnrollDeleteRefDoc"
                                                CommandName="Delete" ImageUrl="~/App_Themes/Theme1/images/delete_btn.png" CommandArgument='<%# Eval("ArtifactId") %>'
                                                OnClientClick="return confirm('Are you sure you want to delete this record?');" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="" AddNewRecordImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif" />
                                <EditFormSettings EditColumn-ButtonType="ImageButton" FormTableStyle-CellSpacing="5"
                                    EditColumn-UpdateImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif"
                                    EditColumn-CancelImageUrl="../../../App_Themes/Theme1/images/cancel_small_btn.gif"
                                    EditColumn-UpdateText="Add" EditColumn-CancelText="Cancel">
                                    <FormTableStyle CellSpacing="5" />
                                    <FormMainTableStyle CellPadding="5" CellSpacing="5" />
                                </EditFormSettings>
                                <NoRecordsTemplate>
                                    No records found.
                                </NoRecordsTemplate>
                            </MasterTableView>
                            <ClientSettings>
                                <ClientEvents OnCommand="gridCommand"></ClientEvents>
                            </ClientSettings>
                        </telerik:RadGrid>
                    </fieldset>
                </td>
            </tr>
            <!-- ParentListView Child 2RadGrid -->
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <fieldset style="width: 100%;">
                        <legend style="font-weight: bold; font-size: larger; color: Black;">URL</legend>
                        <telerik:RadGrid runat="server" ID="ParentListViewChild2RadGrid" AutoGenerateColumns="false"
                            AllowSorting="false" Skin="Web20" Width="100%" OnItemCommand="ParentListViewChild2RadGrid_ItemCommand"
                            OnNeedDataSource="ParentListViewChild2RadGrid_NeedDataSource" OnItemDataBound="ParentListViewChild2RadGrid_ItemDataBound">
                            <MasterTableView DataKeyNames="HeadingId" CommandItemDisplay="Bottom" Width="100%"
                                ShowHeadersWhenNoRecords="true">
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="Url" DataField="Url" HeaderText="Url" ItemStyle-Width="100px">
                                        <ItemStyle Wrap="true" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name" ItemStyle-Width="100px">
                                        <ItemStyle Wrap="true" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridEditCommandColumn HeaderText="" HeaderStyle-Width="30px" ButtonType="ImageButton"
                                        EditImageUrl="../../../App_Themes/Theme1/images/update_small_btn.png">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ConfirmDialogType="Classic" ConfirmTitle="Confirm Delete"
                                        DataTextField="" UniqueName="Delete" HeaderStyle-Width="30px" ConfirmText="Are you sure you want to delete this record?"
                                        ButtonType="ImageButton" ImageUrl="~/App_Themes/Theme1/images/delete_btn.png"
                                        Text="Delete" CommandArgument="" CommandName="Delete">
                                    </telerik:GridButtonColumn>
                                </Columns>
                                <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="" AddNewRecordImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif" />
                                <EditFormSettings>
                                    <FormTableItemStyle Wrap="true"></FormTableItemStyle>
                                    <EditColumn ButtonType="ImageButton" UpdateImageUrl="../../../App_Themes/Theme1/images/update_small_btn.png"
                                        InsertImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif" UniqueName="EditCommandColumn1"
                                        CancelImageUrl="../../../App_Themes/Theme1/images/cancel_small_btn.gif" CancelText="">
                                    </EditColumn>
                                    <FormTableButtonRowStyle HorizontalAlign="Right"></FormTableButtonRowStyle>
                                </EditFormSettings>
                                <NoRecordsTemplate>
                                    No records found.
                                </NoRecordsTemplate>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </fieldset>
                </td>
            </tr>
            <!-- ParentListView Child 3 RadListView Sub (Sub ListView)-->
            <tr>
                <td colspan="3">
                    <telerik:RadListView runat="server" ID="ParentListViewChild3RadListViewSub" ItemPlaceholderID="SubListPlaceHolder"
                        Skin="Vista" Font-Bold="true" OnItemDataBound="ParentListViewChild3RadListViewSub_ItemDataBound"
                        OnItemCommand="ParentListViewChild3RadListViewSub_ItemCommand" EnableViewState="true"
                        DataSource='<%# Eval("SubHeadingsList") %>'>
                        <LayoutTemplate>
                            <fieldset style="width: 100%; background-color: #f3f3f3;">
                                <legend style="font-weight: bold; font-size: larger; color: Black;">Sub Headings</legend>
                                <table cellpadding="0" cellspacing="0" width="98%">
                                    <tr>
                                        <td>
                                            <asp:PlaceHolder ID="SubListPlaceHolder" runat="server"></asp:PlaceHolder>
                                        </td>
                                    </tr>
                                    <tr style="height: 20px;">
                                        <td align="right">
                                            <telerik:RadButton ID="btnAddNewSubListItem" Text="Add New Sub Item" runat="server"
                                                CommandName="PerformInsert" CommandArgument='<%# Bind("HeadingId") %>'>
                                            </telerik:RadButton>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <table cellpadding="0" cellspacing="0" width="98%">
                                <tr>
                                    <td>
                                        <telerik:RadTextBox runat="server" ID="txtHeading" Text='<%# Bind("Text") %>'>
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="imgBtnSubLisItemDelete" runat="server" AlternateText="Delete"
                                            CommandName="Delete" CommandArgument='<%# Bind("HeadingId") %>' OnClientClick="return CofirmSubHeadingDelete()"
                                            ImageUrl="~/App_Themes/Theme1/images/delete_small_btn.gif" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label4" runat="server">Text</asp:Label>
                                    </td>
                                    <td colspan="2">
                                        <telerik:RadEditor runat="server" ID="radEditorSubListItemText" Height="200" Width="500"
                                            AutoResizeHeight="false" Content='<%# Bind("TextDiscription") %>'>
                                            <Tools>
                                                <telerik:EditorToolGroup>
                                                    <telerik:EditorTool Name="Bold" Text="Bold" />
                                                    <telerik:EditorTool Name="Italic" Text="Italic" />
                                                    <telerik:EditorTool Name="Underline" Text="Underline" />
                                                    <telerik:EditorTool Name="InsertLink" Text="Insert Link Dialog" />
                                                    <telerik:EditorTool Name="Unlink" />
                                                </telerik:EditorToolGroup>
                                            </Tools>
                                        </telerik:RadEditor>
                                    </td>
                                </tr>
                                <!--Grid Subheading Ref Doc-->
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="2">
                                        <fieldset style="width: 100%">
                                            <legend style="font-weight: bold; font-size: larger; color: Black;">Ref Doc</legend>
                                            <telerik:RadGrid runat="server" ID="SubListViewChild1RadGrid" AutoGenerateColumns="false"
                                                AllowSorting="false" AllowAutomaticUpdates="true" AllowAutomaticInserts="true"
                                                Skin="Web20" OnItemCommand="SubListViewChild1RadGrid_ItemCommand" OnItemDataBound="SubListViewChild1RadGrid_ItemDataBound"
                                                OnNeedDataSource="SubListViewChild1RadGrid_OnNeedDataSource">
                                                <MasterTableView DataKeyNames="ArtifactId" CommandItemDisplay="Bottom" Width="90%">
                                                    <Columns>
                                                        <telerik:GridBoundColumn DataField="IsFileUploaded" HeaderText="ID" ReadOnly="true"
                                                            Display="false">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridTemplateColumn ReadOnly="true">
                                                            <ItemTemplate>
                                                                <asp:Image ID="imgFiletypeIcon" runat="server" />
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridBoundColumn DataField="Description" HeaderText="Description">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="CustomFileName" ReadOnly="true" HeaderText="CustomFileName"
                                                            Display="false">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridAttachmentColumn MaxFileSize="1048576" EditFormHeaderTextFormat="Upload File:"
                                                            HeaderText="File" AttachmentDataField="BinaryData" DataTextField="CustomFileName"
                                                            UniqueName="AttachmentColumn">
                                                        </telerik:GridAttachmentColumn>
                                                        <telerik:GridEditCommandColumn HeaderStyle-Width="30px" ButtonType="ImageButton"
                                                            EditImageUrl="../../../App_Themes/Theme1/images/update_small_btn.png">
                                                        </telerik:GridEditCommandColumn>
                                                        <telerik:GridTemplateColumn>
                                                            <ItemTemplate>
                                                                <asp:ImageButton AlternateText="Delete" runat="server" ID="imgSubHeadBtnDeleteRefDoc"
                                                                    CommandName="Delete" ImageUrl="~/App_Themes/Theme1/images/delete_btn.png" CommandArgument='<%# Eval("ArtifactId") %>'
                                                                    OnClientClick="return confirm('Are you sure you want to delete this record?');" />
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                    </Columns>
                                                    <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="" AddNewRecordImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif" />
                                                    <EditFormSettings EditColumn-ButtonType="ImageButton" FormTableStyle-CellSpacing="5"
                                                        EditColumn-UpdateImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif"
                                                        EditColumn-CancelImageUrl="../../../App_Themes/Theme1/images/cancel_small_btn.gif"
                                                        EditColumn-UpdateText="Save" EditColumn-CancelText="Cancel">
                                                        <EditColumn UniqueName="EditCommandColumn">
                                                        </EditColumn>
                                                        <FormTableStyle CellSpacing="5" />
                                                        <FormMainTableStyle CellPadding="5" CellSpacing="5" />
                                                    </EditFormSettings>
                                                    <NoRecordsTemplate>
                                                        No records found.
                                                    </NoRecordsTemplate>
                                                </MasterTableView>
                                                <ClientSettings>
                                                    <ClientEvents OnCommand="gridCommand"></ClientEvents>
                                                </ClientSettings>
                                            </telerik:RadGrid>
                                        </fieldset>
                                    </td>
                                </tr>
                                <!--Sub ListView Child 2 RadGrid -->
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="2">
                                        <fieldset style="width: 100%">
                                            <legend style="font-weight: bold; font-size: larger; color: Black;">URL</legend>
                                            <telerik:RadGrid runat="server" ID="SubListViewChild2RadGrid" AutoGenerateColumns="false"
                                                AllowSorting="false" Skin="Web20" Width="100%" OnNeedDataSource="SubListViewChild2RadGrid_NeedDataSource"
                                                OnItemCommand="SubListViewChild2RadGrid_ItemCommand" OnItemDataBound="SubListViewChild2RadGrid_ItemDataBound">
                                                <MasterTableView DataKeyNames="ArtifactId" CommandItemDisplay="Bottom" Width="100%">
                                                    <Columns>
                                                        <telerik:GridBoundColumn DataField="Url" HeaderText="Url" ItemStyle-Width="100px">
                                                            <ItemStyle Wrap="true" />
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" ItemStyle-Width="100px">
                                                            <ItemStyle Wrap="true" />
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridEditCommandColumn HeaderText="" HeaderStyle-Width="30px" ButtonType="ImageButton"
                                                            EditImageUrl="../../../App_Themes/Theme1/images/update_small_btn.png">
                                                        </telerik:GridEditCommandColumn>
                                                        <telerik:GridButtonColumn ConfirmDialogType="Classic" ConfirmTitle="Confirm Delete"
                                                            DataTextField="" UniqueName="Delete" HeaderStyle-Width="30px" ConfirmText="Are you sure you want to delete this record?"
                                                            ButtonType="ImageButton" ImageUrl="~/App_Themes/Theme1/images/delete_btn.png"
                                                            Text="Delete" CommandArgument="" CommandName="Delete">
                                                        </telerik:GridButtonColumn>
                                                    </Columns>
                                                    <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="" AddNewRecordImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif" />
                                                    <EditFormSettings>
                                                        <FormTableItemStyle Wrap="true"></FormTableItemStyle>
                                                        <EditColumn UpdateText="" UpdateImageUrl="../../../App_Themes/Theme1/images/update_small_btn.png"
                                                            InsertText="" InsertImageUrl="../../../App_Themes/Theme1/images/add_small_btn.gif"
                                                            ButtonType="ImageButton" UniqueName="EditCommandColumn1" CancelImageUrl="../../../App_Themes/Theme1/images/cancel_small_btn.gif"
                                                            CancelText="">
                                                        </EditColumn>
                                                        <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                                                    </EditFormSettings>
                                                    <NoRecordsTemplate>
                                                        No records found.
                                                    </NoRecordsTemplate>
                                                </MasterTableView>
                                            </telerik:RadGrid>
                                        </fieldset>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <ItemSeparatorTemplate>
                            <table>
                                <tr style="height: 20px;">
                                </tr>
                            </table>
                        </ItemSeparatorTemplate>
                    </telerik:RadListView>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <ItemSeparatorTemplate>
        <table>
            <tr style="height: 20px;">
            </tr>
        </table>
    </ItemSeparatorTemplate>
</telerik:RadListView>

 

 

Eyup
Telerik team
 answered on 08 Jul 2013
1 answer
83 views
I have a RadTimeView with TimeFormat="h:mm tt" and I cannot get the times in the popup to align right. I have added HorizontalAlign=Right" and TimeStyle-HorizontalAlign="Right" and the times are still centered. Looking at the generated html, it appears that the problem is because the anchor elements in the table cells (the table cells DO have align="right" on them) are getting the css attributes display:block and text-align:center applied (from .RadCalendarTimeView style). Since the anchor elements display as block, they are taking the full width of the table cell, so the center align attribute is overriding the cell attribute. When HorizontalAlign="Right" is specified, it should be applied to the a element as well.

v2012.3.1308.40
Eyup
Telerik team
 answered on 08 Jul 2013
1 answer
55 views
Hi. 'm Exporting PDF file using RadGrid. I want, exported pdf file has to be shown Page Number on each page footer in Center.
'm using Telerik 2011 Release ver 5:1:11:928.

Please help me in this.
Thanks in advance.
Kostadin
Telerik team
 answered on 08 Jul 2013
9 answers
198 views

Hi developers,

I'm using a List of objects to fill my Grid. The objects type is a class that inherits from another class. My grid shows the fields correctly, but if I try sort, I get some strange errors. When I try to sort by a field from the base class, I get an error (Cannot find the column '...'). If I try sort by a field from the child class (used as DataSource), the Grid is sorted correctly.

My Telerik version is Q3 2008.

Following, I try to exemplify the situation.

My classes:

public class ClassA  
{  
   public string ID { getset; }  
   public string Name { getset; }  
}  
 
public class ClassB : ClassA  
{  
   public string ZipCode { getset; }  

My Page:

radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
{  
    List<ClassB> list = getData();  
    radGrid.DataSource = list;  

If I try to sort by ZipCode, the Grid is sorted.
If I try to sort by Name or ID, I get the error "Cannot find column".
Andrey
Telerik team
 answered on 08 Jul 2013
1 answer
297 views
Hi,

I have email ( compose screen ) is showing in the radwindow as popup. If user clicks on close button accidentally then I would like to show radconfirm.

Now I can able to show radconfirm ( "Do you want to save as draft ") , But 2 things i have to do.
1) Have check validation before save.
2) If user clicks on "OK" then i would like to save as draft.

In Parent :

<telerik:RadWindowManager runat="Server" ID="RadWindowManager2" ShowContentDuringLoad="false"
    EnableViewState="false">
    <Windows>
        <telerik:RadWindow runat="server" ID="EmailScreen" KeepInScreenBounds="true" Title="TWDM Email"
            OnClientBeforeClose="OnClientBeforeCloseEmailScreen" InitialBehaviors="Maximize"
            AutoSize="true" Width="1000px" Height="850px" ReloadOnShow="true" ShowContentDuringLoad="false"
            Modal="True" Behaviors="Close,Move,Resize,Maximize" VisibleStatusbar="true">
        </telerik:RadWindow>
    </Windows>  
</telerik:RadWindowManager>
 
  function OnClientBeforeCloseEmailScreen(sender, eventArgs) {
            radconfirm('Do you want to save as draft?', confirmCallbackFn1, 400, 200, null, 'TWDM Confirm');
        }
 
        function confirmCallbackFn1(arg) {
            if (arg) //the user clicked OK
            {
                __doPostBack("<%=hdnBtnSaveAsDraft.UniqueID %>", "");
            }
        }
 
 
' Showing email compose screen in Radwindow Popup here.
 function onButtonClicked(sender, args) {
            var commandName = args.get_item().get_commandName();
            var qs = getQueryStrings();
            var oManager = GetRadWindowManager().getWindowByName("EmailScreen");
           if (commandName == "Compose") {
                window.radopen("ComposeMail.aspx?type=NewEmail&TaskNo=" + qs["TaskNo"] + "&Parent=" + qs["Parent"] + "", "EmailScreen");
              
        }


Find the attachment and Please help me on this..





Ivaylo
Telerik team
 answered on 08 Jul 2013
1 answer
113 views
Hi telerik

Here is the makup of a radnumerictextbox.

<telerik:RadNumericTextBox ID="tax" runat="server" Skin="Silk" />

The issue is the warning icon is not shown on typing invalid characters. Please help me to resolve this issue.

Thankyou
Tia
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2013
1 answer
139 views
I have a RadTabStrip inside an iFrame (RadWindow) that has 3 tabs linked to a RadMultiPage. In Chrome, everything works as expected. However, when in Firefox or IE10, when I click a tab, the browser freezes. In firebug I can see the following error
NS_ERROR_OUT_OF_MEMORY: Out of Memory
if(e){b=e[a];
in the following script handler /ScriptResource.axd?d=L4WBh96PmKNCiYr3K6CV0_ZHQcTFtyYsMMhJHDHizCIjUYPB1QMHsdVHkAqaPl2iW-js_t_mCG5P7euqU0HZJjinokxnSpRjMsTiR7f_8XfUO9RR0PmqEDIwMXTaHZyZv_jJwsr634ePuuIZJpwAkQ2&t=4004e9e8 on line 123

I have also tried attaching client side event to the tabs. They're triggered correctly in chrome, but nothing in both IE and Firefox.

Is there a known fix for this problem?
Nencho
Telerik team
 answered on 08 Jul 2013
1 answer
52 views
I need to get the datakey value of a radgrid dragged item on  RowDropping event  but everything I tried returns null.
e.g. 
args._dragedItems[0].getDataKeyValue('ProcedureID')

var UIProceduresGrid = $find($telerik.$("[id$='UIProceduresGrid']")[0].id);
            var UIProceduresGridTable = UIProceduresGrid.get_masterTableView();
            var UIProceduresGridRows = UIProceduresGridTable.get_dataItems();
            var dragged = UIProceduresGridRows[args._dragedItems[0]._itemIndexHierarchical];
dragged.getDataKeyValue("ProcedureID") 


and few other things

 Can anyone please help me with this.

Thanks in advance.
Eyup
Telerik team
 answered on 08 Jul 2013
1 answer
181 views
Hi,

I have a filter template which is using my own custom filter, this is setup in the item command. After this event Telerik build up the rest of the filter expression by looping through the columns. I need this loop to exclude the column that I have already built the filter expression for.

The custom filter template is a combobox with check boxes. I convert the comma separated string into OR conditions in the grid filter expression. For example 'cup, plate, glass' gets converted to "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') )" which is correct, however after the item command event the value from the filter control is automatically used for my column with the custom filter so the filter expression becomes "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') ) AND ([category] = 'cup,plate,glass')". This occurs when I filter another column when a filter already exists for my custom column.

Can I exclude my column from the in-built filtering but keep my custom filtering?

Eyup
Telerik team
 answered on 08 Jul 2013
2 answers
116 views
When the grid control displays its data, the child rows are collapsed and the user needs to click on the arrow to the left to expand it and the only way a user knows if a row has child data is to expand it.  Is there a way to have the expand arrow (or some other way) display a different color if there are child rows?  I don't want to expand every child row as that would make it difficult for the users to quickly find the data they want.
Jon
Top achievements
Rank 1
 answered on 08 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?