Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
190 views

Hi, I would need to use a RadTabStrip as a selector, but not for a MultiPage with exclusive content.

When I select the TAB 0, I have to display n input controls.
When I select TAB 1, I have to display n + m input controls. i.e. add them or remove them using the 2 tabs.

Possibly? In the simplest way, server side is preferred.

This an extract. Ther's a parent MasterPage.

<asp:Content ID="Content2" ContentPlaceHolderID="cph1" runat="Server">
 
    <telerik:RadTabStrip RenderMode="Lightweight" runat="server" ID="rts1" Align="Justify" AutoPostBack="true" MultiPageID="rmp1" SelectedIndex="0">
            <Tabs>
                <telerik:RadTab Text="Primo anno"></telerik:RadTab>
                <telerik:RadTab Text="Anni successivi"></telerik:RadTab>
            </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage runat="server" ID="rmp1" SelectedIndex="0" RenderSelectedPageOnly="True">
        <telerik:RadPageView runat="server" Height="460px" ID="rpv1">
            <div class="contentWrapper">
                <telerik:RadAjaxPanel runat="server">
                    <span class="titIscritti">Calcolo per a.a. 2018-2019, studenti iscritti al 1° anno</span>
                    <br />
                    <asp:Label runat="server" AssociatedControlID="txtISEE">ISEE:</asp:Label>
                    <telerik:RadNumericTextBox runat="server" ID="txtISEE" EmptyMessage="valore ISEE" MaxLength="12" RenderMode="Lightweight" Type="Currency" CausesValidation="True"></telerik:RadNumericTextBox>
                    <asp:RequiredFieldValidator ID="rfv_isee" runat="server" ErrorMessage="*" ControlToValidate="txtISEE" Display="Dynamic" ValidationGroup="std"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Label runat="server" AssociatedControlID="txtISPE" >ISPE:</asp:Label>
                    <telerik:RadNumericTextBox runat="server" ID="txtISPE" EmptyMessage="valore ISPE" MaxLength="12" RenderMode="Lightweight" Type="Currency" CausesValidation="True"></telerik:RadNumericTextBox>
                    <asp:RequiredFieldValidator ID="rfv_ispe" runat="server" ErrorMessage="*" ControlToValidate="txtISPE" Display="Dynamic" ValidationGroup="std"></asp:RequiredFieldValidator>
                    <br />
                    <asp:Label runat="server" AssociatedControlID="rddlDipartimento" >Dipartimento:</asp:Label>
                    <telerik:RadDropDownList RenderMode="Lightweight" ID="rddlDipartimento" runat="server" DataTextField="Struttura" DropDownHeight="200" DataValueField="ID">
                    </telerik:RadDropDownList>
                    <asp:RequiredFieldValidator ID="rfv_ddlDip" runat="server" ErrorMessage="*" ControlToValidate="rddlDipartimento" Display="Dynamic" InitialValue="seleziona" ValidationGroup="std"></asp:RequiredFieldValidator>
                    <br /><br />
                    <telerik:RadButton RenderMode="Lightweight" runat="server" Text="Calcola" ID="btnCalcola" ToolTip="Effettua la simulazione"  OnClick="btnCalcola_Click" Primary="False" AutoPostBack="True" SingleClick="False" ButtonType="StandardButton" ValidationGroup="std" />   
                    <br /><br />
                    <asp:Label ID="lblMsg" runat="server" Visible="False" ForeColor="Red"></asp:Label>
                </telerik:RadAjaxPanel>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" Height="460px" ID="rpv2">
            <div class="contentWrapper">
                Iscritti anni successivi
            </div>
        </telerik:RadPageView>
     </telerik:RadMultiPage>
 
</asp:Content>
Vessy
Telerik team
 answered on 11 Jul 2018
1 answer
339 views

Hello Community,

Our application is supporting for IE. We are making our application compatible with edge. In this process we are getting the below error for RAD Grid.

Horizontal Scroll bar for Rad Grid is not Enabled in Edge Browser but its getting enabled which is working as expected  in IE,Chrome

We are using telerik.web.ui dll version  2010.1.309.40 and .net framework 4.7. I am attaching the screen shots. 

Marin Bratanov
Telerik team
 answered on 11 Jul 2018
6 answers
669 views
Hi ,

