Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
197 views

<telerik:RadMaskedTextBox ID="zipRMTB" runat="server" EmptyMessage="Zip Code"

Mask="##### - ####" SelectionOnFocus="SelectAll">

</telerik:RadMaskedTextBox>

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="zipRMTB"

ErrorMessage="RequiredFieldValidator">

</asp:RequiredFieldValidator>
Here, i am trying  to validate RadMaskedTexBox,on btn click event it doent show validate errormessage,

and another problem is:
 if i will insert incorrect data into MaskedTextBox like:  _32_ - 1__0
  how to validate these type of data with Validators??

Thank You 
Devang Tadvi 

Vasil
Telerik team
 answered on 22 Oct 2013
2 answers
120 views
We have a very large project that makes exstensive use of RadControls for ASP.net.  I am a new developer with very limited experience with Telerik Controls.     We are required to move to RanControls Ajax for Net 4.0.   Is there any documentation to assist in this?  Is this even possible. Is there an direct upgrade path or will this require a major rebuild of all our controls? 
Tim
Top achievements
Rank 1
 answered on 22 Oct 2013
4 answers
119 views
I'm running visual studio 2013 web forms app with 2013.2.717... also tried the latest internal build but i'm having an issue when an insertitemtemplate is displayed the rest of the grid goes broken as soon as i add a control in insertitemtemplate... looks like missing tags in code generation?

 <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn">
                    <InsertItemTemplate>
                        <telerik:RadTextBox ID="txtNote" runat="server"></telerik:RadTextBox>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        SometText
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

has anyone else had any issues on VS2013 and InsertItemTemplate?
James
Top achievements
Rank 1
 answered on 22 Oct 2013
3 answers
355 views


Hello I am writing about a problem with the controler "RadTabStrip". In fact I spent the last updated for controllers telerik ASP Net, "onTabClick" function does not firing.
 This is an internal web application company and it gets really annoying. Is it possible to help me as soon as possible please? I remain available for any questions.
Thank's a lot.
 I do not understand why .. But I have changed nothing.

Here is my ASP code radTabStrip (note well 'AutoPostBack' to true):

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Visible="true" Skin="" EnableEmbeddedSkins="false"
MultiPageID="RadMultiPage2" SelectedIndex="0" Orientation="HorizontalBottom" CssClass="tabStripTool" AutoPostBack="True" OnTabClick="onTabSelect" >

And my complete code with Radrid

