Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
79 views
Hello,

Why when i use the "LoadContentFile" method ot the "LoadXml" method a new instance of RadListBox has been created.
If i use these methods, first it goes into the constructor of the listbox.

Below is my class inherite from RadListBox

public class MyRadListBox: RadListBox
    {
        public MyRadListBox()
        {
           InitControl();
        
           .
           .
           .
    }

If i create an instance of MyListBox and call to LoadContentFile("LB.xml) then first it to the MyRadListBox Ctor.

MyListBox myListBox=new MyListBox();
myListBox.LoadContentFile("LB.xml");

Is there any option to avoid this? it pretty annoying and cause to bugs.

Regards,
Oren
Genady Sergeev
Telerik team
 answered on 20 Oct 2010
1 answer
160 views
Is there a property that can be specified that will change the start angle for pie charts? It looks like it always starts plotting from 0 degrees.

Thanks,
Mike
Yavor
Telerik team
 answered on 20 Oct 2010
3 answers
143 views
Is there a way to make the radgrid display a message when there is no datasource?  (This is helpful when the radgrid is first displayed)

NoRecordsTemplate

 

 

only works when the datasource is empty (not null).

Pavlina
Telerik team
 answered on 20 Oct 2010
3 answers
257 views
Hi,

I have a simple gridview which contains a field for primary key "Vendor_ID" which should be filled by a sequence. I changed the property of the field and set ReadOnly = true. >> here i can insert a new record
but when i try to update the record (i have set the condition where vendor_id = vendor_id) nothing happens >> i guess because it can not read the ReadOnly field.
then i have added ForceExtractValue="InEditMode", my records are updated but now i can not insert a new record i receive an error.

Your Help is greatly appreciated.

Fatma
Pavlina
Telerik team
 answered on 20 Oct 2010
1 answer
65 views
i'm a little stuck, after i was able to bind an event _SelectedIndexChanged to a combobox of a editform.
now i'm receiving the event in a handler ..._SelectedIndexChanged(ByVal sender As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs),
but now i'm supposed to feed another column/textbox of the grid with a value based on the selecteed value of the combobox.

i can imagine (/read somewhere) a solution would be the creation of a custom editform and then using a panel or something to "findcontrol" the textbox, but my editform is generated auto, so is there a way? 
of course
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim editMan As GridEditManager = editedItem.EditManager
If (CType(editedItem.Item("Value1").Controls(0), RadNumericTextBox).Text) > 0 then.... etc.

doens't bind to e.item which is RadComboBoxSelectedIndexChangedEventArgs,
so can i get to the editForm through RadGrid1.Mastertableview. ...? Or via FIndControl("..") ?

Regards
Reto
Mira
Telerik team
 answered on 20 Oct 2010
3 answers
127 views
Hi all,

we build a very simple scrolling-example (using codecharge studio 4.1) but we get always the following server error message. All other telerik asp.net ajax applications and functions (charts, editor, combo boxes ...) we tested makes no problems (congratulation on the very good work of developers!). But after insert the <clientsettings .../> row in the code we get this error message. We use Windows xp / windows 2003 server and asp.net latest versions, IE7 and firefox latest versions, 2008Q3 trial latest build ... The problem is independent from windows, browser etc.

Has anybody an idea? Is this a bug?

thanks for help.
Regards Christian


Serverfehler in der Anwendung /promolpm.

Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Quellfehler:

Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte Ausnahme generiert. Informationen über den Ursprung und die Position der Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.

Stapelüberwachung:

[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
   Telerik.Web.ScriptObjectBuilder.RegisterCssReferences(Control control) +179
   Telerik.Web.UI.RadChart.OnPreRender(EventArgs e) +33
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.3082; ASP.NET-Version:2.0.50727.3082


aspx code of the page:
<!--ASPX page @1-3B64DC6C-->
    <%@ Page language="vb" CodeFile="TESTChart.aspx.vb" AutoEventWireup="false" Inherits="PromolPM.TESTChart.TESTChartPage"  ResponseEncoding ="utf-8"%>
    
    <%@ Import namespace="PromolPM.TESTChart" %>
    <%@ Import namespace="PromolPM.Configuration" %>
    <%@ Import namespace="PromolPM.Data" %>
    
    <%@Register TagPrefix="CC" Namespace="PromolPM.Controls" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<!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>
<meta http-equiv="content-type" content="<%=TESTChartContentMeta%>">
<meta name="GENERATOR" content="CodeCharge Studio 4.1.00.032">

<title>TESTChart</title>


<link rel="stylesheet" type="text/css" href="Styles/<%=PageStyleName%>/Style.css">
<script language="JavaScript" type="text/javascript">
//Begin CCS script
//End CCS script
</script>

</head>
<body class="BODY">
<form runat="server">


    

        <asp:ScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadChart ID="RadChart1" runat="server">
                <ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="4" />
                <PlotArea>
                        <XAxis MaxValue="5" MinValue="1" Step="1">
                        </XAxis>
                        <YAxis MaxValue="3" Step="0.5" AxisMode="Extended">
                        </YAxis>
                        <YAxis2 MaxValue="5" MinValue="1" Step="1">
                        </YAxis2>
                </PlotArea>
                <Series>
                        <telerik:ChartSeries Name="Series 1">
                <Appearance>
                        <FillStyle MainColor="Red">
                    </FillStyle>
                                </Appearance>
                                <Items>
                                        <telerik:ChartSeriesItem YValue="1" Name="Item 1">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="2" Name="Item 2">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 3">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 4">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="2" Name="Item 5">
                                        </telerik:ChartSeriesItem>
                                </Items>
                        </telerik:ChartSeries>

                        <telerik:ChartSeries Name="Series 2">
                                <Appearance>
                        <FillStyle MainColor="Blue">
                    </FillStyle>
                                </Appearance>
                                <Items>
                        <telerik:ChartSeriesItem YValue="3" Name="Item 1">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 2">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 3">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 4">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="2" Name="Item 5">
                    </telerik:ChartSeriesItem>
                                </Items>
                        </telerik:ChartSeries>
                </Series>
                </telerik:RadChart>
    


</form>
</body>
</html>

<!--End ASPX page-->
Yavor
Telerik team
 answered on 20 Oct 2010
1 answer
66 views
Hello,

I have a grid with columns set as ItemTemplate

How is it possible to have Grid Footers displaying sum of values of corresponding columns?

Thank you

Regards
Raj
Shinu
Top achievements
Rank 2
 answered on 20 Oct 2010
1 answer
136 views
Hi,

I am uploading a DLL file that contains 1 class file FileName.vb  and 2 Embeded resource files Filename.Aspx,Filename.Aspx.vb and Filename.JPG
this DLL is of file size around 150kb.

there is a database update,insert query's in one of the function of file Filename.Aspx.vb
if i remove these lines then the file uploads sucessfully.
(i am not sure exactly that the problem is with these database updated statements, cuz it fails some times even after removing that lines)

i think this problem is not related to file size and i saw the disscusstion in forums..

We are using OS (windows server 2008 ) and IIS7

i have configurated the webconfig setting
<security>
   <requestFiltering>
    <requestLimits maxAllowedContentLength="1048576000" />
   </requestFiltering>
  </security>


plzzz help.

Thanks
K²










Genady Sergeev
Telerik team
 answered on 20 Oct 2010
1 answer
153 views

Hello,

Observe the code snippet below:

public
class MyItem

 

{

    public int value1 { get; set; }

    public int value2 { get; set; }
    public int?[] dateids {get;set;}

    public MyItem()
    {
        dateids=new int?[4];
    }

}

public class MyItems : CollectionBase

 

{

    public int Add(MyItem item)

    {

        return List.Add(item);

    }

    public void Remove(MyItem item)

    {

        List.Remove(item);

    }

    public int IndexOf(MyItem item)

    {

        return List.IndexOf(item);

    }

    public MyItem this[int index]

    {

        get { return (MyItem)List[index]; }

        set { List[index] = value; }

    }

}

I set instance of MyItems to DataSource property of grid.
How do I assign dateids to grid's DataField?

Any workaround would be much appreciated

Thank you

Regards
Raj

Radoslav
Telerik team
 answered on 20 Oct 2010
1 answer
56 views
Hi,

We are facing implementing the RadAjaxManager and RadAjaxProxy in the below mentioned Scenario.
We implemented the below mentioned steps for our application template.
Step1 : Our application Master Page contains the RadAjaxManager in the Master Page,
Step 2: Our Content Page contains a Rad Grid with the Right Click Context Menu. We included the Rad Ajax Proxy1 control in the Content Page,
Step 3: Our Edit form is implemented using the WebUserControl. We included the Rad Ajax Proxy2 in the Edit Form.
On Right Click and Click the Edit Button we need to open the Edit Form.

We are finding the page post back even if i click any view icon in the RadGrid, Not even opening the edit form.
We implemented Rad Ajax Manager in the Content Page and Rad Ajax Proxy in the Web user control but it is not as fast as you demo example when i click the cancel button it takes more time where as you demo example it takes less time. We just implemented the Ibindable interface and bind the Edit form controls. that's it.  check in the below  URL for reference.

http://test.aptisys.com/UOMSetup.aspx

but in the Telerik Optimization technique it has mentioned to Implement the Rad Ajax Manager in the Master Page, Rad Ajax Proxy in the Content Page and one More Ajax Proxy in the Edit Form.

Is there any example Telerik implemented with the Rad AjaxManager in the Master Page, Rad Ajax Proxy1 in the Content Grid page and Rad Ajax Proxy2 in the Edit Form Web User Control to implement the Rad Ajax Manager and Ajax Proxy?

Could you please send us some example for above scenario without any post back on Opening the Grid Edit Form?

Thanks 
Pavlina
Telerik team
 answered on 20 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?