Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
359 views
Hi,
I would like to suggest that you extend the RadGrid GridEditFormItem.ExtractValues method to support updating any business object. It could use reflection to find any properties that match the names of data bound columns.

This would make the data binding very powerful! If you don't use declarative databinding getting the values back into your database is a pain. But being able to simply update a LINQ generate entity object with a single method call would be a huge improvement.

So instead of doing :-
    Hashtable values = new Hashtable();  
    item.ExtractValues(values);  
 
    C.CategoryValue = (string)values["CategoryValue"];  
    C.Selectable_ = (bool)values["Selectable_"];  
// etc. for all fields  
 

You could do :-
    item.ExtractValues(C); 
Rosen
Telerik team
 answered on 24 Mar 2009
0 answers
96 views
HI,
     I am generating Radcombo box at runtime by using XSlt.And I am able to add items to it.
Now,I just want to how to apply load on demand for combo box, which is generated at Runtime.
uma
Top achievements
Rank 1
 asked on 24 Mar 2009
1 answer
133 views
Hi all

I am using Q1 2009 and I keep getting intermittent behaour with skinning of my pages.

I am using Usercontrols and RadAjaxManager skin Office2007.  I would deploy the App  ( incedently now when I deploy I have to visit each page doesn't seem to jit properly anyway )  , login and test all ok. login again this time different things would not skin. RadPanelBar, RadDockingZone, RadGrid. I could then try things like reboot server and client PC. clear browser caches and they start to work. All very odd, anyone got any bright ideas ?

Paul
Georgi Tunev
Telerik team
 answered on 24 Mar 2009
1 answer
74 views
Just wondering if it's normal for the fullscreen toggle to take up to 5 seconds or so running the samples (3.1314.35).

No biggie, but in lookin at it compared to an older editor we are replacing it was basically immediate so I want to make sure I'm not doing something wrong.

What should be expected?

Thx

ACTUALLY, running some of the samples with more toolbars turned on, it seems to be running as long as 10 seconds ;)
Tervel
Telerik team
 answered on 24 Mar 2009
1 answer
65 views
Hi All,

I am using RadEditor Q3 2008 (02.1001) and when, in a ImageManager or DocumentManager dialog, I want to create a new folder I get in IE7 a warning about a scriptprompt (for entering the new folder name).

In a previous version the foldername had to be entered in the dialog itself, and I saw the new version (Q1 2009) using a RadWindow as a prompt, but upgrading is currently not an option.

Is there a way to circumvent / surpress this issue server-side, or use a radwindow instead of a javascript prompt?

Thanks in advance,

Regards,

Roland
3po.nl
Tervel
Telerik team
 answered on 24 Mar 2009
1 answer
152 views
I have a PanelBar that is databounded to a list via the code behind.  Inside the PanelBar I want a template that has a control inside it and the control is databounded OnItemDataBound of the PanelBar by getting a value from the PanelBarItem.  The issue I'm having is that I can't find the control to bind to it.  The code throws a null reference exception on line 27 of the code behind below.

Here is the html markup
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikTest._Default" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!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>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
            <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
            </telerik:RadScriptManager> 
            <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" /> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="PanelBar1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            <telerik:RadPanelBar      
                    ID="PanelBar1"      
                    runat="server"      
                    OnItemDataBound="PanelBar1_OnItemDataBound"    
                    Skin="Vista"    
                    DataTextField="Name"    
                    DataValueField="ID"    
                    ExpandMode="SingleExpandedItem"    
                    >    
                    <Items>    
                            <telerik:RadPanelItem Value="SubItem" runat="server">     
                                    <ItemTemplate>    
                                            <asp:Repeater     
                                                    ID="SubItemList"      
                                                    runat="server">     
                                                    <ItemTemplate>    
                                                            <asp:CheckBox      
                                                                    id="uiItem"      
                                                                    runat="server"      
                                                                    Text='<%# DataBinder.Eval(Container.DataItem, "Name").ToString() %>'      
                                                                    />    
                                                            <br />    
                                                    </ItemTemplate>    
                                            </asp:Repeater>    
                                    </ItemTemplate>    
                            </telerik:RadPanelItem>    
                    </Items>    
            </telerik:RadPanelBar>    
 
    </div> 
    </form> 
</body> 
</html> 
 

Code Behind
using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
namespace TelerikTest  
{  
    public partial class _Default : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            List<ParentItem> pLst = new List<ParentItem>();  
 
            for (int i = 0; i < 10; i++)  
            {  
                pLst.Add(new ParentItem(i, string.Format("Parent {0}", i.ToString())));  
            }  
 
