Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
141 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
180 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
229 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
356 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
132 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
237 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
603 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
954 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
8 answers
174 views

Hi,

Scheduler shows scroll at the top on page load and takes a while to reset its position.
I have a timer and a scheduler, I scroll to the bottom of the radscheduler but with every refresh, the scroll bar shows at the top for a sec and then it scrolls to the bottom. 

How can I make scheduler to show scroll bars  by retaining  its position on page load? I want to avoid flashing effect on scheduler.

I see the same effect on following demo site, Go to month view and scroll to the bottom, then move an appointment, on post back you see the flashing effect of scrollbar, is it a software bug?
http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx 

Thanks,
Prava
Nencho
Telerik team
 answered on 20 Aug 2014
2 answers
125 views
I have the following grid:
            <telerik:RadGrid runat="server" ID="gvClients" ClientSettings-EnablePostBackOnRowClick="true" BackColor="AliceBlue" AutoGenerateHierarchy="True" CellSpacing="0" GridLines="None" Skin="Metro" DataSourceID="SqlDataSource1" AllowPaging="True" AllowSorting="True">
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <MasterTableView DataKeyNames="id" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" HierarchyLoadMode="Client">
                    <Columns>
                        <telerik:GridBoundColumn DataField="seniorId" DataType="System.Int32" FilterControlAltText="Filter seniorId column" HeaderText="seniorId" SortExpression="seniorId" UniqueName="seniorId" Visible="False">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="תעדות זהות" ReadOnly="True" SortExpression="id" UniqueName="id">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="password" FilterControlAltText="Filter password column" HeaderText="סיסמא" SortExpression="password" UniqueName="password">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="fName" FilterControlAltText="Filter fName column" HeaderText="שם פרטי" SortExpression="fName" UniqueName="fName">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="lName" FilterControlAltText="Filter lName column" HeaderText="שם משפחה" SortExpression="lName" UniqueName="lName">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="mPhone" FilterControlAltText="Filter mPhone column" HeaderText="מספר טלפון" SortExpression="mPhone" UniqueName="mPhone">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="address" FilterControlAltText="Filter address column" HeaderText="כתובת" SortExpression="address" UniqueName="address">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="sc" DataType="System.Byte" FilterControlAltText="Filter sc column" HeaderText="sc" SortExpression="sc" UniqueName="sc" Visible="False">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="email" FilterControlAltText="Filter email column" HeaderText="אימייל" SortExpression="email" UniqueName="email">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="dateJoined" DataFormatString="{0:HH:mm dd-MM-yyyy}" DataType="System.DateTime" FilterControlAltText="Filter dateJoined column" HeaderText="תאריך הצטרפות" SortExpression="dateJoined" UniqueName="dateJoined">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="contract" FilterControlAltText="Filter contract column" HeaderText="contract" SortExpression="contract" UniqueName="contract" Visible="False">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text="" />
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                    </Columns>
                    <PagerStyle AlwaysVisible="True" />
                </MasterTableView>
</telerik:RadGrid> 
Now this works fine, i can select and everything. Things get tricky when i add below the grid, this table:
<table>
                <tr>
                    <td class="auto-style1">
                        <p>תעודת זהות</p>
                    </td>
                    <td>
                        <telerik:RadTextBox runat="server" ID="txtId" Width="200px" Skin="Metro" /></td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <p>סיסמא</p>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtPassword" runat="server" Width="200px" Skin="Metro" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <p>שם פרטי</p>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtfName" runat="server" Width="200px" Skin="Metro" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <p>שם משפחה</p>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtlName" runat="server" Width="200px" Skin="Metro" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <p>מספר טלפון</p>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtmPhone" runat="server" Width="200px" Skin="Metro" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <p>כתובת</p>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtAddress" runat="server" Width="200px" Skin="Metro" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <p>אימייל</p>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtEmail" runat="server" Width="200px" Skin="Metro" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <telerik:RadButton ID="btnUpdate" runat="server" Skin="Metro" Width="126px" Text="עדכן" />
                    </td>
                    <td>
                        <telerik:RadButton ID="btnDelete" runat="server" Width="200px" Skin="Metro" Text="מחק" OnClientClicked='return confirm("האם אתה בטוח?");' />
                    </td>
                </tr>
            </table>
As soon as i add this table the grid selection is suddenly disabled, and so is the paging option for some reason. In my code behind there is nothing yet except for one line of code adding a cookie on page load.

Why is this happening? When i remove the table below it functions perfectly.






Eran
Top achievements
Rank 1
 answered on 20 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?