Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
298 views
Hello,

I'm having trouble using the Asp.net validators with Telerik RadAjaxManager. The messages are "duplicated" after ajax requests.

I have an example to explain.
<telerik:RadScriptManager ID="telerik_ajax_manager" runat="server"/>
 
<telerik:RadAjaxLoadingPanel ID="ajax_loading_panel" Enabled="true" runat="server" MinDisplayTime="1000"         BackColor="#cccccc" Transparency="50"></telerik:RadAjaxLoadingPanel>
 
<asp:ValidationSummary ID="validator_summary" runat="server" />
 
<div id="div_test_1" runat="server" style="border-style:solid;border-color:Black;padding:20px;">
    Test 1:
    <asp:TextBox ID="txt_test_1" runat="server" OnTextChanged="txt_test_1_TextChanged" AutoPostBack="true"></asp:TextBox>
    <asp:Literal ID="ltl_test_1" runat="server"></asp:Literal>
    <asp:RequiredFieldValidator ID="rfv_test_1" runat="server" ControlToValidate="txt_test_1" Display="None"            ErrorMessage="RequiredFieldValidator Test 1"></asp:RequiredFieldValidator>
</div>
<br />
<div id="div_test_2" runat="server" style="border-style:solid;border-color:Black;padding:20px;">
    Test 2:
    <asp:TextBox ID="txt_test_2" runat="server" OnTextChanged="txt_test_2_TextChanged" AutoPostBack="true"></asp:TextBox>
    <asp:Literal ID="ltl_test_2" runat="server"></asp:Literal>
    <asp:RequiredFieldValidator ID="rfv_test_2" runat="server" ControlToValidate="txt_test_2" Display="None"            ErrorMessage="RequiredFieldValidator Test 2"></asp:RequiredFieldValidator>
</div>
<br />
<br />
<asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_Click" Text="Submit" />
 
<telerik:RadAjaxManager ID="ajax_manager" runat="server" DefaultLoadingPanelID="ajax_loading_panel">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="txt_test_1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="div_test_1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="txt_test_2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="div_test_2" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

protected void Page_Load(object sender, EventArgs e)
{}
 
protected void btn_submit_Click(object sender, EventArgs e)
{}
 
protected void txt_test_1_TextChanged(object sender, EventArgs e)
{
    ltl_test_1.Text = txt_test_1.Text;
    txt_test_1.Text = null;
}
 
protected void txt_test_2_TextChanged(object sender, EventArgs e)
{
    ltl_test_2.Text = txt_test_2.Text;
    txt_test_2.Text = null;
}


The page has two updateable areas, each area has a textbox and a Asp.net validator, and each textbox triggers an ajax request updating your area.
If you type something in Test 1, its area will be updated, so if you click the submit button, the summary will show twice the message of the field Test 2 (which has not been updated). Each ajax generates another message.

I verified that this only occurs when the validator is inside an updateable area that is not being updated at this time. Also checked that when you are updating an area, the request create (then duplicating) all the validators that are located in other areas, when the validator is not in an updateable area, it is not created in ajax request.

What could I do?
Andrey
Telerik team
 answered on 02 Jul 2012
4 answers
136 views

I am currently using a radsplitter between two RadPanes in my application.

Currently , the scrollbars on the individual RadPanes are visible as highlighted in the attached screenshot . However I want that the scrollbars on the individual RadPane should not appears irrespective of the contents in it and use the browser scrolling instead and expand according to content(i.e. even if the contents crosses the screenlimit the Radpane should not enable its scrolling and instead use browser scrollbars).

Is there any way in which the above mentioned requirement can be achieved?

Thanking you in advance

Dobromir
Telerik team
 answered on 02 Jul 2012
3 answers
222 views
Hi,

I have a rad grid that I am putting into edit mode on row double click.  This functionality works great until I put and InsertItemTemplate on any of the fields.

When I put an InsertItemTemplate on any of the fields and then double click the row to put it into edit mode I get the following javascript error.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

   _endPostBack: function PageRequestManager$_endPostBack(error, executor, data) {
        if (this._request === executor.get_webRequest()) {
            this._processingRequest = false;
            this._additionalInput = null;
            this._request = null;
        }

        var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, data ? data.dataItems : {}, executor);
        Sys.Observer.raiseEvent(this, "endRequest", eventArgs);
        if (error && !eventArgs.get_errorHandled()) {
            throw error;
        }
    },



