Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi,
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSubmit">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gvStaff" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panMessage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="gvStaff">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panMessage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
           
        </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Style="position: absolute;
        top: 200px; left: 600px;" IsSticky="True">
        <div class="overlay" id="divProgress" style="position: absolute; visibility: visible;
            vertical-align: middle; border-style: inset; border-color: black; background-color: White;
            width: 200px; height: 100px; font-size: medium;">
            <center>
                <div style="margin-top: 30px;">
                    <asp:Image GenerateEmptyAlternateText="true" ID="imgLoader" runat="server" ImageUrl="~/images/ajax_loading.gif"
                        Style="margin-top: 7px;" />  
                    <asp:Label ID="lblWait" runat="server" Text="Please wait..."></asp:Label>
                </div>
            </center>
        </div>
    </telerik:RadAjaxLoadingPanel>
 
 
<telerik:RadGrid ID="gvStaff" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellSpacing="0" GridLines="None" Width="100%" PageSize="20" Visible="False" AllowSorting="true">
            <MasterTableView AllowMultiColumnSorting="true">
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridButtonColumn Text="Select" CommandName="Select">
                    </telerik:GridButtonColumn>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="StaffID"
                        UniqueName="TemplateColumn" SortExpression="StaffID">
                        <ItemTemplate>
                            <asp:Label ID="staffID" runat="server" Text='<%# Bind("StaffID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Justify" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Staff Name"
                        UniqueName="TemplateColumn" SortExpression="Name">
                        <ItemTemplate>
                            <asp:Label ID="Name" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Justify" />
                    </telerik:GridTemplateColumn>
                  </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <HeaderStyle HorizontalAlign="Justify" />
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
The radAjaxLoadingPanel not working when the search button is click and the radgrid will display out the result. The loading panel only working when click the submit button second time after the page load. Please help. Thanks.
Eyup
Telerik team
 answered on 23 Oct 2012
1 answer
149 views
Hi,
The Rad editor's dialog box not displaying properly in any brower other than IE.
Can anybody help me on this issue.Observe attached image.

My config setting are,

<httpHandlers>
      <remove path="*.asmx" verb="*" />
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false" />
      <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>

<handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <remove name="ChartImageHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
    </handlers>

Regards,
Anwar
Rumen
Telerik team
 answered on 23 Oct 2012
7 answers
1.2K+ views
Setting CssClass in several RadGrid Properties does not work
When I set CssClasss to "hdr1" I get a bogus string and the class does not work.

    <div id="RadGrid1" class="RadGrid_Default hdr1">

What is adding the RadGrid_Default?
How do I get rid of it?

How do I set custom CssClass in various properties?
   ---  in the Grid itself, in MasterTableView, in HeaderStyle



Sunil
Top achievements
Rank 1
 answered on 23 Oct 2012
1 answer
257 views

 

Hi Friends,

 

I want to display ajax loading...page, when i click button to show RadGrid. Its not working when i click a button, page was going to serverside and showed the RadGrid o/p. Now again click a button its showing the ajax loading.. My question is why its not showing first time button click.  Can you please suggest me the solution.

My Code is Below: (I am using Master Page)
==================
<%@ Page Title="" Language="C#" MasterPageFile="~/Complaint.Master" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="NewProducts.Products.Products" %>

 

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_Main" runat="server">

<asp:Label ID="lblPageError" Text="" runat="server" ForeColor="Red"></asp:Label>

<div id="divproducts" runat="server">

<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>

<td colspan="3">

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="btnSearch">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="customerInformation" LoadingPanelID="RadAjaxLoadingPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

</td>

</tr>

<tr>

<td >Order ID</td>

<td>

<telerik:RadTextBox ID="tbOrderID" runat="server" ToolTip="Enter Order ID">

</telerik:RadTextBox>

</td>

<td >

<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" ToolTip="Click here to Search Rolls Information" /></td>

</tr>

<tr>

<td align="center" align="center" colspan="3">

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" InitialDelayTime="0" MinDisplayTime="1000" Transparency="25" IsSticky="true">

<asp:Image ID="imgRadAjaxLoadingPanel1" runat="server" ImageUrl="~/Images/loading.gif" />

</telerik:RadAjaxLoadingPanel>

</td>

</tr>

<tr>

<td>

<asp:UpdatePanel ID="updPnlcustomerInformation" runat="server">

<ContentTemplate>

<telerik:RadPanelBar runat="server" ID="rpbRollsInformation" Skin="Metro" Width="100%">

<Items>

<telerik:RadPanelItem Value="RollsInformation" Selected="true" Text="Roll Information" runat="server" Expanded="true">

<ContentTemplate>

<div id="divRollsInformation" runat="server">

<table id="tblcustomerInformation" runat="server" width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>

<td>

