Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
124 views


I use radlistview paging like that ,
http://demos.telerik.com/aspnet-ajax/listview/examples/paging/custompaging/defaultcs.aspx
but my problem's two page values are there but , only one page only show ,
<telerik:RadDataPager ID="RadDataPager1" runat="server" Style="border: none;" PageSize="2">
                                                           <Fields>
                                                               <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                               <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                                               <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                               <telerik:RadDataPagerGoToPageField />
                                                           </Fields>
                                                       </telerik:RadDataPager>

refer the image below
Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 20 Jul 2011
0 answers
97 views
Hello,

       I have used Rad Grid on my web page, I had applied Virtual Paging on my radgrid, my page size is 30 for radgrid, After page loaded grid have 210 records ,so there would be 7 total pages, i have put down the grid into the rad pane so initially there are 15 visible records available.Now, the problem with virtual pagins is when scroll the page user will get rest of the records but when user reach up to 25 records, automatically paging get applied and come to the second page means records will display from 31-60...so in that case user can't able to view the records 26-30 those are the part of First Page. How can i manage the index of the records or any other solution to resolve this issue. same thing happen while i am editing any records which are near to paging (i.e. record 28 or 29).

Thanks,
Kaushal.
Kaushal
Top achievements
Rank 1
 asked on 20 Jul 2011
0 answers
115 views
Hi Team,

i use Chart, AjaxManager, Xmldatasource andTimer. my chart auto refresh every 10 seconds. but always show error

"Sys.WebForms.PageRequestManagerTimeoutException:The Server request timed out".

my data as much as 1610 lines for load in chart.

Please help me.....
Heri .
Top achievements
Rank 1
 asked on 20 Jul 2011
0 answers
29 views
I have a radgrid in a RadTabStrip which is enclosed in radAjaxPanel. For radGrid multirowselection is true and clientsetting row select is false. I am selecting the row server side with a checkbox checkedchanged event as explained in server side row selection demo. If I select 5-6 rows then all the selections are lost but the checkboxes are still checked. What can I do to fix the problem. If I select only 2-3 rows, all remain selected.
Please let me know some solution, its urgent.

Thanks

kachy
Top achievements
Rank 1
 asked on 20 Jul 2011
2 answers
113 views

I added three custom buttons to my RadEditor.

---------------------------------

Added the following to my xml file:

 

<tools name="CustomToolbar" dockable="true" enabled="true">

    <tool name="DatabaseSave" />

    <tool name="Open-Print" />

    <tool name="Email" />

</tools>


Added the following to my markup:
<style type="text/css">

    .reTool .DatabaseSave

    

        background-image: url(save.gif);

    }

    .reTool .Open-Print 

    {

        background-image: url(printer.ico);

    }

    .reTool .Email

    

        background-image: url(email.gif);

    }

</style>

  

<telerik:RadEditor ID="RadEditor1" Runat="server" 

ToolsFile="~/Letters/DocMaster/ToolsFile.xml" EditModes="Design" AutoResizeHeight="True" 

ClientIDMode="Inherit" Skin="Hay" Width="100%" />

  

<script type="text/javascript">

    Telerik.Web.UI.Editor.CommandList["Save"] = function (commandName, editor, args) {

        alert("Pressed Save");

    };

  

    Telerik.Web.UI.Editor.CommandList["Open-Print"] = function (commandName, editor, args) {

        alert("Pressed Open-Print");

    };

  

    Telerik.Web.UI.Editor.CommandList["Email"] = function (commandName, editor, args) {

        alert("Pressed Email");

    };

</script>

---------------------------------

The buttons showed with their default glippy no problem. The button press function calls came up no problem. I played with everything I could think of to get the background-image little graphics to show on the buttons using every path methodology I knew or could think of, including internal and external CSS. In my test project, I finally got them to show only by putting the graphics in the same folder as the page that holds the RadEditor. So I incorporated it into the real project. In the real project, the RadEditor is on a nested master page. Nothing I can do nohow will get those buttons to show, no matter where I put them or how I write those paths. Please help.

Thanks.

Velma
Top achievements
Rank 1
 answered on 19 Jul 2011
6 answers
157 views
As you might have know, in Visual Studio ASP.NET built-in control, there is a WebControl which is a base class for all webcontrols in ASP.NET.  Is there any equivalent base class like that for Telerik RadControl?

Thanks

LamK.
LamKhoa
Top achievements
Rank 1
 answered on 19 Jul 2011
1 answer
166 views
Hi,

I have a problem exporting a grid to excel.
All works fine but the excel file is empty.