<telerik:RadGrid ID="gridRiskAll" runat="server" EnableEmbeddedSkins="false" Skin="MyCustomSkin"
                                DataSourceID="SqlDataSource1" ShowHeader="true" BorderWidth="0px" BorderStyle="None"
                                OnItemDataBound="gridRiskAll_ItemDataBound" AllowSorting="true" OnItemCommand="gridRiskAll_OnItemCommand">
                                <ClientSettings EnableRowHoverStyle="true">
                                </ClientSettings>
                                <MasterTableView DataSourceID="SqlDataSource1" runat="server" ShowHeader="true" AutoGenerateColumns="false"
                                    CssClass="tableRisk3" GroupLoadMode="Server" DataKeyNames="riskID" AllowMultiColumnSorting="false">
                                    <NoRecordsTemplate>
                                        <asp:Label runat="server" ID="lbNoRecorRisk" Text=""></asp:Label>
                                    </NoRecordsTemplate>
                                    <ItemStyle CssClass="itemRisk3" />
                                    <AlternatingItemStyle />
                                    <HeaderStyle CssClass="headerRisk" />
                                    <Columns>
                                        <telerik:GridBoundColumn ItemStyle-CssClass="headerColumnRisk1" DataField="num" HeaderText='<%$ Resources:IRM, risk_label_number %>'
                                            ItemStyle-ForeColor="#e74141" ItemStyle-Font-Bold="true" SortExpression="num">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn ItemStyle-CssClass="alignTop2" UniqueName="templateColumnName"
                                            HeaderText='<%$ Resources:IRM, global_title %>' SortExpression="name">
                                            <ItemTemplate>
                                                <asp:LinkButton runat="server" Text='<%# Bind("name") %>' CommandName="NameClickRisk"
                                                    CommandArgument='<%# Bind("riskID") %>' ID="lbnameRisk" CssClass="lbRiskName"></asp:LinkButton>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn UniqueName="templateColumn3" ItemStyle-CssClass="headerColumnRisk1"
                                            HeaderText='<%$ Resources:IRM, risk_label_area %>'>
                                            <ItemTemplate>
                                                <table>
                                                    <tr>
                                                        <asp:Label ID="lbMatriceZone" runat="server" Text='<%# Bind("columnID") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lbMatriceZone2" runat="server" Text='<%# Bind("lineID") %>' Visible="false"></asp:Label>
                                                        <asp:Image ID="imgZone" runat="server" />
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn UniqueName="templateColumn" HeaderText='<%$ Resources:IRM, risk_label_control %>'
                                            ItemStyle-CssClass="headerColumnRisk2" SortExpression="controlStatut">
                                            <ItemTemplate>
                                                <asp:Panel ID="EtatControlFull" CssClass="fontbar" runat="server" Width="100px" Height="17px">
                                                    <asp:Panel ID="EtatControl" runat="server" Height="15px" CssClass="alignBar">
                                                        <asp:Label ID="EtatControl_percentage" runat="server" Text='<%# Bind("controlStatut") %>'
                                                            ForeColor="White" Font-Bold="true"></asp:Label>
                                                    </asp:Panel>
                                                </asp:Panel>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn UniqueName="templateColumn2" HeaderText='<%$ Resources:IRM, risk_label_deadline %>'
                                            SortExpression="deadLine" ItemStyle-CssClass="headerColumnRisk2" HeaderStyle-Width="100px">
                                            <ItemTemplate>
 
 
 
                                                <asp:Label runat="server" ID="riskID" Text='<%# Bind("riskID") %>' Visible="false"></asp:Label>
                                                <asp:Label runat="server" ID="lbsolved" Text='<%# Bind("solved") %>' Visible="false"></asp:Label>
                                                <asp:Panel ID="EtatErosionFull" CssClass="fontbar" runat="server" Width="100px" Height="17px">
                                                    <asp:Panel ID="EtatErosion" runat="server" Height="15px" CssClass="alignBar2">
                                                        <asp:Label ID="EtatErosion_percentage" runat="server" ForeColor="White" Font-Bold="true"></asp:Label>
                                                    </asp:Panel>
                                                </asp:Panel>
                                                <telerik:RadToolTip ID="RadToolTip2" runat="server" TargetControlID="EtatErosionFull" RelativeTo="Element"
                                                    Position="BottomCenter" RenderInPageRoot="true" Width="200px" BackColor="#B5E8FF">
 
                                                    <asp:Label runat="server" Text="<%$ Resources:IRM,global_label_echeance %>"></asp:Label>
                                                    <asp:Label ID="lbl_ErosionFinalPopup" runat="server"></asp:Label>
                                                </telerik:RadToolTip>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="erosion2" HeaderText='<%$ Resources:IRM, global_review_mounth %>'
                                            SortExpression="ero2" ItemStyle-CssClass="lbRiskErosion">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn UniqueName="templateColumTool" HeaderText="<table id='tableTitleGridRisk' cellpadding='0' cellspacing='0'><tr><tr id='trTitleGridRisk'><td><img src='image/tool-action.png' title='Actions' /></td><td><img src='image/tool-process.png' title='Procédures' /></td><td><img src='image/tool-alert.png' title='Alertes' /></td><td><img src='image/tool-user.png' title='Séances' /></td></tr></table>"
                                            ItemStyle-CssClass="headerColumnRisk3">
                                            <ItemTemplate>
                                                <asp:Table runat="server" ID="tableToolGridRisk" CellPadding="0" CellSpacing="0">
                                                    <asp:TableRow CssClass="trToolGridRisk">
                                                        <asp:TableCell CssClass="tdToolGridRisk" ID="cellA">
                                                            <asp:LinkButton runat="server" ID="lbNumA" Text="0" CssClass="lbaTd" CommandName="NameClickRisk"
                                                                CommandArgument='<%# Bind("riskID") %>'></asp:LinkButton>
                                                        </asp:TableCell>
                                                        <asp:TableCell CssClass="tdToolGridRisk" ID="cellP">
                                                            <asp:LinkButton runat="server" ID="lbNumP" Text="0" CssClass="lbaTd" CommandName="NameClickRisk"
                                                                CommandArgument='<%# Bind("riskID") %>'></asp:LinkButton>
                                                        </asp:TableCell>
                                                        <asp:TableCell CssClass="tdToolGridRisk" ID="cellR">
                                                            <asp:LinkButton runat="server" ID="lbNumR" Text="0" CssClass="lbaTd" CommandName="NameClickRisk"
                                                                CommandArgument='<%# Bind("riskID") %>'></asp:LinkButton>
                                                        </asp:TableCell>
                                                        <asp:TableCell CssClass="tdToolGridRisk" ID="cellS">
                                                            <asp:LinkButton runat="server" ID="lbNumS" Text="0" CssClass="lbaTd" CommandName="NameClickRisk"
                                                                CommandArgument='<%# Bind("riskID") %>'></asp:LinkButton>
                                                        </asp:TableCell>
                                                    </asp:TableRow>
                                                </asp:Table>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn UniqueName="templateColumnAName">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lbAncre" Visible="true" CssClass="anchorRisk"></asp:Label>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                    <%-- ------------------------------------------------------------PANEL DETAIL RISK--------------------------------------------------------------------------------------------------------------------------------------- --%>
                                    <NestedViewSettings DataSourceID="SqlDataSource3">
                                        <ParentTableRelation>
                                            <telerik:GridRelationFields DetailKeyField="riskID" MasterKeyField="riskID" />
                                        </ParentTableRelation>
                                    </NestedViewSettings>
                                    <NestedViewTemplate>
                                        <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">
                                            <div class="topNestViewPanel">
                                                <asp:LinkButton runat="server" ID="lbClosePanel" Text='<%$ Resources:IRM, global_button_close %>'
                                                    OnClick="closePanel" CssClass="closeBtn"></asp:LinkButton>
                                                <asp:LinkButton runat="server" ID="lbClosePanelX" Text="    X" OnClick="closePanel"
                                                    CssClass="closeBtn"></asp:LinkButton>
                                            </div>
                                            <div class="shadowTopNestedView">
                                            </div>
 
                                            <table class="tableDetailRisk">
                                                <tr>
                                                    <td class="testNested left">
 
                                                        <asp:Panel runat="server" CssClass="adminBtnRisk" Visible="true" ID="panelAdminRisk">
                                                            <table>
                                                                <tr>
                                                                    <td>
                                                                        <asp:LinkButton runat="server" ID="btnHistoryVersionRisk" CssClass="btnHistoryVersion" OnClick="btnHistoryVersionRisk_Click" ToolTip="<%$ Resources:IRM,global_tooltip_riskChangeVersion %>"></asp:LinkButton></td>
                                                                    <td>
                                                                        <asp:ImageButton runat="server" ImageUrl="image/icone/move.png" ID="btnChangePosition" Visible="true" OnClick="openWinPositionRisk" ToolTip="<%$ Resources:IRM,global_tooltip_riskChangePosition %>" /></td>
                                                                    <td>
                                                                        <asp:ImageButton ID="btnEditRiskPopup" runat="server" ImageUrl="image/icone/edit-icon.png" OnClick="openWinEditRisk" ToolTip="<%$ Resources:IRM,global_tooltip_riskEdit %>"></asp:ImageButton></td>
                                                                    <td>
                                                                        <asp:ImageButton ID="btnDeleteRiskPopup" runat="server" ImageUrl="image/icone/delete-icon.png" OnClientClick="getValueConfrimRisk(); return false;" ToolTip="<%$ Resources:IRM,global_tooltip_riskDelete %>"></asp:ImageButton></td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
 
                                                        <asp:Panel runat="server" CssClass="displayNone2" Visible="false" ID="panelVersionRisk">
                                                            <asp:HiddenField runat="server" ID="riskIDVersion" />
                                                            <asp:DropDownList runat="server" ID="DDListHistoryVersionRisk" AutoPostBack="true" OnSelectedIndexChanged="select_riskVersion"></asp:DropDownList>
                                                            <asp:Button runat="server" ID="btnSaveVersionRisk" Text='<%$ Resources:IRM, version_button_return %>' OnClick="btnSaveVersionRisk_Click" />
                                                            <asp:Button runat="server" ID="btnCancelVersionRisk" Text='<%$ Resources:IRM, global_button_cancel %>' OnClick="btnCancelVersionRisk_Click" />
                                                        </asp:Panel>
 
                                                        <asp:Label runat="server" ID="lbNVRiskId" Text='<%# Bind("riskID") %>' Visible="false"></asp:Label>
                                                        <asp:Label runat="server" ID="lbNVProductImpact" Text='<%#Bind("productImpact") %>'
                                                            Visible="false"></asp:Label>
                                                        <asp:Label runat="server" ID="lbNVAssessmentImpact" Text='<%#Bind("assessmentImpact") %>'
                                                            Visible="false"></asp:Label>
                                                        <asp:Label runat="server" ID="lbNVBurdenImpact" Text='<%#Bind("burdenImpact") %>'
                                                            Visible="false"></asp:Label>
 
                                                        <telerik:RadTabStrip runat="server" ID="tabStripImpactMatrice" SelectedIndex="0"
                                                            MultiPageID="RadMultiPage1">
                                                            <Tabs>
                                                                <telerik:RadTab runat="server" Text='<%$ Resources:IRM, global_description %>'>
                                                                </telerik:RadTab>
                                                                <telerik:RadTab runat="server" Text='<%$ Resources:IRM, risk_title_impact_and_matrice %>'>
                                                                </telerik:RadTab>
                                                            </Tabs>
                                                        </telerik:RadTabStrip>
 
                                                        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" CssClass="multipage">
 
                                                            <telerik:RadPageView runat="server" ID="RadPageView1" CssClass="pageView1">
                                                                <asp:Label ID="lbDetailRisk" runat="server" Text='<%#Bind("description") %>' CssClass="lbDetailRiskClass"></asp:Label>
                                                            </telerik:RadPageView>
 
 
                                                            <telerik:RadPageView runat="server" ID="RadPageView2" CssClass="pageView2">
                                                                <div class="riskPresent">
                                                                    <div class="matriceFloatLeft">
                                                                        <table>
                                                                            <tr>
                                                                                <td></td>
                                                                                <td>
                                                                                    <asp:Table runat="server" ID="tableColumnRiskView">
                                                                                    </asp:Table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:Table runat="server" ID="tableLineRiskView">
                                                                                    </asp:Table>
                                                                                </td>
                                                                                <td>
                                                                                    <asp:Table runat="server" ID="matriceRiskView">
                                                                                    </asp:Table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <div class="matriceFloatLeft">
                                                                        <telerik:RadPanelBar ID="radPanelImpact" runat="server" EnableEmbeddedSkins="false"
                                                                            Skin="mySkin" CssClass="blockImpact2">
                                                                            <Items>
                                                                                <telerik:RadPanelItem Text='<%$ Resources:IRM, risk_title_impact_identified %>' Expanded="true"
                                                                                    CssClass="headerBlockImpact" Enabled="false" BorderStyle="none">
                                                                                    <Items>
                                                                                        <telerik:RadPanelItem Text='<%$ Resources:IRM, global_label_assessment %>' ForeColor="Black"
                                                                                            BorderStyle="none" Expanded="true">
                                                                                            <Items>
                                                                                            </Items>
                                                                                        </telerik:RadPanelItem>
                                                                                        <telerik:RadPanelItem Text='<%$ Resources:IRM, risk_label_product %>' ForeColor="Black"
                                                                                            Expanded="true">
                                                                                            <Items>
                                                                                            </Items>
                                                                                        </telerik:RadPanelItem>
                                                                                        <telerik:RadPanelItem Text='<%$ Resources:IRM, global_label_burden %>' ForeColor="Black"
                                                                                            Expanded="true">
                                                                                            <Items>
                                                                                            </Items>
                                                                                        </telerik:RadPanelItem>
                                                                                    </Items>
                                                                                </telerik:RadPanelItem>
                                                                            </Items>
                                                                        </telerik:RadPanelBar>
                                                                    </div>
                                                                </div>
                                                            </telerik:RadPageView>
                                                        </telerik:RadMultiPage>
 
 
                                                        <%-- ------------------------------------------------------------OUTIL----------------------------------------------------------------- --%>
                                                        <table id="tableTools">
                                                            <tr>
                                                                <td>
                                                                    <asp:Panel runat="server" ID="blockOngletOutil2" Visible="true" CssClass="divTool">
                                                                        <asp:Label ID="lbRiskIDTool" runat="server" Text=""></asp:Label>
 
                                                                        <telerik:RadTabStrip ID="RadTabStrip2" runat="server" Visible="true" Skin="" EnableEmbeddedSkins="false"
                                                                            MultiPageID="RadMultiPage2" SelectedIndex="0" Orientation="HorizontalBottom"
                                                                            CssClass="tabStripTool" AutoPostBack="True" OnTabClick="onTabSelect"  >
                                                                            <Tabs>
                                                                                <telerik:RadTab Text="tab0" HoveredCssClass="tabToolHover" SelectedCssClass="tabToolSelected"
                                                                                    CssClass="tabTool">
                                                                                    <TabTemplate>
                                                                                        <div class="tabDiv">
                                                                                            <asp:Label runat="server" ID="lbTousTool" Text='<%$ Resources:IRM, global_all %>'></asp:Label>
                                                                                            <asp:Panel runat="server" CssClass="divNumTous" ID="panelToolAll">
                                                                                                <asp:Label runat="server" ID="lbNumTous" Text=""></asp:Label>
                                                                                            </asp:Panel>
                                                                                        </div>
                                                                                    </TabTemplate>
                                                                                </telerik:RadTab>
                                                                                <telerik:RadTab Text="tab1" HoveredCssClass="tabToolHover" SelectedCssClass="tabToolSelected"
                                                                                    CssClass="tabTool">
                                                                                    <TabTemplate>
                                                                                        <div class="tabDiv">
                                                                                            <asp:Label runat="server" ID="lbActionTool" Text='<%$ Resources:IRM, tool_actions %>'></asp:Label>
                                                                                            <asp:Panel runat="server" CssClass="divNumAction" ID="panelToolAction">
                                                                                                <asp:Label runat="server" ID="lbNumAction" Text=""></asp:Label>
                                                                                            </asp:Panel>
                                                                                        </div>
                                                                                    </TabTemplate>
                                                                                </telerik:RadTab>
                                                                                <telerik:RadTab Text="tab2" HoveredCssClass="tabToolHover" SelectedCssClass="tabToolSelected"
                                                                                    CssClass="tabTool">
                                                                                    <TabTemplate>
                                                                                        <div class="tabDiv">
                                                                                            <asp:Label runat="server" ID="lbProceduresTool" Text='<%$ Resources:IRM, tool_procedures %>'></asp:Label>
                                                                                            <asp:Panel runat="server" CssClass="divNumProcedure" ID="panelToolProcedures">
                                                                                                <asp:Label runat="server" ID="lbNumProcedure" Text=""></asp:Label>
                                                                                            </asp:Panel>
                                                                                        </div>
                                                                                    </TabTemplate>
                                                                                </telerik:RadTab>
                                                                                <telerik:RadTab Text="tab3" HoveredCssClass="tabToolHover" SelectedCssClass="tabToolSelected"
                                                                                    CssClass="tabTool">
                                                                                    <TabTemplate>
                                                                                        <div class="tabDiv">
                                                                                            <asp:Label runat="server" ID="lbWarningTool" Text='<%$ Resources:IRM, tool_warning %>'></asp:Label>
                                                                                            <asp:Panel runat="server" CssClass="divNumWarning" ID="panelToolWarning">
                                                                                                <asp:Label runat="server" ID="lbNumWaring" Text=""></asp:Label>
                                                                                            </asp:Panel>
                                                                                        </div>
                                                                                    </TabTemplate>
                                                                                </telerik:RadTab>
                                                                                <telerik:RadTab Text="tab4" HoveredCssClass="tabToolHover" SelectedCssClass="tabToolSelected"
                                                                                    CssClass="tabTool">
                                                                                    <TabTemplate>
                                                                                        <div class="tabDiv">
                                                                                            <asp:Label runat="server" ID="lbMeetingTool" Text='<%$ Resources:IRM, global_meeting %>'></asp:Label>
                                                                                            <asp:Panel runat="server" CssClass="divNumMeeting" ID="panelToolMeeting">
                                                                                                <asp:Label runat="server" ID="lbNumMeeting" Text=""></asp:Label>
                                                                                            </asp:Panel>
                                                                                        </div>
                                                                                    </TabTemplate>
                                                                                </telerik:RadTab>
                                                                            </Tabs>
                                                                        </telerik:RadTabStrip>
                                                                        <div id="blockOutil2">
                                                                            <telerik:RadMultiPage runat="server" ID="RadMultiPage2" SelectedIndex="0" Visible="true">
                                                                                <telerik:RadPageView runat="server" ID="RadPageOutil01">
                                                                                    <telerik:RadGrid EnableEmbeddedSkins="false" Skin="MyCustomSkin" CssClass="RadOutil"
                                                                                        ID="RadGridOutil01" runat="server" Visible="true" OnItemDataBound="RadGridOutil_DataBound"
                                                                                        OnItemCommand="gridTool_ItemCommand" RegisterWithScriptManager="false">
                                                                                        <MasterTableView ShowHeader="false" AutoGenerateColumns="false" CssClass="tableTool"
                                                                                            DataKeyNames="toolsID" DataSourceID="SqlDataSource4">
                                                                                            <NoRecordsTemplate>
                                                                                                <asp:Label runat="server" ID="lbNoRecordToolsRisk" Text='<%$ Resources:IRM, risk_label_no_tool %>'></asp:Label>
                                                                                            </NoRecordsTemplate>
                                                                                            <AlternatingItemStyle CssClass="altItem" />
                                                                                            <ItemStyle CssClass="item" />
                                                                                            <Columns>
                                                                                                <telerik:GridTemplateColumn UniqueName="templateColumnStatus">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:Label runat="server" ID="lbToolStatus" Text='<%# Bind("status") %>' Visible="false"></asp:Label>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridBoundColumn DataField="toolsID" Visible="false">
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridTemplateColumn UniqueName="templateColumnStatusBtn" ItemStyle-CssClass="borderRightTool cellToolStatut">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:LinkButton runat="server" ID="btnStatus" Text="" Visible="true" CssClass="button"></asp:LinkButton>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn UniqueName="templateColumnStatusBtn2" ItemStyle-CssClass="borderRightTool cellToolType">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:Label ID="lbType" runat="server" Text='<%# Eval("typeTool") %>' Font-Bold="true"></asp:Label>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn UniqueName="templateColumnStatusBtn2" ItemStyle-CssClass="nameTool">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:LinkButton ID="targetControl" runat="server" NavigateUrl="#" Text='<%# Eval("name") %>'></asp:LinkButton>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                                <telerik:GridTemplateColumn UniqueName="templateColumnTools" ItemStyle-CssClass="cellToolBar">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:Panel ID="EtatToolFull" CssClass="fontbar" runat="server" Width="150px" Height="17px">
                                                                                                            <asp:Panel ID="EtatTool" runat="server" Height="15px" CssClass="alignBar">
                                                                                                                <asp:Label ID="EtatTool_percentage" runat="server" Text='<%# Bind("status") %>' ForeColor="White"
                                                                                                                    Font-Bold="true"></asp:Label>
                                                                                                            </asp:Panel>
                                                                                                        </asp:Panel>
                                                                                                    </ItemTemplate>
                                                                                                </telerik:GridTemplateColumn>
                                                                                            </Columns>
                                                                                        </MasterTableView>
                                                                                    </telerik:RadGrid>
                                                                                </telerik:RadPageView>
                                                                            </telerik:RadMultiPage>
                                                                        </div>
                                                                        <asp:ImageButton ID="btnAddTools" runat="server" Visible="true" ImageUrl="image/icone/add-icon.png"
                                                                            CssClass="btnAddTool" OnClick="openWinAddTool" ToolTip="<%$ Resources:IRM,global_tooltip_toolsAdd %>"></asp:ImageButton>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                        </table>
 
                                                    </td>
 
                                                    <td class="testNested right">
 
                                                        <asp:Panel runat="server" ID="panelModeErosion">
 
                                                            <asp:Label runat="server" ID="lbInfoBeginDate" Text='<%$ Resources:IRM, global_creation_date %>' ForeColor="#88bdf5"></asp:Label>
                                                            <asp:Label runat="server" Text=" : "></asp:Label>
                                                            <asp:Label runat="server" ID="lbBeginDate" Text='<%# Bind("creationDate") %>'></asp:Label><br />
                                                            <asp:Label runat="server" ID="lbInfoFinishDate" Text='<%$ Resources:IRM, global_label_end_date %>' ForeColor="#88bdf5"></asp:Label>
                                                            <asp:Label runat="server" Text=" : "></asp:Label>
                                                            <asp:Label runat="server" ID="lbFinishDate" Text='<%# Bind("endDate") %>'></asp:Label><br />
 
 
                                                            <asp:Button runat="server" ID="btnJudgement" CssClass="btnJudgment" Text='<%$ Resources:IRM, risk_button_judge %>'
                                                                OnClick="openWinJudgement" /><br />
 
 
                                                            <asp:Label runat="server" ID="lbInfoLastJudgment" Text='<%$ Resources:IRM, tool_label_last_judgement %>'
                                                                ForeColor="#88bdf5"></asp:Label>
                                                            <asp:Label runat="server" ID="lbLastJudgment" Text=""></asp:Label><br />
 
 
                                                            <asp:Label runat="server" ID="lbCommentLastJudgment" Text='<%$ Resources:IRM, tool_judgement_justification_lvl_control %>'
                                                                ForeColor="#88bdf5"></asp:Label>
 
                                                            <div class="zoneJudgment">
                                                                <asp:Label runat="server" ID="lbCommentJudgment" Text=""></asp:Label>
                                                                <asp:ImageButton runat="server" ID="btnEditLastJudgment" ImageUrl="image/icone/edit-icon.png"
                                                                    Visible="true" OnClick="editLastJugement" ToolTip="<%$ Resources:IRM,global_tooltip_toolsEditLastJugement %>" />
                                                            </div>
                                                            <asp:LinkButton runat="server" CssClass="btnAllJudgement" ID="btnShowAllJudgment" Text='<%$ Resources:IRM, tool_judgement_show_all %>'
                                                                OnClick="showAllJudgement"></asp:LinkButton>
 
                                                        </asp:Panel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </NestedViewTemplate>
                                    <%-- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --%>
                                </MasterTableView>
                            </telerik:RadGrid>