            PanelBar1.DataSource = pLst;  
            PanelBar1.DataBind();  
        }  
 
        protected void PanelBar1_OnItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)  
        {  
            Repeater subItem = (Repeater)e.Item.Items.FindItemByValue("SubItem").FindControl("SubItemList");  
 
 
            int ID = int.Parse(e.Item.Value);  
            subItem.DataSource = GetItems(ID).Values;  
            subItem.DataBind();  
        }  
 
        private SortedList<int, CustomItem> GetItems(int ID)  
        {  
            SortedList<int, CustomItem> lst = new SortedList<int, CustomItem>();  
 
            for (int i = 0; i < 10; i++)  
            {  
                CustomItem item = new CustomItem(i, string.Format("Item {0}", i), ID);  
 
                lst.Add(i, item);  
            }  
 
            return lst;  
        }  
    }  
 
    public class CustomItem  
    {  
        public int ID { getset; }  
        public string Name { getset; }  
        public int ParentID { getset; }  
 
        public CustomItem(int id, string name, int parentID)  
        {  
            ID = id;  
            Name = name;  
            ParentID = parentID;  
        }  
    }  
 
    public class ParentItem  
    {  
        public int ID { getset; }  
        public string Name { getset; }  
 
        public ParentItem(int id, string name)  
        {  
            ID = id;  
            Name = name;  
        }  
    }  
}  
 


Paul
Telerik team
 answered on 24 Mar 2009
12 answers
244 views
Is there a way to have the grid default to Descending when a sort is used. I don't want the grid to come up sorted by default. I simply want it to use Descending first as the default sort direction. I was surprised that there wasn't a property in the sort settings to do this. Am i missing something?
Sebastian
Telerik team
 answered on 24 Mar 2009
2 answers
169 views
I have a page with a RadToolBar which works perfectly in IE7 and Firefox 3 but having installed IE8 it throws a script error when a button is clicked.

I have created a stripped down page with just a toolbar in and I am getting the same error.  The error occurs when clicking on a dropdown item from a RadToolBarSplitButton or a RadToolBarDropDown. 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="NoPanes.aspx.vb" Inherits="TelerikSplitterTest.NoPanes" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!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
 
  <script type="text/javascript"
    function toolbarOnClientClicking(sender, args) { 
      var button = args.get_item(); 
      alert('you clicked ' + button.get_text()); 
    } 
  </script> 
 
</head> 
<body> 
  <form id="form1" runat="server"
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
  </telerik:RadScriptManager> 
  <div> 
    <telerik:RadToolBar ID="RadToolBar1" runat="server" dir="rtl" Font-Size="5px" OnClientButtonClicking="toolbarOnClientClicking"
      <Items> 
        <telerik:RadToolBarButton Text="Button One" /> 
        <telerik:RadToolBarSplitButton Text="Button Two" EnableDefaultButton="false"
          <Buttons> 
            <telerik:RadToolBarButton Text="Option One" /> 
            <telerik:RadToolBarButton Text="Option Two" /> 
          </Buttons> 
        </telerik:RadToolBarSplitButton> 
        <telerik:RadToolBarDropDown Text="Button Three"
          <Buttons> 
            <telerik:RadToolBarButton Text="Option One" /> 
            <telerik:RadToolBarButton Text="Option Two" /> 
            <telerik:RadToolBarButton Text="Option Three" /> 
            <telerik:RadToolBarButton Text="Option Four" /> 
          </Buttons> 
        </telerik:RadToolBarDropDown> 
      </Items> 
    </telerik:RadToolBar> 
  </div> 
  </form> 
</body> 
</html> 
 

According to the IE8 script debugger the error is:

  Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3aa7e79140, line 4240 character 1 

The line the error points to is
this.get_animationContainer().style.zIndex=this._originalZIndex; 

The error is thrown as the dropdown closes.

I'm using Visual Studio 2008 and the project is using .NET Framework 3.5 SP1 with the 2009.1.311.35 version of the Telerik.Web.UI.dll from the Bin35 folder.

Is this a known error and is there a fix for this?

Thanks,
Nick


Nick
Top achievements
Rank 1
 answered on 24 Mar 2009
3 answers
134 views
Hi,

I need to apply Selected/Enabled/Disbaled Images to tabstrip tabs to give it better look.

Also if it is possible thur stylesheet request you to please suggest something as ijust need to give impression when Tab is selected/enabled/disaabled as not all skins provided support this feature..e.g Outlook,SimpleGray etc.

Thanks and regards,
Manish Patel
Paul
Telerik team
 answered on 24 Mar 2009
1 answer
80 views
Do I have to do a Telerik installation on the server when I do a service release upgrade?
Ivo
Telerik team
 answered on 24 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?