<telerik:RadGrid ID="customerInformation" runat="server" AutoGenerateColumns="false" CellPadding="0" CellSpacing="0" GridLines="None" CssClass="RadGrid_CBGrid" Skin="Metro" HorizontalAlign="Left" FooterStyle-BorderColor="Black" AutoGenerateHierarchy="true" OnItemDataBound="customerInformation_ItemDataBound">

<MasterTableView>

<NestedViewTemplate>

<uc:Comments ID="orders" runat="server" />

</NestedViewTemplate>

<Columns>

<telerik:GridTemplateColumn DataField="ID" FilterControlAltText="Filter ID column" HeaderText="ID" UniqueName="ID">

<HeaderStyle HorizontalAlign="Center" />

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

<asp:Label ID="lblID" runat="server" Text='<%# Bind("ID") %>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn DataField="Date" FilterControlAltText="Filter Date column" HeaderText="Date" UniqueName="Date">

<HeaderStyle HorizontalAlign="Center" />

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

<asp:Label ID="lblDate" runat="server" Text='<%# Bind("Date") %>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn DataField="order_id" FilterControlAltText="Filter order_id column" HeaderText="Order" UniqueName="order_id">

<HeaderStyle HorizontalAlign="Center" />

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

<asp:Label ID="lblorder_id" runat="server" Text='<%# Bind("order_id") %>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Product Type">

<HeaderStyle HorizontalAlign="Center" />

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

<telerik:RadComboBox ID="cboProduct" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cboProduct_OnSelectedIndexChanged">

</telerik:RadComboBox>

<asp:Label ID="lblProduct" Visible="false" runat="server" Text='<%# Bind("product") %>'></asp:Label>

<asp:CompareValidator runat="server" ID="CompaValcboProduct" ValueToCompare="-Select-" Operator="NotEqual" ControlToValidate="cboProduct" ErrorMessage="Select ProductType" Text="*" ValidationGroup="Save" ForeColor="Red" Visible="false" />

<telerik:RadTextBox ID="tbProduct" runat="server" Visible="false">

</telerik:RadTextBox>

<asp:RequiredFieldValidator ID="rfvtbProduct" runat="server" ControlToValidate="tbProduct" ValidationGroup="Save" ErrorMessage="Enter Procuct Type" Text="*" ForeColor="Red" Enabled="false"></asp:RequiredFieldValidator>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

<ClientSettings EnableRowHoverStyle="true">

<%--<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" />--%>

</ClientSettings>

</telerik:RadGrid>

</td>

</tr>

</table>

</div>

</ContentTemplate>

</telerik:RadPanelItem>

</Items>

</telerik:RadPanelBar>

</ContentTemplate>

</asp:UpdatePanel>

</td>

</tr>

</table>

</div>

</asp:Content>

Thanks,
NTR

Eyup
Telerik team
 answered on 23 Oct 2012
1 answer
95 views
Hi Guys,

Recently I have applied RadCompression on my app and and Everything is Working fine Except one functionality.

I have a site which is not using rad compression and From there I'm posting some data to my main Site using HTTP Post. On my main site my page perform some validations by doing 2-3 redirections and after that loads final page.

Without Radcompression this functionality is working fine. With Radcompression when I uses a Get(Direct Assign Iframe Src) it is working fine. But with Http Post it is giving me following Error.

"The state information is invalid for this page and might be corrupted."


Can someone help me with this since I'm stucked with this issue?
Martin
Telerik team
 answered on 23 Oct 2012
3 answers
188 views
When using the RadImageEditor on the iPad the image get loaded upside down. This happens in both the code I have developed and on the Telerik demo page.

Thanks,
Vessy
Telerik team
 answered on 23 Oct 2012
1 answer
126 views
Hi all,

i bound radcombo box with data table and my datatable return three columns but i want to get value of third column on selected index change event and not throught its properties like selected value or text but i want to get value using its item template container

Grower field value on selected index change

<

 

 

script language="javascript" type="text/javascript">

 

function ddl_Lookup_clientblur(sender, eventArgs) {

 

var text = sender.get_text();

 

var item = sender.findItemByText(text);

 

var inputElement = sender.get_inputDomElement();

 

if (!item)

sender.clearSelection();

}

</

 

 

script>

<%

 

--OnClientBlur="ddl_Lookup_clientblur" --%>

 

<asp:HiddenField ID="hidSourceid" runat="server" />

 

<telerik:RadComboBox ID="ddl_Lookup" runat="server" DropDownWidth="400px"

 

ItemsPerRequest="25" EnableLoadOnDemand="true" Width="324px" MarkFirstMatch="true"

 

EnableViewState="true" HighlightTemplatedItems="true" AllowCustomText="true"

 

EnableItemCaching="true" ShowMoreResultsBox="true"

 

