Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Hello Support,

We are using 2013.1.220.32 version of telerik rad controls.

We are using multiple RadTabStrip as a sub Main Tab and inside that as a Sub Tab. We also have multiple RadTreeview inside that RadTabs. We have also used rad splitters and rad panes on that page in user control

While accessing that page on IE8 native browser It's throwing unable to open error message dialogue. Attaching snapshot here.

Thanks.
Princy
Top achievements
Rank 2
 answered on 20 Aug 2014
5 answers
940 views
Dear Team,

I have a rad tree view placed inside rad combo box. I need to retrieve the child node of the node inside the rad tree view dynamically. The rad tree view inside the rad combo box uses web services call for load on demand.

For example, if the tree node structure inside the rad combo box is as follows:

         Node 1
             Level 1
                  Level 2
 
        Node 2
             Level 1
                   Level 2

Initially, the combo box will display upon drop down Node 1 & Node 2. However, if we click Node 1 or Node 2, this will populate the child nodes.

My requirement is that I should be able to traverse from Node 1 through the deepest level via JavaScript API so that I can compare if this is the node or level that needs to remain selected on the rad combo box.

Kindly assist through me on achieving this.

Thanks in advance.


Shinu
Top achievements
Rank 2
 answered on 20 Aug 2014
4 answers
91 views
Scenario:
Everything working great by dynamically generating columns and dynamically placing controls/content within them. So far... excellent!
So say i have a LayoutRow with 1 column span=12 and underneath that i have another LayouRow with 3 columns each with span=4.
In the column in the first row is a wide header graphic.
When i resize to a mobile device, my 3 columns in row 2 stack upon each other quite nicely,but obviously row 1 with the wide header graphic forces the horizontal scrollbars.

Question:
When the viewport/browser is at a given size/breakpoint, let's say 360px (xs).... Is there any object(RadPageLayout, LayoutRow, LayoutColumn) that knows which breakpoint is being applied? Is it xs? sm? md? lg? or xl?. Can i "read" that property from any of the controls .. like If myLayoutColumn.SpanXs = True or myLayoutColumn.breakpoint = ?

Goal:
I want to be able to read the breakpoint from the Rad control and then correspondingly and programmatically insert a smaller graphic into row 1 so that the 360px will take up 100% of the screen with no horizontal scrollbars.

Thanks  in advance,

Dana
Ivan Zhekov
Telerik team
 answered on 20 Aug 2014
2 answers
132 views
Hi

I have my validationsummary control in the ContentTemplate of RadNotification and it used to work perfectly fine until I have upgraded the Telerik to the latest version. It is now not displaying the validation summary but pops up a blank notification. It actually displays anything that I add in the contenttemplate but not the validationsummary.
Do  you think there is anything that has knocked out in the latest version?
Rama
Top achievements
Rank 1
 answered on 20 Aug 2014
