Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views

Is it possible to navigate document using up, down, pgup, pgdn and home end keys or only pager options available?

How to translate page width descriptions like "Fit to page" etc.

I did translation using "MessagesSettings" but nowhere found combobox options.

Attila Antal
Telerik team
 answered on 11 Feb 2021
3 answers
175 views

I have a rad grid nested:

<telerik:RadGrid ID="gvDocs" runat="server" ShowHeader="false" Width="100%" AutoGenerateColumns="false" OnItemCommand="gvDocsDx_ItemCommand" GridLines="None" CssClass="diagCodes" OnItemDataBound="gvDocs_ItemDataBound">
    <MasterTableView BorderWidth="0">
        <Columns>
            <telerik:GridButtonColumn CommandName="DeleteItem" UniqueName="btnDelDoc" ButtonType="PushButton" Text=" Delete "></telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="id" UniqueName="id" HeaderText="RefId" Display="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="friendlyName"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="pgNum"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="fileNote"></telerik:GridBoundColumn>
        </Columns>
        <NoRecordsTemplate>
            <div class="no-record">No document associations</div>
        </NoRecordsTemplate>
    </MasterTableView>
</telerik:RadGrid>

 

I am trying to navigate to btnDelDoc so I can disable it.  Here is the code I have and I think I am close: (it is not finding the button) HELP!

protected void gvDocs_ItemDataBound1(object sender, GridItemEventArgs e)
{
    if (util.appUserIsReports)
    {
        //RadPushButton btn = e.Item
        //GridDataItem item = e.Item as GridDataItem;
        if (e.Item is GridDataItem)
        {
            GridDataItem item = e.Item as GridDataItem;
            RadButton button = item.FindControl("btnDelDoc") as RadButton;
            button.Enabled = false;
        }
    }
}

 


Attila Antal
Telerik team
 answered on 11 Feb 2021
1 answer
60 views

Hello,

I have a simple radDataPager with the Bootstrap skin.

The first, previous, next and last icons are wrongly displayed when the mouse hoovers the buttons (see the four pictures).

The markup:

<div class="SearchPagerContainer">
  <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="lvArticles" PageSize="24" Skin="Bootstrap" Style="margin-left: 3px; margin-top: 2px" OnInit="RadDataPager1_Init">

    <Fields>
      <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
      <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="4"/>
      <telerik:RadDataPagerButtonField FieldType="NextLast" />
      <telerik:RadDataPagerPageSizeField PageSizeComboWidth="70" PageSizes="12;24;48" PageSizeText="# par page: " HorizontalPosition="NoFloat" />
    </Fields>
  </telerik:RadDataPager>
</div>

It seems to be basic, but it does not work.

Any idea ?

Philippe

Doncho
Telerik team
 answered on 10 Feb 2021
0 answers
96 views
Hi,
   I have a rad grid, after binding data i used separate button to export data into excel file, i used below code, after export to excel i get test filter icon, i want to remove that filter option.Pls guid me how to remove that filter option. Here i attach screenshot http://prntscr.com/yx3h0d

Below the code i used

         radgridSJP.ExportSettings.IgnorePaging = True
        radgridSJP.ExportSettings.ExportOnlyData = True
        radgridSJP.ExportSettings.OpenInNewWindow = True
        radgridSJP.MasterTableView.ExportToExcel()


Thanks
M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 10 Feb 2021
7 answers
327 views
Hi,

I am using a radgrid to display user roles. I have set the pagesize to 10 and I have more than 10 user roles. When I am setting pagesize = 10 and AllowPaging = True, I can see 2 pages to display more than 10 users. But the paging numbers are not aligned between next and prev arrows. See attachment 1 (Image1_issue.jpg). The code for radgrid is:

<telerik:RadGrid ID="radGridUserGroups" runat="server" AllowSorting=true GridLines="None" EnableViewState=true AllowPaging="true" PageSize=10>

 

 