ItemRequestTimeout="250" EnableVirtualScrolling="true"

 

DataTextField="IndentNo" DataValueField="IndentNo" OnItemsRequested="ddl_Lookup_ItemsRequested"

 

OnItemDataBound="ddl_Lookup_ItemDataBound" EmptyMessage="Please select IndentNo."

 

OnClientBlur="ddl_Lookup_clientblur"

 

onselectedindexchanged="ddl_Lookup_SelectedIndexChanged">

 

<HeaderTemplate>

 

<ul>

 

<li class="col1">Indent No.</li>

 

<li class="col1">Date</li>

<%

 

-- <li class="col1">GrowerType</li>--%>

 

<li class="col1">Grower</li>

 

</ul>

 

</HeaderTemplate>

 

<ItemTemplate>

 

<ul>

 

<li class="col1">

<%

 

# DataBinder.Eval(Container.DataItem, "IndentNo")%>

 

</li>

 

<li class="col1">

<%

 

# DataBinder.Eval(Container.DataItem, "IndentDate", "{0:" + ConfigurationManager.AppSettings["LongDatePattern"].ToString() + "}")%></li>

<%

 

-- <li class="col1">

<%# DataBinder.Eval(Container.DataItem, "GrowerType")%>

</li>--

 

 

%>

 

<li class="col1">

<%

 

# DataBinder.Eval(Container.DataItem, "Grower")%>

 

</li>

 

<%

 

-- <li class="col1">

<%# DataBinder.Eval(Container.DataItem, "DocumentDate", "{0:" + ConfigurationManager.AppSettings["LongDatePattern"].ToString() + "}")%></li>--

 

 

%>

 

</ul>

 

</ItemTemplate>

</

 

 

telerik:RadComboBox>

Nencho
Telerik team
 answered on 23 Oct 2012
1 answer
82 views
Is it possible to run RadScheduler using the WebService option outside of the intranet on an external IP that supposes https? 

If so, what is a viable solution for such implementation

I current use this code below in my web.config file to allow request to page that uses radscheduler on the public IP Address. And it work fine with http. 

<system.net>
   <defaultProxy>
       <proxy usesystemdefault="false"
       proxyaddress="http://xx.xxx.xx.xxx" bypassonlocal="true" />
   </defaultProxy>
</system.net>

 But when i keep i try to navigate to the https version of the site. I get the following exception:

HTTP Error 400. The request URL is invalid.

---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
   at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
   at System.Net.WebClient.UploadString(Uri address, String method, String data)
   at Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args)
   --- End of inner exception stack trace ---
   at Telerik.Web.UI.SchedulerWebServiceClient.HandleWebException(WebException webEx)
   at Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args)
   at Telerik.Web.UI.SchedulerWebServiceClient.GetResources()
   at Telerik.Web.UI.RadScheduler.BindResourcesFromWebService()
   at Telerik.Web.UI.RadScheduler.PerformSelect()
   at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)


By the looks of it, it seem that the address provided in the proxyaddress is been used when the site is access from the https version.

Is there a solution to use radscheduler with webservice option on https that is not within a intranet, but rather on a public/external ip address
Bozhidar
Telerik team
 answered on 23 Oct 2012
0 answers
84 views
Hi Fellas

I have a user control with Calender control and a combobox thats gets populated on the basis of the the date in the Date field(Calender Control.)

This control is used in an aspx page which plots a chart(using Dundas charts) and a populates a grid,based on the selected item in combobox.
Issue is when on a date the combobox does not have any item(enabled=false),in that case the previous result needs to be cleared.
Now I dunno how to code the scenario.I need to set the visilbilty of the chart and grid on the aspx page to be false when the combobox on the ascx page is not enabled .
Please suggest solution.

Thanks!
Tarang.
Tarang
Top achievements
Rank 1
 asked on 23 Oct 2012
4 answers
128 views
I have a weird issue. I have a website with a web service as a folder under the website's root folder, and I have valdiateIntegratedModeConfiguration="false". When I tried to access the web service I would get errors regarding telerik controls. After some digging I found a few sites that seemed to resolve the problem. I added a <system.webServer> section in my web.config with just <validation validateIntegratedModeConfiguration="false"/> in it. Immediately below that I had <location path="." inheritInChildApplications="false"/>, followed by my original <system.webServer> section. I also added EnableHandlerDetection=false to all my RadScriptManager controls.

This all worked fine if I was on my company's network. However, if I tried to access the site from outside the network the filtering menu on the grid control would not appear when the filtering icon was clicked. I took these changes out of my web.config and everything works again.

I know that I can move the web service from underneath the web site and everything works just fine, but I would really like to figure out what is causing such different behavior depending upon where the user is residing.

Any suggestions as to what might be going on?

Thanks.
~Robin
Marin
Telerik team
 answered on 23 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?