Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
I need to customize the groupings in a grid.
In my case, I group by a column 'GridDropDownColumn' which has as public properties 'DataField = "ID"' and 'ListTextField = "description"', so in group shows a number instead of the description provided in the 'DropDown'.
Radoslav
Telerik team
 answered on 02 Nov 2011
2 answers
255 views
Hello.
i am working on a project, i used telerik control to upload the files. but now what is the problem it doesnot show progross area while uploading.

here are the steps i done
  1. Added all entries in web.config (modules, http handlers for telerik )
  2. set <httpRuntime maxRequestLength="102400" executionTimeout="3600"/> to allow files more than 50 mb
  3. uploading files is succcessfull, but it is not showing the progress area, as i tried to transfer 35 mb file. in localhost :(
  4. i'm having iis 7.5

i'm attaching my files to you . kindly check it and tell me whats the prob with these codes. i followed the same code in your demo examples

please do support soon, as i am having to relase files for production :(
Dimitar Terziev
Telerik team
 answered on 02 Nov 2011
1 answer
146 views
hi , i'm having problem with radgrid in my n-tier applicatin
i'm assigning radgrid datasource  to a List<Product> and i need radgrid provide me filterexpression in form of entity sql format eg: "it.CustomerID = ALFKI" but its format is like "(Convert.ToString(it[\"CustomerID\"]) = \"ALFKI\")"
how i can please radgrid to create entity sql filterexpression without using EntityDataSource ?




Radoslav
Telerik team
 answered on 02 Nov 2011
1 answer
168 views
I have the following page that pulls a simple grid and I got it to export to excel fine after checking out the demos.
How ever now, when the page loads the grid is empty until I select something from the drop down list.

Any ideas on how I should get the grid to populate with the first in the list when the page first loads?

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="report_daily_status_list.aspx.vb" Inherits="FacilityCodingStatus.report_daily_status_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Daily Status list</h2>
    <asp:SqlDataSource ID="dsSiteList" runat="server"
        ConnectionString="<%$ ConnectionStrings:ServiceAudit_ConnectionString %>"
        SelectCommand="FacilityCodingStatus_SiteList"
        SelectCommandType="StoredProcedure"></asp:SqlDataSource>
 
 
    <asp:SqlDataSource ID="dsDailyStatuslist" runat="server"
        ConnectionString="<%$ ConnectionStrings:ServiceAudit_ConnectionString %>"
        SelectCommand="FacilityCodingStatus_DailyStatuslist"
        SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="cbSiteID" Name="sSiteID"
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
 
    <script type="text/javascript">
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
 
 
<p>Select a Site:<telerik:RadComboBox ID="cbSiteID" Runat="server" DataSourceID="dsSiteList"
        DataTextField="SiteDisplay" DataValueField="sSiteID" AutoPostBack="True">
    </telerik:RadComboBox>
 
</p>
 
 
 
 
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True"
        AutoGenerateColumns="False" CellSpacing="0" DataSourceID="dsDailyStatuslist"
        GridLines="None" OnItemCommand="RadGrid1_ItemCommand">
 
            <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" HideStructureColumns="true">
                <Excel Format="ExcelML" />
            </ExportSettings>
 
<MasterTableView DataSourceID="dsDailyStatuslist"  CommandItemDisplay="Top">
<CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToExcelButton="true" ShowAddNewRecordButton="false"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
 
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="sSiteID"
            FilterControlAltText="Filter sSiteID column" HeaderText="SiteID"
            SortExpression="sSiteID" UniqueName="sSiteID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="MEDRECNUM"
            FilterControlAltText="Filter MEDRECNUM column" HeaderText="MedRec#"
            SortExpression="MEDRECNUM" UniqueName="MEDRECNUM">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="sDOS"
            FilterControlAltText="Filter sDOS column" HeaderText="DOS"
            SortExpression="sDOS" UniqueName="sDOS">
        </telerik:GridBoundColumn>
 
 
        <telerik:GridBoundColumn DataField="LASTNAME"
            FilterControlAltText="Filter LASTNAME column" HeaderText="Last Name"
            SortExpression="LASTNAME" UniqueName="LASTNAME">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FIRSTNAME"
            FilterControlAltText="Filter FIRSTNAME column" HeaderText="First Name"
            SortExpression="FIRSTNAME" UniqueName="FIRSTNAME">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EXCEPTIONCODE" DataType="System.Int32"
            FilterControlAltText="Filter EXCEPTIONCODE column" HeaderText="Ex Code"
            SortExpression="EXCEPTIONCODE" UniqueName="EXCEPTIONCODE">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateReceived" DataType="System.DateTime"
            FilterControlAltText="Filter DateReceived column" HeaderText="Date Received"
            SortExpression="DateReceived" UniqueName="DateReceived">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateCoded" DataType="System.DateTime"
            FilterControlAltText="Filter DateCoded column" HeaderText="Date Coded"
            SortExpression="DateCoded" UniqueName="DateCoded">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateHeld" DataType="System.DateTime"
            FilterControlAltText="Filter DateHeld column" HeaderText="Date Held"
            SortExpression="DateHeld" UniqueName="DateHeld">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateReleased" DataType="System.DateTime"
            FilterControlAltText="Filter DateReleased column" HeaderText="Date Released"
            SortExpression="DateReleased" UniqueName="DateReleased">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
 
 
</asp:Content>
Princy
Top achievements
Rank 2
 answered on 02 Nov 2011
2 answers
1.6K+ views
Hi,
In our application we are using rad window, In some cases we need to increase the height of window
as for ex: to show the error message we need to increase the height of window. But we do not want to increase the height of rad window by setheight or setsize command of rad window.
Instead of it is there any other way that set the rad window's height on the based on page contents? Is there any property that automatically set the height of rad window on the based on its page content ?

Thanks,
Jalpesh
Jeremy
Top achievements
Rank 1
 answered on 02 Nov 2011
1 answer
104 views
I need to create a menu/page that lists countries grouped by Continents.
What control would work best for this task?

Thanks.
Princy
Top achievements
Rank 2
 answered on 02 Nov 2011
1 answer
198 views
How can i change the font color of the text in filter textbox in radgrid filtering?
Shinu
Top achievements
Rank 2
 answered on 02 Nov 2011
3 answers
377 views
I have a query that takes about 1.5 minutes in my datasource. It's not a large amount of data just an SSAS query that takes a while to process.

I am calling Rebind immediately after assigning datasource.

Rebind throws a timeout error at Rebind:
GridGSRComp_DataSource = new SqlDataSource(GetConnectionString()+";Connect Timeout=3000; pooling='true'; Max Pool Size=200", "GetGSRComparison " + Convert.ToInt32(ddlViewBy.SelectedValue) + ", " + Convert.ToInt32(calFrom.SelectedDate.Value.ToString("yyyyMMdd")) + ", " + Convert.ToInt32(calTo.SelectedDate.Value.ToString("yyyyMMdd")));
grdGSRComp.Rebind();

As you can see I'm setting it in the Connection string, but this does not help.

Can I set a timeout somewhere else in the radgrid or somewhere that rebind references?

Thanks!

Ken
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
284 views
Hi there.

We have a Sharepoint application page and within the main content placeholder we want to host a RadWindow. Opening this window will show the user a search screen where they can enter a couple of parameters and when hitting "search" a Grid will be populated.
If we test the code in a separate page it all works fine, including paging and sorting the Grid's results (we want Ajax postbacks).

However when we have the same markup and same code included within the RadWindow, binding the Grid for the first time works, but then paging and sorting events never happen, the Grid just disappears. Here's the markup (simplified) in the page we're trying it to work:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSearchSIC">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdTelerik" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grdTelerik">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdTelerik" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

...

    <telerik:RadWindow runat="server" ID="RadWindow_ContentTemplate" Skin="Vista" KeepInScreenBounds="true" VisibleOnPageLoad="false" Modal="true" Title="Search Client"
        Behaviors="Close,Maximize,Move" Width="500" Height="500">
        <ContentTemplate>
            <div>
                SIC Code: <telerik:RadTextBox ID="txtSICCode" runat="server" Text="" EmptyMessage="Enter SIC code" MaxLength="20" ShowButton="false" Skin="Vista"></telerik:RadTextBox><br />
                SIC Description: <telerik:RadTextBox ID="txtSICDescription" runat="server" Text="" EmptyMessage="Enter SIC description" MaxLength="20" ShowButton="false" Skin="Vista"></telerik:RadTextBox><br />
                <telerik:RadButton ID="btnSearchSIC" runat="server" Skin="Vista" Text="Search" ToolTip="Search SIC" AutoPostBack="true" OnClick="btnSearch_Click">
                </telerik:RadButton><br /><br />
                <telerik:RadGrid
                    ID="grdTelerik" runat="server"
                    Skin="Vista"
                    ShowStatusBar="true"
                    AllowSorting="true"
                    AllowPaging="true"
                    PageSize="10"
                    OnSortCommand="grdTelerik_SortCommand"
                    OnPageIndexChanged="grdTelerik_PageIndexChanged">
                        <PagerStyle Mode="NumericPages"></PagerStyle>
                        <MasterTableView ClientDataKeyNames="Amount,Name"></MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true">
                            <Selecting AllowRowSelect="true" />
                            <ClientEvents OnRowDblClick="RowDblClick" />
                        </ClientSettings>
                </telerik:RadGrid>
            </div>
        </ContentTemplate>
    </telerik:RadWindow>

And pretty much the code behind is about binding data to the grid (currently testing with Northwind).
Separately, in a simple ASPX page it all works, but here it doesn't:

        private void LoadData()
        {
            ISampleProvider provider = UnityHelper.Resolve<ISampleProvider>();
            this.grdTelerik.DataSource = provider.GetCustomerOrderHistoryByName("ANTON");
            this.grdTelerik.DataBind();
        }
 
        protected void grdTelerik_PageIndexChanged(object source, Telerik.Web.UI.GridPageChangedEventArgs e)
        {
            LoadData();
        }
 
        protected void grdTelerik_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
        {
            LoadData();
        }
 
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            LoadData();
        }

Any clues on what can be happening? Why are the events not triggering?

Thank you very much.
Sharepoint Developer
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
306 views
Hi,
I am trying to create a RadTabstrip dynamically and add it to a placeholder.  Tab pages donot show  up , given below is my code .


        protected void Page_Init(object source, System.EventArgs e)
        {
 
            string tableName = "Ticket";
            Panel currentPanel = new Panel();
            currentPanel.ID = tableName + "Panel3";

            RadTabStrip currentTabStrip = new RadTabStrip();
            currentTabStrip.ID = "RadTabStrip1";

            RadMultiPage currentMultiPage = new RadMultiPage();
            currentMultiPage.ID = "MultiPage1";
          
            currentTabStrip.MultiPageID =MultiPage1;
            currentMultiPage.Width = Unit.Percentage(80);
            currentMultiPage.Height = Unit.Percentage(60.0);
            currentMultiPage.SelectedIndex = 0;
            currentTabStrip.SelectedIndex = 0;
          
          string sql = "Select * from Table1";
          DataTable dt = di.GetDataTable(sql);
            int count = 0;
            foreach (DataRow currentRow in dt.Rows)
            {
                string foreignTable = currentRow["foreigntab"].ToString();

                RadTab currentTab = new RadTab();
                currentTab.Text = foreignTable;
             
                RadPageView currentPageView = new RadPageView();
                currentPageView.ID = "pageView" + (count as string)  ;
               
                currentPageView.Width = Unit.Pixel(400);
                currentPageView.Height = Unit.Pixel(300);
                currentPageView.ContentUrl = "http://www.telerik.com/";
           
               currentTab.PageViewID = "pageView" + (count as string)  ;

                currentMultiPage.PageViews.Add(currentPageView);
                currentTabStrip.Tabs.Add(currentTab);
 
                count++;
            }

Any idea?
Prava
Prava kafle
Top achievements
Rank 1
 answered on 01 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?