Below is a stripped down version of my grid.  Can you please take a look and tell me what I am doing wrong.
Thank you for you assistance.

Tracy
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="QBF PRJ Forecasting Bak1.aspx.vb" Inherits="IPS_Gateway.QBF_PRJ_Forecasting_Bak1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head id="Head1" runat="server">
    <title></title>
</head>
     
    <script src="../../Scripts/ControlSelectOnFocus.js" type="text/javascript"></script>
    <script  type="text/javascript" >
 
    function RowDblClick(sender, eventArgs) {
        editedRow = eventArgs.get_itemIndexHierarchical();
        $find("<%= rgvMainGrid.ClientID %>").get_masterTableView().editItem(editedRow);
    }
    function CancelEdit(sender, args) {
        var c = confirm("Are you sure you want to cancel your changes>");
        if (c == true) {
            $find("<%= rgvMainGrid.ClientID %>").get_masterTableView().cancelAll();
        }
    }
    function GridCommand(sender, args) {
         
        if (args.get_commandName() != "Edit") {
            editedRow = null;
        }
        
    }
    </script>
    
 
<body>
    <form id="form1" runat="server">
 <act:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true" AsyncPostBackTimeOut="600"/>
    <telerik:RadWindowManager ID="rwmManager" runat="server"></telerik:RadWindowManager
 
        <asp:SqlDataSource ID="SQLDS_ForecastedCostEntry"     runat="server"  ConnectionString="<%$ ConnectionStrings:IPSDataConnectionString %>" SelectCommandType="StoredProcedure" SelectCommand="[Project].[DSP_ForecastedHoursEntry-Sel]" />
        <asp:SqlDataSource ID="SQLDS_ForecastedCostUpdate"    runat="server"  ConnectionString="<%$ ConnectionStrings:IPSDataConnectionString %>" SelectCommandType="StoredProcedure" SelectCommand="[Project].[DSP_ForecastedHoursEntry-Ins-Upd]" />
 
    <asp:panel ID="pnlPage"   runat="server"  cssClass="css_GPC01_Panel_MainContent">     
    <wuc:PageHeader id="wucPageHeader" runat="server"></wuc:PageHeader>           
            <asp:Panel ID="pnlPageContent"         runat="server"     cssClass="css_GPC01_Panel_PageContent" >
     
