Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
186 views
Team,

  Can anybody let me know if how can I set my paging to the right alignment in the RadGrid. Currently with this code below the grid is not diaplsying the pager with right alignment.

in Code-Behind i wrote

 

this.RadGrid1.MasterTableView.PagerStyle.AlwaysVisible = true;

 

 

this.RadGrid1.MasterTableView.PagerStyle.ShowPagerText = false;

 

 

this.RadGrid1.MasterTableView.PagerStyle.HorizontalAlign = HorizontalAlign.Center;

 

 

this.RadGrid1.MasterTableView.PagerStyle.PrevPageText = "Previous";

 

 

this.RadGrid1.MasterTableView.PagerStyle.NextPageText = "Next";

 

 

this.RadGrid1.MasterTableView.PagerStyle.Mode = Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric;

 



Thanks
Vijay
Doncho
Telerik team
 answered on 12 Feb 2021
5 answers
115 views
Is there a way to reorder a LayoutRow, in a RadPageLayout, depending on device?  In my scenario I have multiple rows (each containing a DIV with various other controls), and when the page is being viewed by a mobile device, I'd like to have the 1st and 2nd row switch positions.
Rumen
Telerik team
 answered on 12 Feb 2021
28 answers
970 views
Hi,
I'm using the RadEditor on our website.  When I browse to it on an iPad and I try to enter text the onscreen keyboard doesn't pop up.

The iPad uses Safari which is listed as supported for RadEditor...

Anyone solved this problem?
Rumen
Telerik team
 answered on 12 Feb 2021
3 answers
111 views

I would like to fix the spacing in between my AsyncUpload and the previous object.  I tried adding it to a table and doesn't seem to matter.  From the code you can see that I have set "HideFileInput" to true.  I am just wanting the "Select" button.

Attached is two images.  If I put the AsyncUpload in the same cell it goes under the RadTextBox and I don't want that as I would like it next to.  If they are in different cells then the spacing is too far apart.  How do get them closer w/o throwing it under the RadTexBox.

 

    <tr>
        <td class="LabelStyle-Right" style="vertical-align: top;">Subject:</td>
        <td style="vertical-align: top;">
            <telerik:RadTextBox ID="_subject" runat="server" MaxLength="100" Width="200"></telerik:RadTextBox>
            </td>
        <td style="vertical-align: top; text-align: left;">
            <telerik:RadAsyncUpload ID="_FaxFile" runat="server" Width="100%"
                AllowedFileExtensions=".pdf" MaxFileInputsCount="1" Visible="true" ToolTip="Select PDF" HideFileInput="true" MaxFileSize="15728640" Localization-Select="Select PDF">
            </telerik:RadAsyncUpload>
<%--            <span class="allowed-attachments" style="font: italic 10px arial, verdana; color: blue;">
                <asp:Label runat="server" ID="FileTypes" Visible="true" Enabled="false"></asp:Label></span>--%>
 
        </td>
    </tr>
Vessy
Telerik team
 answered on 11 Feb 2021
1 answer
80 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
166 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
48 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
86 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
Veteran
 asked on 10 Feb 2021
7 answers
319 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
657 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?