And the below code is defined in grid default skin to use the same style for all the grids within an application
 <telerik:RadGrid runat="server" EnableEmbeddedSkins=false AutoGenerateColumns="False">
 
<PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign=Center></PagerStyle
 <FooterStyle Font-Bold=true ForeColor=Black ></FooterStyle>  

 </telerik:RadGrid>

 

 

But if the code for grid is modified as below

<telerik:RadGrid ID="radGridUserGroups" runat="server" AllowSorting=true GridLines="None" EnableViewState=true AllowPaging="true" PageSize=10 EnableEmbeddedBaseStylesheet="false">

 

then the paging numbers are appearing properly (See attachment 2 - image2.jpg) but all the other styles defined in css file is not working. All the headers are not left aligned any more.

I am using Telerik Q1 2010.1.519 version. Please let me know what am I missing?

Thanks,
Raj

Guss
Top achievements
Rank 2
Veteran
 answered on 10 Feb 2021
5 answers
675 views
Hello,

I am trying to use a numeric pager on both the top and bottom of a Radgrid and align the pager all the way to the right side of the grid.  I am able to get the pager to be numeric and be placed on the top and the bottom of the grid, but am unable to move the pager from the left side to the right side.

I have tried using:

PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages"  PagerStyle-Position="TopAndBottom"

in the <telerik:RadGrid tag,
 
as well as

 

<PagerStyle Mode="NumericPages" Position="TopAndBottom" HorizontalAlign="Right" />

 


and in the codebehind as

RadGrid.PagerStyle.Position =

GridPagerPosition.TopAndBottom;

 

RadGrid.PagerStyle.Mode =

GridPagerMode.NumericPages;

 

RadGrid.PagerStyle.HorizontalAlign =

HorizontalAlign.Right;


in each instance the numeric pager appears at the top and bottom of the grid, but is left aligned.  I also do not receive any errors at all.  What do I need to do differently in order to move the numeric pager from the left side of the grid to the right?

Thank you for any help that I may receive.

Aaron

 




Guss
Top achievements
Rank 2
Veteran
 answered on 10 Feb 2021
7 answers
295 views
Hi,
I am using the latest version of dll. I need to overwite my css in such a way my pager numbers should be appeared in rifht side. how to do it. Tried the following but nothing happend

.RadGridRTL_Web20 .rgNumPart a
{
    float: right !important;
    text-align: right !important;
}
.RadGrid_Web20 .rgPager .rgStatus
{
 text-align : right !important;
}

Thanks,
Jeevihta
Guss
Top achievements
Rank 2
Veteran
 answered on 10 Feb 2021
0 answers
122 views

There is any tutorial (with sample code) teaching how to use Telerik skins for whose has no idea from where to start?

I don't even know how to set a skin to a control.

Thanks.

Yan Moura
Top achievements
Rank 1
Veteran
Iron
 asked on 09 Feb 2021
1 answer
117 views

Hi Team,

How to get the selected node id using radgantt. Is there any method which can be used to get ?

Regards

 

Vessy
Telerik team
 answered on 09 Feb 2021
3 answers
125 views

When I use numerictextbox demos and I try to enter letters, the objects rejects input, but when I use them in my project, the textbox allows user to enter letter and once it loses the focus it gets empty.

My Code

 

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.Master" CodeBehind="Default.aspx.vb" Inherits="GadsWebApp._Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        body {
            background-image: url('images/BackGrounds/default5.jpg');
            background-repeat: no-repeat; background-size: 100%; background-color: transparent;width: 100%;
            height: 100%; margin: 0px; position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
     <telerik:RadNumericTextBox RenderMode="Lightweight" runat="server" ID="RadNumericTextBox1" Width="190px" Value="15"
            EmptyMessage="Enter amount" Type="Currency" MinValue="0" MaxValue="100"></telerik:RadNumericTextBox>
 
</asp:Content>

 

Vessy
Telerik team
 answered on 09 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?