<telerik:RadAjaxPanel ID="rapMainGrid" runat="server">
 
                    <telerik:RadGrid ID="rgvMainGrid"          runat="server"  DataSourceID="SQLDS_ForecastedCostEntry"
                                         EnableEmbeddedSkins="true"         Skin="Office2010Silver"            Height="400px"  Width="1230px"
                                         EnableViewState="true"             AutoGenerateColumns="false"     AllowMultiRowSelection="false"     
                                         AllowAutomaticDeletes="false"      AllowAutomaticInserts="true"    AllowAutomaticUpdates="true"        EnableLinqExpressions="false"                                                                       
                                         EnableHeaderContextMenu="true"     
                                         AllowFilteringByColumn="false"    
                                                     AllowPaging="true"                  PageSize="1000">                                 
                             
                            <HeaderStyle Font-Bold="true" HorizontalAlign ="Center"  VerticalAlign="Middle" Wrap="false" font-size="10px"/>
                            <ItemStyle HorizontalAlign="Right" />
                            <AlternatingItemStyle HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Center"  Width="40px"/>
                            <PagerStyle AlwaysVisible="true"    Mode="NextPrevNumericAndAdvanced"/>
                            <FooterStyle HorizontalAlign="Right" />
                            <ClientSettings AllowColumnsReorder="true"   AllowDragToGroup="false"  AllowColumnHide="false" ReorderColumnsOnClient="true" EnablePostBackOnRowClick="false"  AllowExpandCollapse="true"
                            EnableRowHoverStyle  = "true" >
                             
                                <ClientEvents   OnCommand="GridCommand" OnRowDblClick="RowDblClick" />
                                <Selecting  AllowRowSelect="true" />                               
                                <Resizing   AllowColumnResize="True"    AllowRowResize="False"          ResizeGridOnColumnResize="false" EnableRealTimeResize="True"      ></Resizing>                                     
                                <Scrolling  AllowScroll="True"          UseStaticHeaders="True"         SaveScrollPosition="true"       FrozenColumnsCount="4" />
                            </ClientSettings>
                            <MasterTableView    DataSourceID="SQLDS_ForecastedCostEntry"           Name="MasterGrid"
                                                EnableViewState="true"                   ShowFooter="true"  ShowGroupFooter="true" ShowHeadersWhenNoRecords="true"                             
                                                EditMode="InPlace"                      CommandItemDisplay="Top"   TableLayout="Fixed">                                                               
                            <CommandItemTemplate>
                                <asp:Table ID="tblCommandTemplate" runat="server" Width="1230px" CellSpacing="0" CellPadding="0">
                                    <asp:TableRow ID="trowCommandTemplate1" Height="25px" runat="server" style="display:block;"  >
                                        <asp:TableCell >
                                            <telerik:RadButton ID="rbtAdd"             runat="server" CommandName="InitInsert"       Skin="Transparent" Text="Add"              Icon-PrimaryIconURL="<%$ Resources:Images,AddRecord16%>"    style="position:absolute;left:10px;font-size:12px;"  ToolTip="Add New Record"       />  
                                            <telerik:RadButton ID="rbtCancel"          runat="server"  OnClientClicked="CancelEdit"        Skin="Transparent" Text="Cancel"           Icon-PrimaryIconURL="<%$ Resources:Images,CancelRecord16%>" style="position:absolute;left:10px;font-size:12px;"  ToolTip="Cancel Add/Edit"    Visible='<%# rgvMainGrid.EditIndexes.Count > 0 Or rgvMainGrid.MasterTableView.IsItemInserted %>'    AutoPostBack="false" />  
                                            <telerik:RadButton ID="rbtSaveNew"         runat="server" CommandName="PerformInsert"    Skin="Transparent" Text="Save"             Icon-PrimaryIconURL="<%$ Resources:Images,SaveRecord16%>"   style="position:absolute;left:80px;font-size:12px;"  ToolTip="Save New Record"    Visible='<%# rgvMainGrid.MasterTableView.IsItemInserted%>'                                           />   
                                            <telerik:RadButton ID="rbtSave"            runat="server" CommandName="UpdateEdited"      Skin="Transparent" Text="Save"             Icon-PrimaryIconURL="<%$ Resources:Images,SaveRecord16%>"   style="position:absolute;left:80px;font-size:12px;"  ToolTip="Save Edited Record" Visible='<%# rgvMainGrid.EditIndexes.Count > 0 AND Not rgvMainGrid.MasterTableView.IsItemInserted%>'/>  
                                            </asp:TableCell>
                                        </asp:TableRow>
                                </asp:Table>
                            </CommandItemTemplate>
                                    <Columns>  
                                        <telerik:GridBoundColumn    DataField="Job"                              UniqueName="Job"                            HeaderText="Job" />                       
                                        <telerik:GridBoundColumn    UniqueName="Extra"        DataField="Extra"      Display="true" />                        
  
                                        <telerik:GridBoundColumn    DataField="CostCode"                        UniqueName="CostCode"                       HeaderText="Cost Code"                                                 HeaderStyle-Width="70px"   ItemStyle-HorizontalAlign="Left"   ReadOnly="true" />                                   
 
                                        <telerik:GridTemplateColumn     UniqueName="EmployeeName"   HeaderText="EmployeeName"  DataField="EmployeeName"  HeaderStyle-Width="150px"   >
                                           <ItemTemplate>
                                                <asp:Label ID="lblEmployeeName" runat="server" Text='<%# Bind("EmployeeName") %>' />
                                            </ItemTemplate>
                                            <InsertItemTemplate>
                                                <asp:TextBox ID="txtTest" runat="server"   />
                                            </InsertItemTemplate>
                                             
                                        </telerik:GridTemplateColumn>
                                </Columns>                               
                            </MasterTableView>
                        </telerik:RadGrid>
</telerik:RadAjaxPanel>
            <telerik:GridNumericColumnEditor ID="HrsEditor" runat="server"  >
               
        </telerik:GridNumericColumnEditor>
            </asp:Panel>
      
 
    </asp:panel>
    </form>
</body>
</html>

Shinu
Top achievements
Rank 2
 answered on 02 Jul 2012
0 answers
162 views
Hello all,

I am trying to develop an application that allows user to search and filter through the whole list of reports and grabs the rows and data the user wants and then allowing the user to export to CSV for documentation, but it appears that when I use the function radGrid2.MasterTableView.ExportToCSV(); it doesnt seem to export, but instead it appears on the page itself. I have tried to bind another static radgrid, a pop up appears allowing user to save or open, subsequently i suspected that it could be due to the grid image or null cells that could cause the issue but it did not as i stripped them all off. It did not help at all still.

