Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
157 views
I have a web application where I can dynamically add RadDocks, and I need to know how to identify the dock on which I click, as I can do this else there is no click event, or the selected property.

Note.
I have de latest version of controls 

 Thanks
Slav
Telerik team
 answered on 15 Sep 2011
2 answers
130 views
Hi. I have a website where there a some different types of data (A, B, C...). The obvious solution is for me to have a separate page to display each type of data (Page_A, Page_B....). Each would have a listview to display a list of the corresponding data and each listview would be different to reflect the different types of data and also the different functionality required for each type/list. HOWEVER, there is some complex functionality separate to the actual listviews that would be common to all of the pages. This functionality is, in part, used to produce the actual datasource required for the listview.

So I have a choice. Multiple pages that have different lists displayed on each page but which replicate common functionality.

Or I create a single page that has the common functionality which also generates the datasource and that single page could have multiple listviews but then attach/bind the datasource to just one of the listviews. That would mean that there are some other listviews on the page that end up being unused. Would this cause an overhead?

Any views or comments would be really appreciated. The main functionality and code associated with the page(s) is the common code.
Paul
Top achievements
Rank 1
 answered on 15 Sep 2011
1 answer
56 views
Hi ,
when i add ajaxmanager to my page , i get runtime error , this is my code :



<telerik:RadAjaxManager ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button12">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel12" />
            </UpdatedControls>
        </telerik:AjaxSetting>       
    </AjaxSettings>
</telerik:RadAjaxManager>

<asp:Button ID="Button12" runat="server" Text="Button" />
<asp:Panel ID="Panel12" runat="server" Height="95px">
    <asp:Image ID="Image12" runat="server" ImageUrl="/_layouts/images/vistarayan.cps/amessage.png" />
</asp:Panel>

when i delete ajaxmanager everything is fine !
i use telerik 2011.2.712.35 .
what is the problem ?
Radoslav
Telerik team
 answered on 15 Sep 2011
4 answers
368 views
We are using "Telerix Chart" Control in ASP.NET website(.Net 4.0 Framework).

When I host the website on IIS 7.0 in "Integrated Mode" on Windows Server 2008, Telerix Charts gives "404 Resource not found" errror.

This error is not given in "Classic Mode" in IIS 7.0 on Windows Server 2008.

I have tried the following option:-
1) Adding the below section in web.server section

<

httpHandlers>

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

 </httpHandlers>

 

Can anyone please suggest the Resolution to the problem?
Sonia
Top achievements
Rank 1
 answered on 15 Sep 2011
1 answer
524 views
Details:
1 - Version 2011.2.712.40 of Telerik.Web.UI.
2 - Net 4.0 (therefore Visual Studio 2010).
3 - Development machine is Windows 7 Ultimate.
4 - Application pool is .Net 4.0 Integrated.

I have a simple login form (that uses a master page) with RadTextBoxes for username/password and a server-side button:

CONTENT.MASTER
<%@ master autoeventwireup="true" codebehind="content.master.cs" inherits="Administration.content" language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
     <head>
          <title>Administration</title>
     </head>
     <body>
          <form id="frmFormCriteria" runat="server">
               <asp:contentplaceholder id="cphContent" runat="server" />
          </form>
     </body>
</html>

LOGIN.ASPX
<%@ page autoeventwireup="true" codebehind="login.aspx.cs" inherits="Administration.login" language="C#" masterpagefile="~/content.master" title="" %>
<%@ mastertype virtualpath="~/content.master" %>
<%@ register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:content contentplaceholderid="cphContent" runat="server">
     <telerik:radscriptmanager runat="server" />
     Username: <telerik:radtextbox emptymessage="[Please enter your username]" id="txtUsername" maxlength="255" textmode="SingleLine" width="200" runat="server" />
     Password: <asp:textbox id="txtPassword" maxlength="100" textmode="password" width="200" runat="server" />
     <asp:button id="btnSubmit" text="Login" runat="server" onclick="btnSubmit_Click" />
</asp:content>

When I click inside the username control, the empty message does not disappear.

While debugging, when I type enter the username and password then click the login button, the text value for both controls is an empty string.

If I change the RadTextBoxes to server-side TextBoxes the entered values are passed correctly.