I have RadCombo box which is using ItemRequested event to load items , when I click on "ShowMoreResults" list of items are added again and total count is doubled  . I used RadCombo box clear items before rebinding but still the issue occurs ,can anybody suggest how to go about the issue .

Regards
Srujan.N
Peter Milchev
Telerik team
 answered on 11 Jul 2018
1 answer
104 views

Hello,

I use RadDateTimePicker in GridDateTimeColumn. I want to change word 'Today' on other word in my language.

<telerik:RadGrid ID="IdGrid" runat="server" AutoGenerateColumns="False" OnNeedDataSource="NeedDataSourceGrid" OnItemDataBound="ItemDataBoundGrid" Page_PreRender="PreRenderGrid" OnItemCommand="ItemCommandGrid" AllowMultiRowSelection="false"  RenderMode="Lightweight" AllowSorting="True" AllowPaging="True">
<GroupingSettings CaseSensitive="false" /><MasterTableView TableLayout="Fixed" DataKeyNames="InvoiceId" AllowFilteringByColumn="true" CommandItemDisplay="Top" AllowNaturalSort="false">

<Columns>

 

<telerik:GridDateTimeColumn HeaderText="name" UniqueName="NameDateExport" DataField="DateExport" EnableTimeIndependentFiltering="true">  <FilterTemplate>

<telerik:RadDateTimePicker RenderMode="Lightweight" ID="IdDateExport" runat="server"  UniqueName="UnDateExport"  OnSelectedDateChanged="SelectionChanged" OnPreRender="DePreRender"></telerik:RadDateTimePicker>

 

thank you, in advance for help

Vessy
Telerik team
 answered on 11 Jul 2018
2 answers
251 views

Hi..

I'd like to apply my custom skin to a GridButtonColumn.

What do I set the ButtonCssClass to?   Skins/Flom/Button.Flom.css ?

thx again!!

 

 

   GridButtonColumn btnFSR = new GridButtonColumn();
   btnFSR.ButtonCssClass =  ????

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 10 Jul 2018
1 answer
174 views
Hi..
I'd like to apply my custom skin to a GridButtonColumn.
What do I set the ButtonCssClass to?   Skins/Flom/Button.Flom.css ?
thx again!!


   GridButtonColumn btnFSR = new GridButtonColumn();
   btnFSR.ButtonCssClass =  ????
Rumen
Telerik team
 answered on 10 Jul 2018
1 answer
787 views

Target environment where bug is replicable: Windows 10 Enterprise 64-bit.

There is a bug in the DateTimePicker widget.  If you select a time by clicking in the UI, it partially disregards your selection and forces the time to be set in AM time.  As an example, select 3 PM in the UI and the result will be set to 3 AM.  The only exception to this is with 12PM (or any derivative of that hour, such as 12:30PM).  Presumably that is because the default time of a DateTimePicker is 12PM.

I do not know what version of Telerik we use at my company--someone else in my company has the license information and I cannot be bothered.  Regardless, it does not matter.  Just go to the Telerik website with any Windows 10 machine and replicate the issue.  Link here: https://demos.telerik.com/aspnet-ajax/datetimepicker/overview/defaultcs.aspx

This bug cannot be replicated in all environments.  For example, at my office, we have a server where the behavior is not replicated (Windows Server 2012 R2 64-bit).

Attila Antal
Telerik team
 answered on 10 Jul 2018
1 answer
71 views

How can i access this hyperlink in javascript?

how to assign href to hyperlink in javascript

i have tried below code but no luck

 var masterTable = $find("<%= gvList.ClientID %>").get_masterTableView();
        var grid = document.getElementById("<%=gvList.ClientID %>");
        var elements = grid.getElementsByTagName("lnkTitle");
        var lnkTitle = $('#<%=gvList.ClientID %>').find('span[id$="lnkTitle"]')

Following is the gridview i am using 