i have attached a screenshot of the output of the button click, instead a pop up that allows user to save or open file, it appears on the web application itself.
output csv

my code is as below:
 <telerik:RadGrid ID="RadGrid1" Width="100%" Height="100%" EnableEmbeddedSkins="false"
                Skin="PQWS" AllowPaging="True" runat="server" GridLines="None" CellSpacing="0"
                AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand"
                AllowSorting="true" OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged">
                <PagerStyle Mode="NextPrevAndNumeric" />
                <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <ExportSettings>    
    <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" FileExtension="TXT" EncloseDataWithQuotes="false" />
</ExportSettings>
                <MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="CRN" AllowMultiColumnSorting="true">
                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center"
                            HeaderText="1" UniqueName="New" AllowFiltering="false">
                            <ItemTemplate>
                                <asp:Image ID="HighLight_Image" runat="server" ImageUrl="~/_layouts/PQWS/images/Highlight.gif" AlternateText="AltText" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" 
                            HeaderText="2" AllowFiltering="false" UniqueName="TrafficLight">
                            <ItemTemplate>
                                <asp:Image ID="TrafficLight_Image" runat="server" Visible="false" AlternateText="AltText"/>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="ReadFlag" UniqueName="ReadFlag" Visible="FALSE" />
                        <telerik:GridBoundColumn HeaderText="" DataField="HoldingReplySent" UniqueName="HoldingReplySent"
                            Visible="FALSE" />
                        <telerik:GridBoundColumn DataField="CRN" HeaderText="CRN" UniqueName="CRN" HeaderStyle-Width="12%" ShowSortIcon="true" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif" />                        
                        <telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name" ShowSortIcon="true" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif">
                            <HeaderStyle Width="15%" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Description" DataField="Description" UniqueName="CaseType"
                            ShowSortIcon="true" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif"/>
                        <telerik:GridBoundColumn HeaderText="Start Date" DataField="StartDate" DataFormatString="{0:dd-MMM-yyyy}" UniqueName="StartDate"
                            ShowSortIcon="true" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Closed Date" DataField="ClosedDate" DataFormatString="{0:dd-MMM-yyyy}" UniqueName="ClosedDate" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Elapsed Day(s)/Case Turnaround Time" DataField="DaysPending"
                            UniqueName="DaysPending" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif">
                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                            <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Department(s) Assigned" DataField="DepartmentsAssigned"
                            UniqueName="DepartmentAssigned" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif"/>
                        <telerik:GridBoundColumn HeaderText="Status" DataField="Status" UniqueName="Status" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif">
                            <HeaderStyle Width="15%" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="UploadedToPQL" UniqueName="UploadedToPQL" Visible="false"  SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif"/>                        
                        <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="100px"
                            HeaderText="Action" AllowFiltering="false" SortAscImageUrl="~/_layouts/PQWS/images/arr_up.gif" SortDescImageUrl="~/_layouts/PQWS/images/arr_dn.gif" UniqueName="Action">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageUpload" Width="20" runat="server" ImageUrl="~/_layouts/PQWS/images/Upload.png"
                                    CommandName="Upload" AlternateText="AltText" />&nbsp;<asp:ImageButton ID="ImageClose" Width="20" runat="server" ImageUrl="~/_layouts/PQWS/images/Close.PNG"
                                        CommandName="Close" AlternateText="AltText"/>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="8%" />
                            <ItemStyle HorizontalAlign="Center" />
                            <%--  <ItemStyle HorizontalAlign="Center" />--%>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

Chong
Top achievements
Rank 1
 asked on 02 Jul 2012
2 answers
140 views
Hi,

    I am using Telerik RadControls for ASP.NET AJAX Q2 2011 components in my .NET 4 web application and am trying to show a simple progress bar while executing a long lasting procedure.
I followed instructions in you "Upload / Monitoring Custom Progress" demo, but can't seem to make it work. Progress bar shows normaly, but the updated values don't show on screen (the original values remain till the end of execution).
I searched on forums but was unable to find a suitable solution. I suspect that there is something wrong with my web.config, but can't figure out what.

Here is a part of my web.config:

<

 

 

httpModules>