What is even more frustrating, if I change the RadScriptManager to the asp:ScriptManager and leave the RadTextBoxes alone, EVERYTHING (including the empty message disappearing on focus) works correctly.

I must be doing something wrong, but what?!?

The web.config is also:

<?xml version="1.0"?>
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <customErrors mode="Off" />
        <xhtmlConformance mode="Transitional" />
        <httpHandlers>
            <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
        </httpHandlers>
    </system.web>
    <system.web.extensions>
        <scripting>
            <webServices>
                <jsonSerialization maxJsonLength="5000000"/>
            </webServices>
        </scripting>
    </system.web.extensions>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <handlers>
            <add verb="*" name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
        </handlers>
    </system.webServer>
</configuration>
Tsvetina
Telerik team
 answered on 15 Sep 2011
2 answers
304 views

Hello,

I've a RadGrid with a ButtonColumn of type ImageButton. When adding an CommandArgument to this column the error: 'Specified argument was out of range of valid values. Parameter name: ItemHierarchicalIndex'.

<telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/RadGrid/16pxSearch.png" CommandName="Edit" CommandArgument="View" UniqueName="ViewColumn">
  <HeaderStyle CssClass="rgHeader ButtonColumnHeader"></HeaderStyle>
  <ItemStyle CssClass="ButtonColumn"></ItemStyle>
</telerik:GridButtonColumn>

Anyone any idea how to fix it??

Regards,
  Jos Meerkerk

Marin
Telerik team
 answered on 15 Sep 2011
6 answers
128 views
I'm trying to set a solid color in the bar graph but it always gives me a fading color. Any ideas why? Here is my code

            Dim bar As New ChartSeriesItem


            bar.YValue = 1


            bar.Appearance.FillStyle.MainColor = Drawing.Color.ForestGreen
            mySeries.Appearance.FillStyle.FillType = Styles.FillType.Solid
            mySeries.AddItem(bar)


            chart.Series.Add(mySeries)

Also, do you know of any way to pick a random color? I.e. where I have drawing.color.forestgreen, I'd just like a random color so each bar is a different color.
Giuseppe
Telerik team
 answered on 15 Sep 2011
5 answers
253 views
Hi all,

I am using RadCombobox which contains CheckBoxes as its items. When a checkbox item is checked, its Text will be displayed in Combobox's Text with the delimiter is ",".
It's OK. But I get problem when user clicks/selects on an item instead of checking it. Text of Combobox will be replaced by Text of selecting item.
Please tell me how can I prevent this action ?

Thanks in advance
Phuc
Top achievements
Rank 1
 answered on 15 Sep 2011
1 answer
114 views
Hi,

I have been working with the chart control to make a line chart with x & y values from an external data source. The x values may be very unevenly spaced decimals values or negative numbers, so I need to set the items on this axis from code. Can someone give me a good example of how to do this?

I have a poorly functioning example below. Unfortunately, this example graphs both values as two lines.
protected void Page_Load(object sender, EventArgs e)
{
    List<MyObject> myList = new List<MyObject>();
 
    myList.Add(new MyObject { yValue = 3, xValue = -20 });
    myList.Add(new MyObject { yValue = -1, xValue = -10 });
    myList.Add(new MyObject { yValue = -5, xValue = 3 });
    myList.Add(new MyObject { yValue = 1, xValue = 5 });
    myList.Add(new MyObject { yValue = 8, xValue = 6.5 });
    myList.Add(new MyObject { yValue = 4, xValue = 7 });
    myList.Add(new MyObject { yValue = 3, xValue = 10 });
    myList.Add(new MyObject { yValue = 7, xValue = 15 });
 
    RadChart1.PlotArea.XAxis.IsZeroBased = false;
    RadChart1.DataSource = myList;
    RadChart1.PlotArea.XAxis.DataLabelsColumn = "xValue";
     
    RadChart1.DataBind();
}
 
public class MyObject
{
    public double yValue { get; set; }
    public double xValue { get; set; }
}

Thank you for you help!
Dan
Yavor
Telerik team
 answered on 15 Sep 2011
4 answers
2.2K+ views
Hi,
   This is an exception i get in my application, This doesn't happen often, but happens some times

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near '

<!DOCTYPE html PUB'.

Can any one please help me on this?

Alex
Top achievements
Rank 1
 answered on 15 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?