2 answers
151 views
Hi,

           I am using a Rad List View with the Layout Template,Item Template and EditItem Template...while clicking the Edit it is automatically switching to the EditItemTemplate,In the EditItemTemplate I have two buttons Update and Cancel when i click cancel it is automatically coming back to the Item Template  but when i click on the Update Button on the EditItemTemplate it is not returning back to the ItemTemplate. I have tried the solutions in the Forum but nothing worked fine.

          I have attached my code here.


 <rad:RadFormDecorator ID="RadFormDecorator1"  runat="server" EnableRoundedCorners="true" />
    <rad:RadSkinManager  ID="QsfSkinManager" runat="server" ShowChooser="false"></rad:RadSkinManager>
    <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="rcmbchecklist">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="ListViewPanel" />
                </UpdatedControls>
            </rad:AjaxSetting>
             <rad:AjaxSetting AjaxControlID="rcmbchecklist">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="ListViewPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="ListViewPanel">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="ListViewPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmblibrary">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbsection" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmbsection">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbchecklist" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmbchecklist">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rlvsessionrecordings" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rlvsessionrecordings">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rlvsessionrecordings" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <rad:AjaxUpdatedControl ControlID="RadWindowManager1" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="btnadd">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rlvsessionrecordings" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <rad:AjaxUpdatedControl ControlID="lblMessage" />
                    <%-- <rad:AjaxUpdatedControl ControlID="hfdChecklistitem" />--%>
                    <rad:AjaxUpdatedControl ControlID="rtxtchecklistitem" UpdatePanelRenderMode="Inline" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmblibrary">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbsection" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="rcmbsection">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="rcmbchecklist" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </rad:AjaxSetting>
          
        </AjaxSettings>
    </rad:RadAjaxManager>
     <rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" BackgroundPosition="Center" Skin="Silk" InitialDelayTime="0" MinDisplayTime="1000" Transparency="25"></rad:RadAjaxLoadingPanel>
    <rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Top" Skin="Silk" InitialDelayTime="0" MinDisplayTime="1000" Transparency="25">
    
    </rad:RadAjaxLoadingPanel>
    <asp:ValidationSummary ID="ValidationSummaryctrl" ShowMessageBox="true" ShowSummary="false"
        runat="server" HeaderText="The following error(s) have occurred:" />
    <asp:Label ID="lblMessage" runat="server" Font-Bold="true" ForeColor="Green" Style="font-weight: 500"
        Visible="false"></asp:Label>
    <table style="width: 35%; height: 400px;">
        <tr>
            <td class="RequiredField">
                <asp:Label ID="lbllibrary" runat="server" Text="Library"></asp:Label>
            </td>
            <td style="width: 80%">
                <rad:RadComboBox ID="rcmblibrary" runat="server" DataValueField="LibraryID" DataTextField="LibTitle"
                    AutoPostBack="true" OnSelectedIndexChanged="rcmblibrary_SelectedIndexChanged"
                    CausesValidation="false">
                </rad:RadComboBox>
            </td>
            <td class="RequiredField">
                <asp:Label ID="lblsection" runat="server" Text="Section"></asp:Label>
            </td>
            <td colspan="1">
                <rad:RadComboBox ID="rcmbsection" runat="server" DataValueField="SectionID" DataTextField="SectionTitle"
                    AutoPostBack="true" OnSelectedIndexChanged="rcmbsection_SelectedIndexChanged"
                    CausesValidation="false">
                </rad:RadComboBox>
            </td>
            <td class="RequiredField">
                <asp:Label ID="lblchecklist" runat="server" Text="Checklist"></asp:Label>
            </td>
            <td>
                <rad:RadComboBox ID="rcmbchecklist" runat="server" DataValueField="ChecklistHeaderID"
                    DataTextField="ChecklistName" AutoPostBack="true" OnSelectedIndexChanged="rcmbchecklist_SelectedIndexChanged"
                    CausesValidation="false">
                </rad:RadComboBox>
            </td>
        </tr>
        <tr>
            <td class="RequiredField">
                <asp:Label ID="lblchecklistitem" runat="server" Text="ChecklistItem  "></asp:Label>
            </td>
            <td colspan="3">
                <%--  <asp:HiddenField runat="server" ID="hfdChecklistitem" />--%>
                <rad:RadTextBox ID="rtxtchecklistitem" runat="server" Width="200px">
                </rad:RadTextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Checklist Item is Required."
                    Display="None" ControlToValidate="rtxtchecklistitem"></asp:RequiredFieldValidator>
                <asp:Button ID="Button3" Text="Add Checklist Item" CssClass="FormButton" Width="120px"
                    runat="server" OnClick="btnAddChecklistItems_OnClick"></asp:Button>
            </td>
            <%-- <td colspan="1">
                <asp:Button ID="btnadd" Text="Add Checklist Item" CssClass="FormButton" Width="120px"
                    runat="server" OnClick="btnAddChecklistItems_OnClick"></asp:Button>
            </td>--%>
        </tr>
        <tr style="height: 200%;">
            <td colspan="6" style="text-top;">
                <rad:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="rlvsessionrecordings"
                    PageSize="25">
                    <Fields>
                        <rad:RadDataPagerButtonField FieldType="FirstPrev" />
                        <rad:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                        <rad:RadDataPagerButtonField FieldType="NextLast" />
                        <rad:RadDataPagerPageSizeField PageSizeComboWidth="60" PageSizeText="Page size: " />
                        <rad:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                            TextBoxWidth="30" />
                        <rad:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <b>Items
                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                    to
                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                    of
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                    <br />
                                </b>
                            </PagerTemplate>
                        </rad:RadDataPagerTemplatePageField>
                    </Fields>
                </rad:RadDataPager>
                <rad:RadSplitter ID="radsplitter2" runat="server" Orientation="Horizontal" Width="1150"
                    Height="450" BorderStyle="Solid" BackColor="#b2e1ff">
                    <rad:RadPane ID="RadPane1" runat="server" Scrolling="Y" BorderStyle="Solid" BackColor="#b2e1ff"
                        Height="390">
                        <asp:Panel ID="Panel" runat="server">
                            <rad:RadWindowManager ID="RadWindowManager1" runat="server">
                                <Windows>
                                    <rad:RadWindow ID="DialogWindow" runat="server" Modal="True" Title="Picture" Top="-10"
                                        Height="400" Left="-10" AutoSizeBehaviors="Width, Height" AutoSize="true" KeepInScreenBounds="false"
                                        InitialBehavior="None" ShowContentDuringLoad="false" VisibleStatusbar="false"
                                        Behaviors="Close , Reload" OnClientShow="OnClientShow" VisibleOnPageLoad="false">
                                        <ContentTemplate>
                                            <div style="width: 200px; height: 200px;">
                                                <rad:RadBinaryImage ID="RadBinaryImage1" runat="server" AlternateText="Contact Photo"
                                                    ToolTip='<%#Eval("ChecklistItemDesc") %>' Width="400px" Height="200px" ResizeMode="Fill"
                                                    AutoAdjustImageControlSize="true" DataValue='<%# Eval("Picture") == DBNull.Value? new System.Byte[0]: Eval("Picture") %>'>
                                                </rad:RadBinaryImage>
                                            </div>
                                        </ContentTemplate>
                                    </rad:RadWindow>
                                </Windows>
                            </rad:RadWindowManager>
                            <rad:RadAjaxPanel ID="RadAjaxPane1" runat="server" ClientEvents-OnRequestStart="OnRequestStart"
                                LoadingPanelID="RadAjaxLoadingPanel1">
                                <asp:Panel ID="ListViewPanel" runat="server">
                                    <rad:RadListView ID="rlvsessionrecordings" runat="server" ItemPlaceholderID="pnlholder"
                                        Width="100%" AllowPaging="true" OnNeedDataSource="rlvsessionrecordings_NeedDataSource"
                                        OnItemDataBound="rlvsessionrecordings_OnItemDataBound" OnItemCommand="rlvsessionrecordings_ItemCommand" 
                                        BackColor="#b2e1ff" BorderStyle="Solid">
                                        <LayoutTemplate>
                                            <fieldset style="width: 100%; border-style: solid">
                                                <legend><strong>
                                                    <h2>
                                                        Checklist Header</h2>
                                                </strong></legend>
                                                <table cellpadding="0" cellspacing="0" width="100%;" style="clear: both; background-color: #b2e1ff">
                                                    <tr>
                                                        <td>
                                                            <asp:PlaceHolder ID="pnlholder" runat="server"></asp:PlaceHolder>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <fieldset style="float: left; width: 98%; height: 240px; overflow: auto; background-color: b2e1ff;">
                                                <legend><b>
                                                    <%# Eval("ChecklistName")%></b></legend>
                                                <table cellpadding="0" cellspacing="0" width="85%">
                                                    <tr>
                                                        <td class="RequiredField" style="width: 20%">
                                                            Checklist Item
                                                        </td>
                                                        <td class="RequiredField" style="width: 40%;">
                                                            <rad:RadTextBox ID="RadTextBox1" TextMode="MultiLine" Rows="3" Width="280px" Height="50px"
                                                                runat="server" Text='<%#Bind("ChecklistItemDesc")%>' Enabled="false">
                                                            </rad:RadTextBox>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="3">
                                                            Checklist Status
                                                        </td>
                                                        <td>
                                                            <rad:RadComboBox ID="ddlStatus" runat="server" DataValueField="StatusID" DataTextField="StatusDesc"
                                                                Width="100px" DropDownWidth="200" AutoPostBack="true">
                                                            </rad:RadComboBox>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="3">
                                                            Library :
                                                            <%# Eval("LibTitle")%>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="2">
                                                            Section :
                                                            <%# Eval("SectionTitle")%>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <td class="RequiredField">
                                                            Findings
                                                        </td>
                                                        <td>
                                                            <rad:RadTextBox ID="RadTextBox2" TextMode="MultiLine" Rows="3" Width="280px" Height="50px"
                                                                runat="server" Text='<%#Bind("Findings")%>' Enabled="false">
                                                            </rad:RadTextBox>
                                                        </td>
                                                        <td class="RequiredField" colspan="3">
                                                            Recommendation
                                                        </td>
                                                        <td colspan="3">
                                                            <rad:RadTextBox ID="txtrecommendation" runat="server" TextMode="MultiLine" Rows="3"
                                                                Width="300px" Height="50px" Text=' <%# Eval("Recommendation")%>' Enabled="false">
                                                            </rad:RadTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <td class="RequiredField" style="width: 20%">
                                                            Percentage of Compliance
                                                        </td>
                                                        <td class="RequiredField" style="width: 13%;">
                                                            <rad:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Enabled="false" Text='<%#Bind("PercentCompliant")%>'>
                                                            </rad:RadNumericTextBox>
                                                        </td>
                                                        <td colspan="3" style="text-align: left;">
                                                            <asp:Label ID="lvlbPicture" runat="server" Text="Picture" CssClass="RequiredField"
                                                                Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                            <asp:LinkButton runat="server" ID="lvlbtnImgView" CommandName="ViewImg" Text="View"
                                                                CausesValidation="false" ForeColor="BlueViolet" Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                            </asp:LinkButton>
                                                            <asp:Label ID="lblImageName" Text='<%# Eval("ImageName")%>' ForeColor="Green" Font-Bold="true"
                                                                runat="server" Visible='<%#LinkPictureNameVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                        </td>
                                                        <td colspan="2">
                                                            <asp:Label ID="vllblDocument" runat="server" Text="Document" CssClass="RequiredField"
                                                                Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                            <asp:HiddenField ID="hInspectionChecklistItemID" runat="server" Value='<%#Eval("InspectionChecklistItemID") %>' />
                                                            <asp:LinkButton runat="server" ID="vllbtnDocView" CommandName="View" Text="View"
                                                                CausesValidation="false" ForeColor="BlueViolet" Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                            </asp:LinkButton>
                                                            <asp:Label ID="lblDocumentName" Text='<%#Eval("FullFileName")%>' runat="server" ForeColor="Green"
                                                                Font-Bold="true" Visible='<%#LinkDocNameVisibility(Eval("DocumentID")) %>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="7" style="text-align: center;">
                                                            <asp:Button ID="btnedit" CommandName="Edit" Text="Edit" CssClass="FormButton" Width="55px"
                                                                runat="server" CausesValidation="false"></asp:Button>
                                                            &nbsp &nbsp
                                                            <asp:Button ID="btndelete" CommandName="Delete" Text="Delete" CssClass="FormButton"
                                                                Width="55px" runat="server" CausesValidation="false" OnClientClick="javascript:if(!confirm('Are you sure you want to remove this item?')){return false;}">
                                                            </asp:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <fieldset style="float: left; width: 98%; overflow: auto; height: 240px; background-color: #B6CCF0">
                                                <legend><b>
                                                    <%# Eval("ChecklistItemDesc") %></b> </legend>
                                                <table cellpadding="0" cellspacing="0" width="85%">
                                                    <tr>
                                                        <td class="RequiredField" style="width: 20%">
                                                            Checklist Item
                                                            <asp:HiddenField ID="hfdDocumentID" runat="server" Value='<%#Eval("DocumentID") %>' />
                                                            <asp:HiddenField ID="hfdVersionID" runat="server" Value='<%#Eval("VersionID") %>' />
                                                            <asp:HiddenField ID="hInspectionChecklistItemID" runat="server" Value='<%#Eval("InspectionChecklistItemID") %>' />
                                                        </td>
                                                        <td class="RequiredField" style="width: 40%;">
                                                            <rad:RadTextBox ID="RadTextBox1" TextMode="MultiLine" Rows="3" Width="300px" Height="50px"
                                                                Enabled="false" runat="server" Text='<%#Bind("ChecklistItemDesc")%>'>
                                                            </rad:RadTextBox>
                                                            <asp:HiddenField ID="hfdPicture" runat="server" Value='<%#Eval("Picture") %>' />
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="4">
                                                            Library :
                                                            <%# Eval("LibTitle")%>
                                                        </td>
                                                        <td class="RequiredField" style="width: 25%" colspan="2">
                                                            Section :
                                                            <%# Eval("SectionTitle")%>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <td class="RequiredField">
                                                            Findings
                                                        </td>
                                                        <td colspan="2">
                                                            <rad:RadTextBox ID="TextBox3" TextMode="MultiLine" Rows="3" Width="300px" Height="50px"
                                                                runat="server" Text='<%#Bind("Findings")%>'>
                                                            </rad:RadTextBox>
                                                            <asp:HiddenField ID="hfldid" runat="server" Value='<%#Eval("InspectionChecklistItemID") %>' />
                                                        </td>
                                                        <td class="RequiredField" colspan="3">
                                                            Recommendation
                                                        </td>
                                                        <td colspan="2">
                                                            <rad:RadTextBox ID="TextBox4" TextMode="MultiLine" Rows="3" Width="300px" Height="50px"
                                                                runat="server" Text='<%#Bind("Recommendation")%>'>
                                                            </rad:RadTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr style="height: 20px">
                                                    </tr>
                                                    <tr>
                                                        <table>
                                                            <tr>
                                                                <td class="RequiredField" style="width: 11%">
                                                                    Percentage of Compliance
                                                                    <%-- <asp:Label ID="lblPercentageComplaint" runat="server" Text="Percentage of Compliance"></asp:Label>--%>
                                                                </td>
                                                                <td class="RequiredField" style="width: 23%; left: 50%; text-align: left;">
                                                                    <rad:RadNumericTextBox ID="TextBox6" ShowSpinButtons="true" runat="server" Text='<%#Bind("PercentCompliant")%>'>
                                                                    </rad:RadNumericTextBox>
                                                                </td>
                                                                <td class="RequiredField">
                                                                    <asp:Label ID="lblUploadPic" runat="server" Text="Upload Picture"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    <rad:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.jpeg,.gif,.png"
                                                                        ControlObjectsVisibility="None" InputSize="12" Width="180px" MaxFileInputsCount="1"
                                                                        OverwriteExistingFiles="true" CssClass="radUploadStyle">
                                                                    </rad:RadUpload>
                                                                    <asp:LinkButton runat="server" ID="lvlbtnImgRemove" CommandName="RemoveImg" Text="Remove"
                                                                        Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>' ForeColor="BlueViolet"
                                                                        OnClientClick="javascript:if(!confirm('Are you sure you want to remove this Picture?')){return false;}">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton runat="server" ID="lvlbtnImgView" CommandName="ViewImg" Text="View"
                                                                        ForeColor="BlueViolet" Visible='<%#LinkPictureVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                                    </asp:LinkButton>
                                                                    <asp:Label ID="lblImageName" Text='<%# Eval("ImageName")%>' ForeColor="Green" Font-Bold="true"
                                                                        runat="server" Visible='<%#LinkPictureNameVisibility(Eval("InspectionChecklistItemID")) %>'></asp:Label>
                                                                </td>
                                                                <td class="RequiredField">
                                                                    <asp:Label ID="lblUploadDoc" runat="server" Text="Upload Document"></asp:Label>
                                                                </td>
                                                                <td>
                                                                    <rad:RadUpload ID="RadUploadDocument" runat="server" AllowedFileExtensions=".pdf,.docx,.xlsx"
                                                                        ControlObjectsVisibility="None" OverwriteExistingFiles="true" InputSize="12"
                                                                        Width="160px" CssClass="radUploadStyle" MaxFileInputsCount="1">
                                                                    </rad:RadUpload>
                                                                    <asp:LinkButton runat="server" ID="LinkButton1" CommandName="RemoveDoc" Text="Remove"
                                                                        CausesValidation="false" Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'
                                                                        ForeColor="BlueViolet" OnClientClick="javascript:if(!confirm('Are you sure you want to remove this Document?')){return false;}">
                                                                    </asp:LinkButton>
                                                                    <asp:LinkButton runat="server" ID="vllbtnDocView" CommandName="View" Text="View"
                                                                        CausesValidation="false" ForeColor="BlueViolet" Visible='<%#LinkDocVisibility(Eval("InspectionChecklistItemID")) %>'>
                                                                    </asp:LinkButton>
                                                                    <asp:Label ID="lblDocumentName" Text='<%#Eval("FullFileName")%>' runat="server" ForeColor="Green"
                                                                        Font-Bold="true" Visible='<%#LinkDocNameVisibility(Eval("DocumentID")) %>'></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center" colspan="7" style="text-align: center">
                                                                    <asp:Button ID="Button1" Text="Update" CssClass="FormButton" Width="55px" runat="server"
                                                                        CommandName="Update" CausesValidation="false" />
                                                                    &nbsp
                                                                    <asp:Button ID="Button2" Text="Cancel" CssClass="FormButton" Width="55px" runat="server"
                                                                        CommandName="Cancel" CausesValidation="false" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </EditItemTemplate>
                                    </rad:RadListView>
                                </asp:Panel>
                            </rad:RadAjaxPanel>
                        </asp:Panel>
                    </rad:RadPane>
                </rad:RadSplitter>
                <rad:RadDataPager ID="RadDataPager2" runat="server" PagedControlID="rlvsessionrecordings"
                    BackColor="#eeeeee" PageSize="25">
                    <Fields>
                        <rad:RadDataPagerButtonField FieldType="FirstPrev" />
                        <rad:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                        <rad:RadDataPagerButtonField FieldType="NextLast" />
                        <rad:RadDataPagerPageSizeField PageSizeComboWidth="60" PageSizeText="Page size: " />
                        <rad:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                            TextBoxWidth="30" />
                        <rad:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <b>Items
                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                    to
                                    <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                    of
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                    <br />
                                </b>
                            </PagerTemplate>
                        </rad:RadDataPagerTemplatePageField>
                    </Fields>
                </rad:RadDataPager>
              
            </td>
        </tr>
    </table>
