Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
I am trying to set the BackColor property in the ItemStyle using this guide http://www.telerik.com/help/aspnet-ajax/grdgettingstarted.html
but I am getting the following error :

Properties :

Object reference not set to an instance of an object.
Princy
Top achievements
Rank 2
 answered on 04 Nov 2008
3 answers
165 views
Hi, I am attempting to use a Tabstrip / Multipage inside a custom control. I have created a simple control to illustrate the problem I am having.
using System;  
using System.Collections.Generic;  
using System.Text;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using Telerik.Web.UI;  
 
namespace BT.NIEA.StakeholderControls  
{  
    [ToolboxData("<{0}:TestTabStrip runat=server></{0}:TestTabStrip>")]  
    public class TestTabStrip : WebControl  
    {  
        protected override void OnInit(EventArgs e)  
        {  
            // Create a Panel  
            Panel pnlCreate = new Panel();  
            pnlCreate.Visible = true;  
            // Create a Tabs Strip  
            RadTabStrip ts = new RadTabStrip();  
 
            RadTab tab1 = new RadTab();  
            tab1.Text = "Basic Information";  
            tab1.Selected = true;  
 
            RadTab tab2 = new RadTab();  
            tab2.Text = "Address Details";  
 
            RadTab tab3 = new RadTab();  
            tab3.Text = "Optional Information";  
 
            ts.Tabs.Add(tab1);  
            ts.Tabs.Add(tab2);  
            ts.Tabs.Add(tab3);  
 
            // Create a Multipage  
            RadMultiPage rmpCreate = new RadMultiPage();  
            // Set the multipage ID of the tab strip  
            ts.MultiPageID = "rmpCreate";  
            rmpCreate.SelectedIndex = 0;  
 
            // Create a Page View  
            RadPageView pvPage1 = new RadPageView();  
            // Create a Button and add it to the PageView  
            Button myButton1 = new Button();  
            myButton1.Text = "Button 1";  
            pvPage1.Controls.Add(myButton1);  
 
            // Create a Page View  
            RadPageView pvPage2 = new RadPageView();  
            // Create a Button and add it to the PageView  
            Button myButton2 = new Button();  
            myButton2.Text = "Button 2";  
            pvPage2.Controls.Add(myButton2);  
 
            // Create a Page View  
            RadPageView pvPage3 = new RadPageView();  
            // Create a Button and add it to the PageView  
            Button myButton3 = new Button();  
            myButton3.Text = "Button 3";  
            pvPage3.Controls.Add(myButton3);  
 
            // Add the PageViews to Our Multi Page  
            rmpCreate.PageViews.Add(pvPage1);  
            rmpCreate.PageViews.Add(pvPage2);  
            rmpCreate.PageViews.Add(pvPage3);  
            // Add The TabStrip to Our Panel  
            pnlCreate.Controls.Add(ts);  
            // Add the MultiPage to the Panel  
            pnlCreate.Controls.Add(rmpCreate);  
            // Finally add the Panel to the Page  
            this.Controls.Add(pnlCreate);  
        }  
        protected override void Render(HtmlTextWriter writer)  
        {  
            base.Render(writer);  
        }  
    }  
} 

This gives me a JavaScript error: 'undefined is null or not an object', and the tabstrip will not change multipage.
Could someone advise where I am going wrong please?
Mick
Top achievements
Rank 1
 answered on 04 Nov 2008
2 answers
332 views
Hey All,

I am using the RadEditor control (the most recent version) and have implemented a custom toolbar button with a custom dialog.  The controls TextChanged event was working just fine until I implemented the custom toolbar button and dialog.  However, since the implementation of those items the TextChanged event quit firing.  My situation may be unique because I am using a commercial version of Sitefinity.  The editor control is being used in a custom edit mode for a custom control.  Does anyone have any suggestions as to why the TextChanged event is not firing?

Thank You.
-Drew
Rumen
Telerik team
 answered on 04 Nov 2008
2 answers
95 views
In which version of Telerik(Q1,Q2 2008) RadListBox control is available ?

Please do the needful.

Thanks & Regards,
Yuvaraj S.P
Mail me @ : yuvaraj.sp@polaris.co.in
yuva
Top achievements
Rank 1
 answered on 04 Nov 2008
1 answer
123 views
Well, tomorrow the 4th is the last day for the special package price, so I need this answered right away.

I have Q3 ASP.net beta version.

Does this support LINQ to SQL? Are there any known problems with using Linq to SQL in my entire project for all controls?

My application is going to be 100% linq to sql, so is this going to be a problem?

thanks.

Moon.
Sebastian
Telerik team
 answered on 04 Nov 2008
1 answer
152 views
Hi,
I have to create one user control where grid generates dynamically by passing datatable as a datasource. Here if one of my columns is GridDropDownColumn then on editing, dropdown should be displayed by setting datatable as a datasource that will be passed by aspx page. But it is not displaying in edit mode. Anybody can suggest me how to do it?? and also in edit mode user can enter his custom value.
P. N. grid has to be generated dynamically and I have to create it in Page_Load event of user control
Princy
Top achievements
Rank 2
 answered on 04 Nov 2008
1 answer
84 views
Dear all,

I am using a RadMenu at the top right border of some boxes (web parts). In some parts once the mouse is over the menu is displayed properly over the current content. In other parts, instead, it is hidden by the border of the box container as it flows "inside it" instead of being displayed at the top of it.

What is curious is that where it does not work properly in Explorer it does in Firefox and the opposite.

I also tried to set z-index:1 in the .RadMenu class (to force the menu at the top level) but the WebResource.axd file seems to keep an old version of the css file without modifications.
The same result even clearing the browser cache and setting UseEmbeddedScripts= "false"; for the RadMenu control (is there another expression to force the system to take the original file instead of taking them from cache?)

Thanks in advance.

Marcel
Veselin Vasilev
Telerik team
 answered on 04 Nov 2008
1 answer
386 views
how to get the total number of selected rows of a grid in javascript funtion?
how to get the selected rows index of grid in javascript function?

I have a button, and I want to get the above two information when I click the button in client side. Can I do this? Thanks.
Daniel
Telerik team
 answered on 04 Nov 2008
0 answers
107 views
I'm binding a radscheduler with a datasource...the problem is that the appointments are not getting displayed in the correct cells (time slots in weekly view  and day slots in monthly view)....


I have fromTime,ToTime (time only )and date (date only) fields in the DataSource....

time field's format = hh:mm:ss (12h)
date field's format = dd-mmm-yyyy


Do I have to apply specific formats  on the fields?
john
Top achievements
Rank 1
 asked on 04 Nov 2008
1 answer
100 views
I have been a user of Telerik for over 2 years and I noticed recently that everything has moved over to the Ajax suite. I can still download the last version of the normal ASP.NET controls, but I wonder, should I be using the Ajax controls because that is where the product suite is going? Can I have both the Ajax and Non-Ajax controls installed on the same machine? Would it hose me? I guess I am asking because right now, I have a mix of Ajax and non-Ajax control needs. In one scenario, just showing some tabs and displaying some data, I really don't want to use Ajax. But I seem forced to in the Ajax controls.

So my question is, can I have both Ajax and nonAjax version of RAD Controls installed? Do I need to? And if I do not...how can I turn off Ajax support from my Ajax version of the suite?
Dimo
Telerik team
 answered on 04 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?