Manu
Top achievements
Rank 1
 answered on 22 Oct 2013
2 answers
387 views
Hi everyone,

I am using custom paging for a Radgrid and although everything seems to be working out fine, I can't get the VirtualItemCount attribute of the radGrid to obtain the real value of the records that are returned from the datasource.
The radgrid loads with a typical value that is hard coded and the one i assign programmatically appears after i click on another page.
I can see that it succesfully sets the correct value but i guess the grid is already loaded.
The grid is connected with a search form and this is a problem when the search query changes. The pager appears to have the same results as the previous query although the grid displays the correct ones. How can I resolve that?

Thanx, Maria.
Maria
Top achievements
Rank 1
 answered on 22 Oct 2013
1 answer
68 views
Telerik RadTimePicker pop window is not working with Chrome & Safari
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2013
2 answers
89 views
Hi,

I'm currently having a strange issue with my grid.

When i filter/sort my grid and then try to use one button in the footer command item the server side click event is not firing, but if i click it again it work fine. The problem is only with the footer and immediatly after filtering/sorting it.

The button in the header commanditem who is created the same way work fine no mather if i filter, sort or something like that.

This is a server side Grid. All my grid structure is created at page init. The command item section contain an itemtemplate where we create only controls needed for our page, but the controls are created outside the itemtemplate and then pass to the constructor like this :