</asp:Content>



Waiting for your Reply.

Thanks.
Balageetha
Top achievements
Rank 1
 answered on 20 Aug 2014
2 answers
278 views
I have a Master/Details Grid and if i choose EditMode="Batch" for the details tables, I can't update my data (Insert and Delete are working).

I click the cells and nothing happens.

My master table is working fine with Batch Mode. 

If instead I choose EditMode="InPlace" for details tables, everything works perfectly.

Is it a limitation, a bug or something that i'm doing wrong?

Do you have a working demo?

Thanks
Konstantin Dikov
Telerik team
 answered on 20 Aug 2014
1 answer
88 views
Hello,

I am working on a project with a RadGrid.
Inside the CommandItemTemplate of the RadGrid, I have a RadMenu.
Inside the RadMenu, I have a RadListBox.
The RadListBoxItems can be Dragged and Dropped.
When I drag a RadListBoxItem, I cannot see what I have dragged. The dragged RadListBoxItem is hiding behind RadMenu.

Here is a video link that shows the problem: [Video Link]

How do I solve this?

Thank you
Daniel.
Nencho
Telerik team
 answered on 20 Aug 2014
7 answers
174 views
Hi,

I have a hierarchical RadGrid with 2 levels.

When the grid loads I populate the first level (MasterTableView) via javascript using json objects. What I want to achive it to have the second level (DetailsTable), editable by the end user.