<telerik:RadGrid ID="gvList" runat="server" ShowHeader="false" OnNeedDataSource="gvList_NeedDataSource" AllowCustomPaging="true"
                    AutoGenerateColumns="false" AllowPaging="true" OnItemDataBound="gvList_ItemDataBound" OnItemCommand="gvList_ItemCommand"
                    PageSize="10" CssClass="GridViewStyle" GridLines="None" PagerStyle-Mode="NextPrevAndNumeric"
                    PagerStyle-Position="TopAndBottom" PagerStyle-AlwaysVisible="true">
                    <MasterTableView TableLayout="Fixed" NoMasterRecordsText="No documents found." DataKeyNames="RESOURCE_ID">
                        <Columns>
                             
                            <telerik:GridTemplateColumn>
                                <ItemTemplate>
                                    <div class="zerogrid">
                                        <div class="col-1-6" style="cursor: pointer; position: relative; display: inline;">
                                            
                                            <asp:HyperLink ID="lnkThumbnail" runat="server" CssClass="cursor"  NavigateUrl="#">
                                                <%-- <asp:Image runat="server" Width="100" ID="imgThumb"  />--%>
                                               <%-- <asp:Image runat="server" Width="100" ID="imgThumb" ImageUrl='<%#Eval("THUMBNAIL")%>' />--%>
                                                 <asp:Image runat="server" Width="100" ID="imgThumb" ImageUrl="#" />
                                            </asp:HyperLink>
                                        </div>
                                        <div class="col-2-3 padding-tb-10">
                                    

                          
                                           <asp:HyperLink ID="lnkTitle" runat="server" class="mylink" CssClass="cursor" NavigateUrl="#">
                                             <%--<asp:HyperLink ID="lnkTitle" runat="server"  CssClass="cursor" >--%>
                                                <asp:Label ID="Label2" Font-Bold="true" Font-Size="Large" Text='<%# Eval("TITLE") %>'
                                                    runat="server"></asp:Label>
                                                  <asp:Label ID="Label1" Font-Bold="true" Font-Size="Large" Visible="false" Text='<%# Eval("RESOURCE_URL") %>'
                                                    runat="server"></asp:Label>
                                                 <asp:Label ID="LblType" Font-Bold="true" Font-Size="Large" Visible="false" Text='<%# Eval("RESOURCE_TYPE") %>'
                                                    runat="server"></asp:Label>
                                            </asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:LinkButton ID="lnkEdit" Font-Underline="false" ToolTip="Edit" Visible="false" runat="server" CommandName="Edit">
                                            <span class="fa fa-2x fa-edit"></span>
                                        </asp:LinkButton>
                                            <br />
                                            <div style="padding: 5px;">
                                                <asp:Label ID="Label3" Font-Bold="false" Font-Size="Small" Text='<%# Eval("DESCRIPTION") %>'
                                                    runat="server"></asp:Label>
                                                <br /><br />
                                                <span style="font-size:12px;color:gray;">Last Updated: </span><asp:Label ID="lblLastUpdated" ForeColor="Gray" Font-Bold="false" Font-Size="12px" Text='<%# FormatDate(Eval("LAST_UPDATED")) %>'
                                                    runat="server"></asp:Label>
                                            </div>

                                            <%--<strong>Date:</strong>&nbsp;
                                            <asp:Label runat="server" ID="lblUploaddate" Text='<%# Convert.ToDateTime(Eval("LAST_UPDATED")).ToShortDateString() %>' />
                                            <strong>Size:</strong>&nbsp;
                                            <asp:Label runat="server" ID="Label1" Text='<%#Eval("FILE_SIZE") %>' />--%>
                                            <asp:HiddenField runat="server" ID="hdnISLock" Value='<%#Eval("IS_LOCKED") %>' />
                                            <asp:HiddenField runat="server" ID="hdnResourceURL" Value='<%#Eval("RESOURCE_URL") %>' />
                                            <asp:HiddenField runat="server" ID="hdnCreatedBy" Value='<%#Eval("CREATED_BY") %>' />
                                        </div>
                                        <%--<div class="col-1-6">
                                        <asp:Image runat="server" Width="20" ID="imgFav" ImageUrl='<%# DIS_ResourceManager.CommonData.IS_FAVORITE(DataBinder.Eval(Container, "DataItem.IS_FAV"))%>' />
                                    </div>--%>
                                    </div>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

Tsvetomir
Telerik team
 answered on 10 Jul 2018
3 answers
479 views
Hi,

I want to open a confirm dialog on clicking a particular RadToolBar Button. Is this possible? Please help.

Thank you,
Ivy.
Peter Milchev
Telerik team
 answered on 10 Jul 2018
5 answers
379 views
I have a RadGrid that has 3 data bound columns: date, enrollments, drops. I would like to add a running total column that shows the total enrollments for each date.

It seems like I should be able to do this with a calculated column but I am not seeing how. I am using the latest version of the control. Does anyone have any tips?

Marin Bratanov
Telerik team
 answered on 10 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?