Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
164 views

I'm trying to enable grouping on a grid that is using NeedDataSource to get a LINQ table.

        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server"   
            ongroupschanging="RadGrid1_GroupsChanging"   
            onneeddatasource="RadGrid1_NeedDataSource" AllowPaging="true" ShowGroupPanel="true" > 
            <MasterTableView AllowPaging="true" PageSize="100" DataKeyNames="BuildID" > 
                  
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="true" /> 
        </telerik:RadGrid> 
     protected void RadGrid1_GroupsChanging(object source, Telerik.Web.UI.GridGroupsChangingEventArgs e)  
        {  
 
        }  
 
        protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            RadGrid1.DataSource = new DataClasses1DataContext().DataTable;  
        } 

When they drag a header to be grouped, GroupsChanging and NeedDataSource both fire. During GroupsChanging, if I get RadGrid1.MasterTableView.GroupExpressions, as expected the group has not been added.

However, during NeedDataSource, the group has not been added to RadGrid1.MasterTableView.GroupExpressions.

When they drag a header to be ungrouped, both events fire again. During GroupsChanging, the group has not been removed, as expected.

During NeedDataSource it has been removed.

So when you're grouping, NeedDataSource does not have the correct grouping information, and when you're ungrouping, it does.

The "DataTable" has about 30 columns and 12,000 rows.
The version on my Telerik.Web.UI is 2008.2.826.35, and the Runtime Version is v2.0.50727.

The reason I need grouping info during NeedDataSource is because I'm trying to keep Custom Paging after they group headers by doing my own sorting on the LINQ table.

Thanks,
John
Tsvetoslav
Telerik team
 answered on 13 Apr 2009
3 answers
122 views
I was using the trial version of Telerik and its Rad controls in my web site. It was working fine with Rad charts.
I was using 4 files in my bin folder for RadChart.
    1. Telerik.Charting.dll
    2. Telerik.Charting.xml
    3. Telerik.Web.UI.dll
    4. Telerik.Web.UI.XML
and it was working fine.
I was using Telerik.Charting.ChartSeriesItem and it was working fine with the 4 dll's.

Now I have installed RadControls for ASP.NET AJAX  er developer version in my machine. I am using MS VS2005 and .net 2.0. After installation in this version I get a bin folder with 3 files
    1. Telerik.Web.Design.dll
    2. Telerik.Web.UI.dll
    3. Telerik.Web.UI.XML
Now I deleted my previous 4 files from my bin folder and replaced that with the latest 3 files found in the bin folder of my computer C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\Bin folder

After that I am unable to Run my site. The Error says :
Server Error in '/Chart' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Charting.ChartSeriesItem.SaveViewState() +63
   Telerik.Charting.StateManagedObject.Telerik.Charting.IChartingStateManager.SaveViewState() +4
   Telerik.Charting.ChartingStateManagedCollection`1.SaveViewState() +88
   Telerik.Charting.ChartingStateManagedCollection`1.Telerik.Charting.IChartingStateManager.SaveViewState() +7
   Telerik.Charting.ChartSeries.SaveViewState() +68
   Telerik.Charting.StateManagedObject.Telerik.Charting.IChartingStateManager.SaveViewState() +4
   Telerik.Charting.ChartingStateManagedCollection`1.SaveViewState() +88
   Telerik.Charting.ChartingStateManagedCollection`1.Telerik.Charting.IChartingStateManager.SaveViewState() +7
   Telerik.Charting.Chart.SaveViewState() +168
   Telerik.Charting.StateManagedObject.Telerik.Charting.IChartingStateManager.SaveViewState() +4
   Telerik.Web.UI.RadChart.SaveViewState() +56
   System.Web.UI.Control.SaveViewStateRecursive() +59
   System.Web.UI.Control.SaveViewStateRecursive() +156
   System.Web.UI.Control.SaveViewStateRecursive() +156
   System.Web.UI.Control.SaveViewStateRecursive() +156
   System.Web.UI.Page.SaveAllState() +466
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2357




 Please help me.




Ves
Telerik team
 answered on 13 Apr 2009
1 answer
50 views
Hi,

Before I start, I would like to say that Telerik RAD Controls are awesome. I have purchased one of your controls (tabstrip), and intend on buying licenses for rad controls ajax and openaccess orm.

Anyway, I have an ASP.NET 3.5 web application (I have checked propertieS) which is just for experiments etc. I went to design view and then my toolbox and noticed that the icons for each RAD control and also some standard ASP.NET controls (I think those only released in .NET 3.5) have a different icon (but same for all the effected controls).

I have a screenshot where you can see what I mean:

http://img26.imageshack.us/img26/8276/vstudiobug.png


Now I know this is perhaps a .NET issue because standard .NET controls have been effected, and I have posted on ASP.NET (awaiting reply) but I ask on here too as perhaps Telerik is causing the problem (maybe it's .NET, or maybe it's Telerik). There is no associated warning or error with this problem.