Which means the end user should be able to manually add new rows. But the second level is not bound to any Data Source. The grid only has some pre-defined columns and the user can add rows to the grid. 

The objective of this is to collect dynamic data from the end user. So it is not possible to predict how many child rows there will be for each parent row. 

Can I do this with a RadGrid?

Hope this is clear.

Thank you.
Daniel
Telerik team
 answered on 20 Aug 2014
7 answers
449 views
Hi,

I got several problems with the RecurrenceRule.

To check this - I use the following Pattern:
DTSTART:20140807T113000Z
DTEND:20140807T123000Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,WE,TH


My need is to find the first two occurrences of an appointment.
I tried this with the following code:

RecurrenceRule rR;
if(RecurrenceRule.TryParse(rRule, out rR)) {                   
    rR.MaximumCandidates = 2;
    //rR.SetEffectiveRange(pAppointment.Start.AddMinutes(-1), pAppointment.End.AddDays(400));
    foreach(DateTime dtCheck in rR.Occurrences) {
        if(dtCheck > pAppointment.Start) {  //next occurrence found

The problem "MaximumCandidates" is for daily, weekly, monthly one day.
So in this case if I check on thuresday I get only one occurrence.
Is there a working way to limit the outcome to a fix number of results?

On thing I found when checking (with your source code) how the things work internally is a bug in SetEffectiveRange

Here the code FIRST checks if the private fields are in the correct order (_effectiveEnd <_effectiveStart).
AFTER that the values are assigned.
So I could call this with wrong parameters - and the next call (with correct parameters) would fail!
You should check the parameters not the private fields (and for sure not BEFORE they are assigned).

Last not least I found a thread with an "isolated assembly" containing only the recurrence rule classes.
http://www.telerik.com/forums/sql-reporting-display-all-recurring-appointments

Is there an "up to date" version of this assembly - and how is it licensed?

Manfred
Plamen
Telerik team
 answered on 20 Aug 2014
2 answers
812 views
First of all, a specific question.  Is there a way to use Telerik / ASP to display a message box directly from the code behind.   I am aware that I could use the code behind to trigger a javascript function that's 'hidden' and bound to an onchange event on an element that nobody sees.   However, I would prefer a more direct method of sending alerts to users form the code behind if possible.


Also, in general, how can telerik enhance message boxes?
Marin Bratanov
Telerik team
 answered on 20 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?