Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 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
235 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
83 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
158 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
107 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
76 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
72 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
107 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
1 answer
398 views
Hi! First of all, thanks for reading this post and try to help me. My problem is this: I have a RadGrid which has a GridTemplateColumn. Inside that column there is an asp:CheckBox. What I want to do is to press a button to add some rows in the radgrid and display the checkbox properly. The problem I facing is that if quantity of new rows are more quantity of rows before the addition, the checkboxes of the new rows are not showing. Ive prepared a small example of the problem (to emulate it you just need to create a Web Application called: "WebApplicationRadGridCheckBox" and paste the code below in the Default.aspx file -also, you need the telerik dll´s-). Then, just press the button "Add" and watch the result (remember that Ive used gridRowBound and gridRowCreated because you can´t use Eval in the client side).

Thank you very much. Matias.

Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplicationRadGridCheckBox._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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>
    <telerik:RadScriptBlock ID="RadScriptBlockTipoDocumentoDetails" runat="server">
        <script type="text/javascript">
            function Add(sender, eventArgs) {
                var grid = $find("<%=RadGridTest.ClientID %>");
                var mt = grid.get_masterTableView();
                var items = mt.get_dataItems();
                var source = new Array();
                var item = { Field1: false, Field2: "new item 1!!!" };
                source[source.length] = item;
                var item2 = { Field1: false, Field2: "new item 2!!!" };
                source[source.length] = item2;
                mt.set_dataSource(source);
                mt.dataBind();
            }
            function gridRowBound (sender, args) {
                var checkbox = args.get_item().findElement("Field1");
                if (checkbox && checkbox != null) {
                    checkbox.checked = args.get_dataItem().Field1 == "True";
                }
            }
            function gridRowCreated (sender, args) {
                var checkbox = args.get_item().findElement("Field1");
                if (checkbox && checkbox != null) {
                    checkbox.checked = args._gridDataItem.getDataKeyValue("Field1") == "True";
                }
            }
        </script>
    </telerik:RadScriptBlock>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server" ID="ScriptManager1"/>
        <div>
            <telerik:RadButton ID="RadButton1" runat="server" Text="Add" OnClientClicked="Add" UseSubmitBehavior="false" AutoPostBack="false"/>
            <telerik:RadGrid ID="RadGridTest" runat="server" AutoGenerateColumns="false" AllowMultiRowSelection="true" Height="200px">
                <MasterTableView Caption="" ClientDataKeyNames="Field1,Field2" DataKeyNames="Field1,Field2">
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:CheckBox ID="Field1" runat="server"/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn HeaderText="Field2" DataField="Field2"/>
                    </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true" >
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll="True" SaveScrollPosition="True"/>
                    <ClientEvents   OnRowDataBound="gridRowBound"
                                    OnRowCreated="gridRowCreated"/>
                </ClientSettings>
            </telerik:RadGrid>
        </div>
    </form>
</body>
</html>

Default.aspx.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace WebApplicationRadGridCheckBox
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<TestClass> lista = new List<TestClass>() { new TestClass() { Field1 = true, Field2 = "JOJO" } };
            RadGridTest.DataSource = lista;
            RadGridTest.DataBind();
        }
    }
    public class TestClass
    {
        public Boolean Field1 { get; set; }
        public String Field2 { get; set; }
    }
}


Radoslav
Telerik team
 answered on 23 Oct 2012
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?