I can confirm that NeedDataSource event is raised and data come from repository when the export button is clicked.
This is the code for export:

       protected void ToExcelButton_Click(object sender, EventArgs e)
          {
                ConfigureExport();
                ListGrid.MasterTableView.ExportToExcel();
          }

          public void ConfigureExport()
          {
                ListGrid.ExportSettings.ExportOnlyData =
true;
                ListGrid.ExportSettings.IgnorePaging =
true;
                ListGrid.ExportSettings.OpenInNewWindow =
true;
                // Hide button columns
                ListGrid.MasterTableView.GetColumn("EditButton").Visible = false;
                ListGrid.MasterTableView.GetColumn("Logo").Visible = false;
                ListGrid.MasterTableView.GetColumn("DeleteButton").Visible = false;
          }

And this is the page code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Quasar.WebUI.Customers.Customers.List" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Quasar | CRM - Customers List</title>
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <script type="text/javascript">
        // on ToExcel button click temporarily disables ajax to perform
        // actions
        function conditionalPostback(sender, args) {
            if (args.get_eventTarget().indexOf("ToExcelButton") >= 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
 
   <telerik:RadWindowManager ID="ListRadWindowManager" runat="server" />
 
   <telerik:RadAjaxLoadingPanel ID="ListRadAjaxLoadingPanel" runat="server" Skin="Default" />
 
   <telerik:RadAjaxManager ID="ListRadAjaxManager" runat="server" ClientEvents-OnRequestStart="conditionalPostback">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ListGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListGrid" LoadingPanelID="ListRadAjaxLoadingPanel" UpdatePanelHeight="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <div class="findField">
        <asp:Label ID="VATLabel" runat="server" AssociatedControlID="VAT">CIF/VAT :</asp:Label>
        <telerik:RadTextBox ID="VAT" runat="server" EmptyMessage="(empty)" MaxLength="25" Columns="15"
            SelectionOnFocus="SelectAll" ToolTip="Find Customer by CIF/VAT"></telerik:RadTextBox>
             
        <asp:Label ID="ContactLabel" runat="server" AssociatedControlID="Contact">Contact :</asp:Label>
        <telerik:RadTextBox ID="Contact" runat="server" EmptyMessage="(empty)" MaxLength="25" Columns="25"
            SelectionOnFocus="SelectAll" ToolTip="Find Customer by Contact"></telerik:RadTextBox>
             
        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Email :</asp:Label>
        <telerik:RadTextBox ID="Email" runat="server" EmptyMessage="(empty)" MaxLength="25" Columns="25"
            SelectionOnFocus="SelectAll" ToolTip="Find Customer by Contact Email"></telerik:RadTextBox>
             
        <telerik:RadButton ID="FindButton" runat="server" Icon-PrimaryIconUrl="~/Images/Find.png" Text="Find" Width="75px"
            onclick="FindButton_Click">
        </telerik:RadButton>
    </div>
 
    <telerik:RadGrid ID="ListGrid" runat="server" AllowFilteringByColumn="True"
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
        GridLines="None" ShowStatusBar="True" ShowGroupPanel="True"
        EnableLinqExpressions="false"
        onneeddatasource="ListGrid_NeedDataSource"
        onitemcommand="ListGrid_ItemCommand"
        onitemdatabound="ListGrid_ItemDataBound">
 
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">
            <Selecting AllowRowSelect="False" />
        </ClientSettings>
 
        <GroupingSettings CaseSensitive="false" />
         
        <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" FileName="Customers">
                <Excel Format="ExcelML" />
        </ExportSettings>
         
        <MasterTableView Name="Master" DataKeyNames="CustomerId" CommandItemDisplay="Top" CommandItemSettings-ShowRefreshButton="False"
            CommandItemSettings-ShowExportToExcelButton="true">
             
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
 
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
 
            <NestedViewSettings>
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="ContactId" MasterKeyField="CustomerId" />
                    <telerik:GridRelationFields DetailKeyField="AddressId" MasterKeyField="CustomerId" />
                </ParentTableRelation>
            </NestedViewSettings>
 
            <NestedViewTemplate>
 
                <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap">
                    <telerik:RadTabStrip runat="server" ID="CustomersTabStrip" MultiPageID="CustomersMultipage" SelectedIndex="0">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Contacts" PageViewID="ContactsPageView">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Addresses" PageViewID="AddressesPageView">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
 
                    <telerik:RadMultiPage runat="server" ID="CustomersMultipage" SelectedIndex="0" RenderSelectedPageOnly="false">
 
                        <telerik:RadPageView runat="server" ID="ContactsPageView">
 
                            <telerik:RadGrid ID="ContactsGrid" runat="server" AllowSorting="false" AllowFilteringByColumn="false"
                                PageSize="5" AllowPaging="true" AutoGenerateColumns="False" GridLines="None"
                                onneeddatasource="ContactsGrid_NeedDataSource">
 
                                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">
                                    <Selecting AllowRowSelect="False" />
                                </ClientSettings>
 
                                <MasterTableView DataKeyNames="ContactId">
 
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="ContactId" HeaderText="Id"
                                            UniqueName="ContactId" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Full Name" DataField="FullName" UniqueName="FullName">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Position" DataField="Position" UniqueName="Position">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Contact Type" DataField="ContactType.Description" UniqueName="ContactType">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridHyperLinkColumn DataNavigateUrlFields="Email" DataNavigateUrlFormatString="mailto:{0}"
                                            DataTextField="Email" HeaderText="Email" UniqueName="Email" Groupable="false"
                                            AllowFiltering="false">
                                        </telerik:GridHyperLinkColumn>
                                        <telerik:GridBoundColumn HeaderText="Phone" DataField="Phone" UniqueName="Phone">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Mobile" DataField="Mobile" UniqueName="Mobile">
                                        </telerik:GridBoundColumn>
                                    </Columns>
 
                                </MasterTableView>
 
                            </telerik:RadGrid>
 
                        </telerik:RadPageView>
 
                        <telerik:RadPageView runat="server" ID="AddressesPageView">
 
                            <telerik:RadGrid ID="AddressesGrid" runat="server" AllowSorting="false" AllowFilteringByColumn="false"
                                PageSize="5" AllowPaging="true" AutoGenerateColumns="False" GridLines="None"
                                onneeddatasource="AddressesGrid_NeedDataSource">
 
                                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">
                                    <Selecting AllowRowSelect="False" />
                                </ClientSettings>
 
                                <MasterTableView DataKeyNames="AddressId">
 
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="AddressId" HeaderText="Id"
                                            UniqueName="AddressId" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Address Type" DataField="AddressType" UniqueName="AddressType">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Full Address" DataField="FullAddress" UniqueName="FullAddress">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Zip Code" DataField="ZipCode" UniqueName="ZipCode">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="City" DataField="City" UniqueName="City">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Province" DataField="Province" UniqueName="Province">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Country" DataField="Country" UniqueName="Country">
                                        </telerik:GridBoundColumn>
                                    </Columns>
 
                                </MasterTableView>
 
                            </telerik:RadGrid>
 
                        </telerik:RadPageView>
 
                    </telerik:RadMultiPage>
 
                </asp:Panel>
 
            </NestedViewTemplate>
 
            <Columns>
                <telerik:GridButtonColumn ButtonType="ImageButton" Reorderable="False"
                    Resizable="False" ShowFilterIcon="False" ShowSortIcon="False"
                    UniqueName="EditButton" ImageUrl="~/Images/Edit.png" CommandName="Edit">
                    <ItemStyle Width="20px" HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridButtonColumn>
                <telerik:GridImageColumn AllowFiltering="False" AllowSorting="False"
                    DataAlternateTextField="Name" DataImageUrlFields="Logo"
                    DataImageUrlFormatString="~/Images/Customers/{0}" Groupable="False"
                    HeaderText="Logo" ImageHeight="64px" ImageWidth="64px" ShowSortIcon="False"
                    UniqueName="Logo" ItemStyle-Width="75px">
                    <ItemStyle Width="75px" />
                </telerik:GridImageColumn>
                <telerik:GridBoundColumn DataField="CustomerId" HeaderText="Id" UniqueName="CustomerId" Visible="false"
                    AllowFiltering="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
                </telerik:GridBoundColumn>
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="Web" DataNavigateUrlFormatString="{0}" DataTextField="Web"
                    HeaderText="Web" UniqueName="Web" Target="_blank" Groupable="false" AllowFiltering="false">
                </telerik:GridHyperLinkColumn>
                <telerik:GridBoundColumn DataField="Group.Name" HeaderText="Group" UniqueName="Group">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="ActiveGroup" DataField="Group.IsActive" UniqueName="ActiveGroup" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="AccountManager.FullName" HeaderText="Acct. Manager" UniqueName="AccountManager">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="ActiveAcctMgr" DataField="AccountManager.IsActive" UniqueName="ActiveAcctMgr" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SIC.Description" HeaderText="SIC" UniqueName="SIC">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="ActiveSIC" DataField="SIC.IsActive" UniqueName="ActiveSIC" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="IsProspect" HeaderText="Prospect" UniqueName="IsProspect">
                </telerik:GridCheckBoxColumn>
                <telerik:GridButtonColumn ButtonType="ImageButton" Reorderable="False"
                    Resizable="False" ShowFilterIcon="False" ShowSortIcon="False"
                    UniqueName="DeleteButton" ImageUrl="~/Images/Delete.png" CommandName="Delete"
                    ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this record?" ConfirmTitle="Delete record..."
                    ConfirmDialogHeight="130px">
                    <ItemStyle Width="20px" HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridButtonColumn>
            </Columns>
 
        </MasterTableView>
 
        <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" />
 
        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
 
    </telerik:RadGrid>
 
    <p class="submitButton">
        <telerik:RadButton ID="ToExcelButton" runat="server" Icon-PrimaryIconUrl="~/Images/Save.png" Text="Save" Width="75px"
            onclick="ToExcelButton_Click">
        </telerik:RadButton>
    </p>
 
</asp:Content>

Excel file is generated but with <Row></Row> tags empty.
I'm using Q2 grid.
Regards
Jose
Daniel
Telerik team
 answered on 19 Jul 2011
3 answers
122 views

Hi, i'm developing a RadListView with a pagination performed by a stored procedure that calculates: page index and items loaded within the RadListView. I've noticed that navigation of the RadListView increase the browser's memory process for each async postback.

How can i reduce this memory unnecessarily occupied?

Daniel
Telerik team
 answered on 19 Jul 2011
6 answers
519 views
Hi,

I have a problem with grouping in a radGrid.  When I try to add the grouping, I get the error message "Field xxx not found in the source table".  However, when I remove the GroupByExpressions, the grid populates correctly with the field that was "not found" when the GroupByExpressions were present.  I am using a needDataSource to bind my data as suggested in a previous post since I am pulling the data from an api.  Any help would be greatly apreciated.
-Z

aspx
<telerik:RadGrid ID="dgFeatures" runat="server" GridLines="None" AutoGenerateColumns="False" AllowFilteringByColumn="True"   
            AllowPaging="True" AllowSorting="True" ShowGroupPanel="True" ShowFooter="True" EnableLinqExpressions="false" > 
        <ClientSettings AllowRowsDragDrop="true">  
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
        <MasterTableView GroupLoadMode="Client" ShowGroupFooter="True" allowmulticolumnsorting="True" pagesize="100"  DataKeyNames="Id, Rank, Est,Priority ">  
            <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn Visible="False">  
            <HeaderStyle Width="19px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
 
                <telerik:GridBoundColumn SortExpression="Name" DataField="Name" HeaderText="Feature"   
                    UniqueName="Feature" ConvertEmptyStringToNull="False" /> 
 
                <telerik:GridBoundColumn SortExpression="Rank" DataField="Rank" HeaderText="Rank"   
                    UniqueName="Rank"/>  
 
                <telerik:GridBoundColumn DataField="ID" HeaderText="Id" UniqueName="Id"   
                    Visible="False"/>  
 
                <telerik:GridBoundColumn DataField="Priority" HeaderText="Priority"   
                    UniqueName="Priority" /> 
 
                <telerik:GridBoundColumn DataField="Backlog"   
                    HeaderText="Backlog Candidate" UniqueName="BacklogCandidate" /> 
 
                <telerik:GridBoundColumn FooterText="Total Points" DataField="PlanEst"   
                    HeaderText="Tech Points" UniqueName="TechPoints" /> 
 
                <telerik:GridBoundColumn DataField="EstRelease" 
                    HeaderText="Est Release" UniqueName="EstRelease" /> 
 
            </Columns> 
            <GroupByExpressions> 
                <telerik:GridGroupByExpression> 
                    <GroupByFields> 
                        <telerik:GridGroupByField FieldName="EstRelease" /> 
                    </GroupByFields> 
                    <SelectFields> 
                        <telerik:GridGroupByField FieldName="EstRelease" HeaderText="Estimated Release Date" /> 
                    </SelectFields> 
                </telerik:GridGroupByExpression> 
            </GroupByExpressions> 
        </MasterTableView> 
        <HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> 
    </telerik:RadGrid> 

vb
Private Sub dgFeatures_NeedDataSource1(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles dgFeatures.NeedDataSource  
        Me.dgFeatures.DataSource = Me.records  
    End Sub 
Kevin
Top achievements
Rank 1
 answered on 19 Jul 2011
2 answers
1.1K+ views
I have a radUpload control
I'd like to check file name with extension (SomeName.txt) on Client side (JS)
is there a buildin function that i can use to get filename, NOT entire path.
var upload = $find("<%= RadUpload1.ClientID %>")
upload.getFileInputs()[0].value

This code returns entire path i.e (C:\Users\Dev\Documents\SomeName.txt)
i Just need file Name.

or Anyone can suggest RegEx to extract file name????
Basically i need to validate that File name doesn't contain specific character "#".
 
Thanx.
Pasha
Top achievements
Rank 1
 answered on 19 Jul 2011
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?