<

 

 

add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>

 

 

 

</

 

 

 

httpModules>

<

 

 

httpHandlers>

 

 

 

 

 

<

 

 

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

<

 

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>

<

 

 

add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>

 

 

 

 

<

 

 

add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

</

 

 

httpHandlers>




<

 

 

modules>

 

 

 

 

 

<

 

 

add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>

</

 

 

modules>

<

 

 

handlers>

 

 

 

 

<

 

 

add name="Telerik_Web_UI_WebResource_axd" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

<

 

 

add name="Telerik_Web_UI_DialogHandler_aspx" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

<

 

 

add name="ChartImage_axd" preCondition="integratedMode" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

 

 

<

 

 

 

add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>

</

 

 

handlers>

Thanks for your help,
Marko
Marko
Top achievements
Rank 1
 answered on 02 Jul 2012
1 answer
116 views
Hi team,

When I filter the grid by GridDateTime column with "EqualTo" operator and issue only happened with it, the result is right but they are not showed on grid. The total-item on grid is right. Please view my attachment.

In aspx page:
<telerik:RadGrid ID="grid" runat="server" Width="100%" AllowPaging="true" AllowCustomPaging="true"
         ShowGroupPanel="true" AllowFilteringByColumn="true" AllowSorting="true" OnNeedDataSource="grid_NeedDataSource"
                 OnItemCommand="grid_ItemCommand" EnableLinqExpressions="false">
                    <ClientSettings AllowDragToGroup="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true"
                        ColumnsReorderMethod="Reorder">
                        <Animation AllowColumnReorderAnimation="true" AllowColumnRevertAnimation="true" />
                        <ClientEvents OnFilterMenuShowing="FilterMenuShowing" />
                    </ClientSettings>
                    <GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" />
                    <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" EnableHeaderContextMenu="true" DataKeyNames="InstructorProfileID">
                        <PagerStyle AlwaysVisible="true" />
                        <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" ShowExportToExcelButton="true" />
<Columns>
<telerik:GridDateTimeColumn UniqueName="DateLastLogin" HeaderText="Date of Last Login" SortExpression="DateLastLogin" GroupByExpression="DateLastLogin Group By DateLastLogin"
                                            DataField="DateLastLogin" FilterControlWidth="80%" DataType="System.DateTime" PickerType="DatePicker"/>
<telerik:GridTemplateColumn UniqueName="ReviewStatus" HeaderText="Review Status" SortExpression="ReviewStatus" GroupByExpression="ReviewStatus Group By ReviewStatus"
                                            FilterControlWidth="80%" HeaderStyle-Width="190px" DataField="ReviewStatus" DataType="System.String">
                                <ItemTemplate>
                                    <asp:Label ID="lblReviewStatus" runat="server" Text='<%# Eval("ReviewStatus")%>'/>
                                </ItemTemplate>
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="rcboFilterOptions" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rcboFilterOptions_SelectedIndexChanged">
                                        <Items>
                                            <telerik:RadComboBoxItem Value="ViewAll" Text="View All" />
                                            <telerik:RadComboBoxItem Value="Mine" Text="Mine" />
                                            <telerik:RadComboBoxItem Value="InProgress" Text="In Progress" />
                                            <telerik:RadComboBoxItem Value="NotProcessed" Text="Not Processed" />
                                            <telerik:RadComboBoxItem Value="MissCert" Text="Missing Presentation Skills Certificate" />
                                            <telerik:RadComboBoxItem Value="Accepted" Text="Accepted" />
                                            <telerik:RadComboBoxItem Value="Denied-HPCP" Text="Denied-HPCP" />
                                            <telerik:RadComboBoxItem Value="Denied-PSC" Text="Denied-PSC" />
                                            <telerik:RadComboBoxItem Value="Denied-No Sponsor" Text="Denied-No Sponsor" />
                                            <telerik:RadComboBoxItem Value="Denied-PSC AND HPCP" Text="Denied-PSC AND HPCP" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </FilterTemplate>
                            </telerik:GridTemplateColumn>
</Columns>
                            </MasterTableView>
                </telerik:RadGrid>


In Code Behind:
protected void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
      var totalItem = 0;
      var dataSource = this.InstructorProfileStatusInfoService
                             .GetInstructorProfileStatusInfoCollection(grid.CurrentPageIndex
                                                                        , grid.PageSize
                                 , this.CurrentCriteria
                                                                        , this.UserId, out totalItem);
       grid.DataSource = dataSource ;
            grid.VirtualItemCount = totalItem;
        }
 