public class CommandItemTemplate : ITemplate
{
    private readonly CommandItems m_CommandItems;
 
    public CommandItemTemplate (CommandItems commandItems)
    {
        m_CommandItems = commandItems;
    }
 
    public void InstantiateIn(Control container)
    {
        //ContentPanel is an aspPanel which contains every control created on the page Init
     
        if (container.BindingContainer.BindingContainer is GridTFoot && m_CommandItems.Footer != null)
        {
            container.Controls.Add(m_CommandItems.Footer.ContentPanel);
        }
        else if (container.BindingContainer.BindingContainer is GridTHead && m_CommandItems.Header != null)
        {
            container.Controls.Add(m_CommandItems.Header.ContentPanel);
        }
    }
}

Thank you for your help,

Guillaume
Angel Petrov
Telerik team
 answered on 22 Oct 2013
3 answers
52 views
Hello,

If, in the Editor, you select some text and then open the Linkmanager and then if you add tags to the text, bold so that "test" becomes "<b>test</b>" for example, when you click on "OK" these tags are removed.

This means, for the company I work for, that an icon added previously is no longer added to the link. That is, this snippet no longer works:

var resultLink = this._clientParameters.get_value();
if (document.getElementById("dateiIcon").value != "") {
	resultLink.innerHTML = document.getElementById("dateiIcon").value + this._linkText.value;
}

