Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
Hi,

I have 5 charts on my page. Sometimes I'm getting a popup error message saying;
"Error loading RadChart image.
You may also wish to check the ASP.NET Trace for further details.
Display stack trace?"

Is ther eany way to fix this issue?

Thanks,
Ruben.
Giuseppe
Telerik team
 answered on 04 Nov 2009
5 answers
343 views
Hello, I have a couple of issues with the grid control and column sizing.  Here is my scenerio; I have grid inside a div that is set for 100% width.  I did look at http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx and near as I can tell I did it all correctly.

Issue 1:
I have two columns that are given a header style width of 100px. When I open the form the two columns are split equally to the width of the window. My expectation is that they are two columns at 100px each with a filler block taking up the rest of the space.  I open the form and then manully resize the columns back to 100px this is indeed what I get.

Issue 2:
I have 6 columns at 150px each.  Sometimes (not consistently) the grid wil shrink the columns rather than display a horizontal scroll bar. So I end up with 6 columns at 75px each rather than getting a scroll bar.

Issue 3:
Why is it that when I fix the column headers  (UseStaticHeaders) There is a white box at the top of the scroll bar rather than a column header.  It looks correct if I have UseStaticHeaders turned off.

Here is the page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %> 
 
<!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 runat="server">  
    <title></title>  
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
    <div> 
        <p>Both columns are specified as 100 px, the scroll bars are turn on so why are my columns wider than 100 px?</p> 
        <p>Why is there a little empty white box looking like a nudist at a grand ball sitting at the top of the vertical scroll bar.</p> 
        <telerik:RadGrid ID="Grid" runat="server"   
                Width="100%" Height="200px" 
                AllowFilteringByColumn="false"   
                ShowStatusBar="true" AllowSorting="true" 
                AutoGenerateColumns="false"   
                AllowPaging="True" AllowCustomPaging="True"   
                OnNeedDataSource="GridNeedDataSource" > 
 
                <PagerStyle Mode="NextPrevAndNumeric"/>  
                <ClientSettings AllowDragToGroup="false" > 
                    <Scrolling AllowScroll="true" 
                               EnableVirtualScrollPaging="false" 
                               SaveScrollPosition="false" 
                               UseStaticHeaders="true"/>  
                    <Resizing  AllowColumnResize="true" 
                               AllowRowResize="false" 
                               EnableRealTimeResize="false" 
                               ResizeGridOnColumnResize="false" 
                               ClipCellContentOnResize="true"/>  
                    <Selecting AllowRowSelect="true" />                                     
                </ClientSettings> 
                <MasterTableView AllowCustomSorting="true" TableLayout="Fixed">  
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Col1" DataField="field1">  
                            <HeaderStyle Width="100" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Col2" DataField="field2">  
                            <HeaderStyle Width="100" /> 
                        </telerik:GridBoundColumn> 
 
                    </Columns> 
                </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
      
    <div> 
    <p>If you open this in a browser window that is less than 900px, rather than a scroll bar I get a smaller columns why?</p> 
    <p>If I fix the grid width to 600 px, I get the scroll bars.</p> 
        <telerik:RadGrid ID="Grid2" runat="server"   
                Width="100%" Height="200px" 
                AllowFilteringByColumn="false"   
                ShowStatusBar="true" AllowSorting="true" 
                AutoGenerateColumns="false"   
                AllowPaging="True" AllowCustomPaging="True"   
                OnNeedDataSource="GridNeedDataSource" > 
 
                <PagerStyle Mode="NextPrevAndNumeric"/>  
                <ClientSettings AllowDragToGroup="false" > 
                    <Scrolling AllowScroll="true" 
                               EnableVirtualScrollPaging="false" 
                               SaveScrollPosition="false" 
                               UseStaticHeaders="true"/>  
                    <Resizing  AllowColumnResize="true" 
                               AllowRowResize="false" 
                               EnableRealTimeResize="false" 
                               ResizeGridOnColumnResize="false" 
                               ClipCellContentOnResize="true"/>  
                    <Selecting AllowRowSelect="true" />                                     
                </ClientSettings> 
                <MasterTableView AllowCustomSorting="true" TableLayout="Fixed">  
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Col1" DataField="field1">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Col2" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn HeaderText="Col3" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn HeaderText="Col4" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                                                <telerik:GridBoundColumn HeaderText="Col3" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn HeaderText="Col4" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                    </Columns> 
                </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 


And the code behind
using System;  
using Telerik.Web.UI;  
 
public partial class Default : System.Web.UI.Page   
{  
    public class Foo  
    {  
        public Foo()  
        {  
            Field1 = Guid.NewGuid().ToString();  
            Field2 = Guid.NewGuid().ToString();  
        }  
        public string Field1 { getset; }  
        public string Field2 { getset; }  
    }  
 
    private Foo[] FooArray = new[]  
                                 {  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                 };  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
          
    }  
 
    protected void GridNeedDataSource(object source, GridNeedDataSourceEventArgs e)  
    {  
        Grid.DataSource = FooArray;  
        Grid2.DataSource = FooArray;  
    }      
}  
 
tmlipinski
Top achievements
Rank 1
 answered on 04 Nov 2009
1 answer
85 views
Hi,
Problem in getting radeditor control id from javascript.