protected void rcboFilterOptions_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 {
            this.grid.CurrentPageIndex = 0;
            var combo = sender as RadComboBox;
            GridFilteringItem filterItem = combo.NamingContainer as GridFilteringItem;
            filterItem.FireCommandEvent(RadGrid.FilterCommandName, new Pair { First = GridKnownFunction.EqualTo.ToString(), Second = "ReviewStatus" });
}
protected void grid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
            if (e.CommandName == RadGrid.FilterCommandName)
            {
                    this.grid.Rebind();
            }
 }

Please help me to solve.
Thanks.

zorro
Top achievements
Rank 1
 answered on 02 Jul 2012
4 answers
162 views
Hi,

I have a RadGrid with three levels. There is one DropDownList in the second level and another one in the third level. The combo in the third level has to be filtered based on the selection in the combo of second level. I tried a few methods but didn't help. I am using SQlDataSource to fill both these combos and having trouble setting the select parameter of the third level combo dynamically

Could you please help?

Thanks
Meera
Tsvetoslav
Telerik team
 answered on 02 Jul 2012
1 answer
118 views
Hi there,
I have a master page with a rotator of type CarouselButtons on it who controls the site navigation.
Master page contains an IFrame where main contents are loaded. Here I have a RadGrid control to populate data, based on selected item in RadRotator.
At the moment, I have wraped the rotator with asp:CollapsiblePanelExtender so that user can collapse and expand the Rotator.
When Rotator is collapsed, Datagrid moves up to take the empty space and when it expands, datagrid moves down. This works fine.
I would like to achieve the following,
  • When Rotator expands, instead of taking its own space and moving the grid down, it comes on top of the Grid.
  • Is such control overlapping possible in situtation where Rotator and Grid resides in different pages i.e. Grid in IFrame & rotator in master page.
I would apperciate, if you could provide me a sample code, where I could see it running.

Best regards,
Slav
Telerik team
 answered on 02 Jul 2012
2 answers
129 views
I have written a code to close radwindow on button click this is my design 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="radwndAjax.aspx.cs" Inherits="radwndAjax" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="Script1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadCodeBlock ID="radcode" runat="server">
            <script type="text/javascript">
                function OpenSuperSeeding() {
                    var wnd = $find("<%= RadWindow1.ClientID%>");
                    wnd.Close();
                }
            </script>
        </telerik:RadCodeBlock>
        <telerik:RadButton ID="btn" runat="server" OnClick="btn_Click" Text="Open">
        </telerik:RadButton>
        <telerik:RadWindow runat="server" ID="RadWindow1">
            <ContentTemplate>
                <asp:UpdatePanel ID="Updatepanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:Button ID="Button1" Text="Click for AJAX" runat="server" OnClick="Button1_Click" />
                        <br />
                        <asp:Label ID="Label1" Text="I will be updated" runat="server" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </telerik:RadWindow>
        <asp:Label ID="Label2" Text="I will not be updated" runat="server" />
    </div>
    </form>
</body>
</html>

My code is as follows

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class radwndAjax : System.Web.UI.Page
{
    bool m_flag = true;
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void btn_Click(object sender, EventArgs e)
    {
        RadWindow1.VisibleOnPageLoad = true;
    }
 
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (m_flag)
        {
            RadWindow1.VisibleOnPageLoad = false;
            Button1.OnClientClick = "OpenSuperSeeding(); return false;";
        }
        else
        {
            Label1.Text = DateTime.Now.ToString();
            Label2.Text = DateTime.Now.ToString();
        }
    }
}

But on first click radwindow is not getting closed, on the second click it is getting closed can some one help me..
rdmptn
Top achievements
Rank 1
 answered on 02 Jul 2012
3 answers
121 views
I have a RadListView with RadDataPager and SeoPaging set to true. I also have a RadTooltip on every row and as you know it wont work properly in IE if Tooltip target controls are not cleared when user change page or sort columns. IE do not change the tooltip data between pages if tooltip target controls arent cleared between page changes. The problem is RadListView itemcommand event is not firing when SeoPaging is set to true. So I cant clear Tooltip target controls in that event. Is this a bug and is there another event where I can clear the target controls so Tooltip would work properly in IE?
Maria Ilieva
Telerik team
 answered on 02 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?