I believe this behaviour has been introduced in a recent dll (we are now using 2013.2.717.40).


Thank you

Paul Herzberg
Paul Herzberg
Top achievements
Rank 1
 answered on 22 Oct 2013
1 answer
284 views
Hi all,

I want to rebind a radgrid in the parent page when a radwindow is closed.
This radgrid is using a Bind() method to get the data
protected void BindGrid()
{
      grdPersonnel.DataSource = GetPersonnelRoleParticipantList();
      grdPersonnel.DataBind();
 
}

in the radwindow
function GetRadWindow() {
            var oWindow = null; if (window.radWindow)
                oWindow = window.radWindow; else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow; return oWindow;
}
function closeWinAndRebind() {
            GetRadWindow().BrowserWindow.CalledFn();
            GetRadWindow().close();
}

in the parent page
function CalledFn() {
          document.getElementById('<%= btnSearch.ClientID %>').click();
}
 this btnSearch button is clicked to call the Bind() method

This does not work. How to achieve it?

Thanks
Guorui
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2013
4 answers
205 views
Hi,

I'm using a rad combo within the grid control. I would like to set an empty message to display the text "Select item" when the page loads or if there's no item selected. But it does not work. I've done a some research on this and from everything I've read I'm supposed to set the "AllowCustomText=True". I've tried it both ways with no success. If I open the combobox and close it without selecting an item the empty message then shows but it doesn't show initially or on load. Can you help?
<telerik:GridTemplateColumn DataField="Item" UniqueName="Item">
                        <ItemStyle />
                        <ItemTemplate>
                          <telerik:RadComboBox ID="ddlItems" runat="server" AutoPostBack="false"
                                DataSourceID="objItems" DataTextField="Items" DataValueField="Items"
                                Skin="Default"  OnClientDropDownOpening="DropDownOpening"
                                OnClientSelectedIndexChanged="ItemValueChanged" EnableViewState="true"
                                AllowCustomText="False"   Width="150px" Height="150px" EmptyMessage="Select Item"
                                ondatabound="ddlItems_DataBound"
                                FocusedStyle-BackColor="#fff6dc" Text='<%# Eval("Item") %>'>
                            </telerik:RadComboBox>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 22 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?