Does anyone here know what the problem is?
Veselin Vasilev
Telerik team
 answered on 13 Apr 2009
1 answer
97 views
Is there a way I can add my own hex code when changing the colour of text, an option I need to tun on in the ToolsFile.xml maybe?
Rumen
Telerik team
 answered on 13 Apr 2009
1 answer
116 views
Hello,

I have content created something like below(HTML markup is shown):

<strong>Hi</strong><BR />

I want to store it in database like:
<html>
<body>
<strong>Hi</strong><BR />
</body>
</html>

I know I can manipulate string at time of storing but is there any way to store content as seen in HTML mode and
user changing body tag.
I want to do this because my users may like to change body tag e.g. <body  onload="..." ...>....</body>

Regards,
Jay




Rumen
Telerik team
 answered on 13 Apr 2009
1 answer
35 views
Hey all.  I'm having a problem with the media/flash manager properties on the RadEditor.  In IE7-8, if you select a boolean property (such as ShowStatusBar or AutoPlay), the Yes/No radio buttons don't appear and a JS error is thrown.  The radio buttons show just fine in FF.  I'm using the latest version, Q1 2009.  This problem is even present on the RadEditor demos.

Any ideas? 

Thanks,
Andrew
Rumen
Telerik team
 answered on 13 Apr 2009
1 answer
153 views
I'm making a (speed/time) line chart that has to support a very large number of items (1 item per second, 3600 items for a one hour view). The chart is taking 10 seconds to render, which is unacceptable for our application.

I've tried to enable scrolling on the X axis and only render part of the chart, but it takes the same amount of time (10+ seconds) to update when scrolling.

I've also tried disabling the view state, which made the HTML go from 2MB to 7KB, but it still takes 10 seconds to render.

Is there some way to filter the items? For instance, the chart does not need to draw all 3600 items for a 500px wide chart. Can I filter the items before I populate the chart? How will zooming and scrolling work?

Using Q1 2009.

<form id="Form1" runat="server"
<asp:ScriptManager ID="ScriptManager1" runat="server"
</asp:ScriptManager> 
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"
    <ContentTemplate> 
        <telerik:RadChart ID="RadChart1" runat="server" AutoLayout="true"
            <ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="50" /> 
            <Series> 
                <telerik:ChartSeries DataYColumn="Speed" Type="Line"
                    <Appearance> 
                        <LabelAppearance Visible="false"
                        </LabelAppearance> 
                    </Appearance> 
                </telerik:ChartSeries> 
            </Series> 
            <Legend Visible="false"></Legend> 
            <ChartTitle TextBlock-Text="Title"
            </ChartTitle> 
        </telerik:RadChart> 
    </ContentTemplate> 
</asp:UpdatePanel> 
</form> 

 protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!IsPostBack) 
        { 
            DataTable dt = new DataTable(); 
            dt.Columns.Add("speed"typeof(int)); 
 
            Random random = new Random(); 
 
            for (int i = 0; i < 3600; i++) 
            { 
                DataRow row = dt.NewRow(); 
                row[0] = random.Next(100); 
                dt.Rows.Add(row); 
            } 
 
            RadChart1.DataSource = dt; 
            RadChart1.DataBind(); 
        } 
    } 

Ves
Telerik team
 answered on 13 Apr 2009
2 answers
110 views
I'm using the designer option for the RadTreeView, while in split mode.  As I change the nodes and click OK, nothing happens in the markup. Although the nodes are there, it never writes the content.  But it does retain them, until I close the window.  Then no nodes are written...

Has anyone else experienced this?
Veselin Vasilev
Telerik team
 answered on 13 Apr 2009
1 answer
464 views
I've installed the Telerik VS extensions successfully.  I have an existing application that is already using Telerik controls extensively.

When I look under the new Telerik menu in VS, the only option that is enabled is "Convert To Telerik Web Application".  I've used this option even though we already had all the necessary configurations in web.config.

All the other options in the menu (Add RadControls Template, Add RadGrid Template, etc) are disabled, even when my open document is an aspx page in design view.  What am I missing?

Thanks.
Erjan Gavalji
Telerik team
 answered on 13 Apr 2009
3 answers
158 views
We are using multiple RadEditor controls on a single page. We need to add an event handler to the focus event for each editor. This code is working fine in Internet Explorer, but it is not working in Firefox.

Here is the code:

var OnTelerikClientLoad = function(editor, args) {

            var element = document.all ? editor.get_document().body : editor.get_document();

            $telerik.addExternalHandler(element, "focus", function(e) {

                alert("focus!");

            });

            $telerik.addExternalHandler(element, "blur", function(e) {

                alert("blur!");

            });

}

Neither the focus or blue alerts are firing.

Any suggestions?
Tervel
Telerik team
 answered on 13 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?