I am using rad editor in my application. i have placed the rad editor in a usercontrol and i wish to use that in my aspx pages normally how we place usercontrols in web pages. here the problem is i am using ajax modal popup. i have linkbutton in my web page and in the click event i am opening a pop up with the usercontrol (editor). so far it is working fine and able to read editor content in the server side. i have a button inside the popup and onclientclink event i want to validate the editor blank or not .
to do this i need to get the editor (usercontrol) id from the javascript.

Could any one help me to get out from this.
 
Rumen
Telerik team
 answered on 04 Nov 2009
3 answers
111 views
Hello everyone...

I try to create a custom skin based on Office 2007, and I couldn't

I try to use the stylebuilder.telerik.com page, but it only shows you 1 level of the tab strip, so its really difficult to use that tool,

I try to modify the CSS file and it was a total failure since i haven't work with css before,

So, could someone tell me how to create a custom skin to represent the image below?  with the 2 levels of tab strip?

All help is welcome...  I need to deliver this control asap, so the company buy this tools, so that's the hurry.

Thanks

Best Regards!
Jose.
Kamen Bundev
Telerik team
 answered on 04 Nov 2009
1 answer
67 views

hi,

When i programitically add custom tools to editor, i 's  like in the atachment appears, how can i stop this.

Rumen
Telerik team
 answered on 04 Nov 2009
3 answers
192 views
Hi,

I have a few questions:
Environment: RadControls for ASP.net 2009 Q2.

1. On the commanditems strip, I would like to show some custom commands, like an edit button when clicked, would put certain cells in certain rows in edit mode based on some business rules.  I would also like to put an "Update" button on this strip which will fire a custom method on the server to update the edited rows in the grid. These buttons will also be hidden under certain conditions. How would I do that?

2. I don't see any property either at desgin time or in code to add the button "Export to Excel" to this commanditem strip.  The online examples on your site have some "ShowExportToExcelButton" property set.  But I don't see it at either design time or at runtime.  How do I do this?

3. I would also like to set some of the cells in certain rows, only in certain columns, non-editable and some others editable (when Edit button clicked).  What is the appropriate event handler to put this code in?

Thanks

Babu.
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2009
1 answer
164 views
Hello,

I tried to adopt what was done in your MVC forum sample project for the RadPanelBar.  What I want to do is add a series of RadPanelItem's that contain a RadListBox control as its interface.  The RadListBox will be data bound.  But I'm getting an error about adding controls after prerender.  Is there something I can do to remedy that, or do the RadPanelItem/RadListBox have to be hard coded in?

My approach was:

<%
if (Model.Groups != null)
{
    foreach (var group in Model.Groups)
    {
        RadListBox box = new RadListBox();
        box.DataSource = group.Items;
        box.DataTextField = "Name";
        box.DataValueField = "Key";

        box.DataBind();

        RadPanelItem item = new RadPanelItem(group.Name);
        item.Controls.Add(box);

        rpbContacts.Items.Add(item);
    }
}
%>

<tel:RadPanelBar ID="rpbContacts" runat="server" />

Thanks.
Georgi Krustev
Telerik team
 answered on 04 Nov 2009
17 answers
1.3K+ views
Hi,

Couple of issues with 3.5 dll :
1. If we use the Telerik.Web.Ui.dll for framework 2.0 i.e. Bin/Telerik.Web.UI.dll, we are able to cast the e.Item.DataItem as DataRowView
(in ItemDataBound event handler) and access the values from the corresponding row in the datasource. But when we use the dll for 3.5 framework i.e. bin35/Telerik.Web.UI.dll , it doesn't allow the GridDataItem's  DataItem property to be cast as DataRowView. It shows it as a Dynamic Class. The interesting thing is it allows the GroupHeaderItems to be cast as DataRowView.
Can you please let me know , how to access the corresponding row Data values from the DataSource using dll for 3.5 framework.


2. Also, I have a GridCalculatedColumn which has a 'ISNULL' function in its expression and works fine with 2.0 dll. This same code gives error when it references the 3.5 dll.
e.g. 

 

<telerik:GridCalculatedColumn HeaderText="Name" UniqueName="df_nme" SortExpression="df_frst_nme"

 

 

DataType="System.String" DataFields="df_frst_nme, df_mid_nme, df_last_nme"

 

 

Expression='{2} + ",&nbsp;" + ISNULL({0},"") + "&nbsp;" + ISNULL({1},"")'>

 

 

</telerik:GridCalculatedColumn>

 



Thanks,

Georgi Krustev
Telerik team
 answered on 04 Nov 2009
1 answer
80 views
Hi,
Please could you tell me what RadGrids are inherited from (i.e. are they inherited from the .net gridview control) or something else. The reason for the question is because we want to be able to extend the grid to allow multi-row (spreadsheet-like) editing. Is this type of editing already available and I just haven't seen it yet?

Regards

Robert
Princy
Top achievements
Rank 2
 answered on 04 Nov 2009
7 answers
159 views
Hello,

When insert "10/11/2009" in raddateinput control, this switch to 
"10/10/2009"
  English Culture. (version 2.1.4.0)

Any idea how to solve? 

Thanks in advance.

rene
Daniel
Telerik team
 answered on 04 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?