Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.1K+ views
I am having problems with the RadDatePicker.

We have a situation where the calendar should ONLY allow selection of dates that are in our special date list.  How do you go about disabling all other dates in the control?

A VB code example would be greatly appreciated.

Thanks,

Matt
Vasil
Telerik team
 answered on 08 Feb 2013
3 answers
88 views
Hi I have a problem when I use advanced form with safari.
Attached images display with explorer and safari
Can you help? thanks
Plamen
Telerik team
 answered on 08 Feb 2013
2 answers
114 views
How can I display the lite RADEditor in Display Mode (webpart or as part of a custom webpart)? I want to have a webpart where the user enters formatted text, and the have them submit it, so I can automatically generate a new page with the provided (formatted) text.
I do not want the page where the (custom) webpart resides to be in edit-mode.
Peter
Top achievements
Rank 1
 answered on 08 Feb 2013
6 answers
161 views
when you choose the

AllowMultiRowSelection="true"

setting along with a GridClientSelectColumn, the header text disappears. Also, it appears to be impossible to select a HeaderButtonType or ButtonType for this column, even though these options are presented as available.

Thanks,
-D

Shinu
Top achievements
Rank 2
 answered on 08 Feb 2013
1 answer
78 views
Hi all,

In my RadGrid, I need to customize the background color of a row when it is highlighted and selected.
Any help would be appreciated.
Princy
Top achievements
Rank 2
 answered on 08 Feb 2013
1 answer
80 views
Hi,

I have a RadGrid, in that, I want to extract the text typed in the filter textbox which is in itemcommand event. I also enabled the filtering of columns. How can I access that? Please provide some solutions.
Shinu
Top achievements
Rank 2
 answered on 08 Feb 2013
1 answer
107 views
Hi all,

How to disable selecting rows in RadGrid and I need to it in Client side.
Please provide an answer as soon as possible.

Thanks in advance.

Shinu
Top achievements
Rank 2
 answered on 08 Feb 2013
1 answer
161 views
I am trying to do the following;

Display 5 items in a listview with three items on the top and two items below the first three items. The problem I am having is that I need the two items centered below the top three items but can't seem to find a way to get that done. Currently my solution uses a basic list view but that only diplayes items in a block style with all items aligned left.

Does anyone know of a way that I can display my five items in two rows with the two bottom items centered below the top three item? If you do please share your suggestion so I can learn.

Thanks,

Jaime
Christophe
Top achievements
Rank 1
 answered on 08 Feb 2013
3 answers
163 views
Hi there,

I browsed the forum and check the online help documentation as well but no matter what I can't get it to work.
The doc says :

protected void RadListView1_ItemCreated(object sender, RadListViewItemEventArgs e)
{
    if (e.Item is RadListViewDataItem)
    {
        Label label = e.Item.FindControl("Label1") as Label;
    }
}
It looks pretty easy but still. See below my code. I'm creating a ListView in the code behind since I need to name some controls using IDs of some of my DB objects. Therefore in my ItemTemplate and AlternatatingItemTemplate (as described here : telerik doc) I needed to bind the Table element to get the required ID from the DB prior to building up the controls inside:
protected void Page_Init(object sender, EventArgs e)
        {
            rlvConfigGng = new RadListView();
            rlvConfigGng.ID = "rlvConfigGng";
            rlvConfigGng.DataSourceID = "dsConfigGng";
            rlvConfigGng.ItemCommand += new EventHandler<RadListViewCommandEventArgs>(rlvConfigGng_ItemCommand);
            rlvConfigGng.LayoutTemplate = new LayoutTemplate();
            rlvConfigGng.ItemTemplate = new ItemTemplate();
            rlvConfigGng.AlternatingItemTemplate = new AlternItemTemplate();
            rlvConfigGng.InsertItemTemplate = new InsertTemplate();
            rlvConfigGng.EditItemTemplate = new EditItemTemplate();
            rlvConfigGng.ItemPlaceholderID = "itemPlaceholder";
 
// This is where I declare my event handler when an Item has been created
            rlvConfigGng.ItemCreated += new EventHandler<RadListViewItemEventArgs>(rlvConfigGng_ItemCreated);
 
            var rbtInsert = new RadButton();
            rbtInsert.ID = "rbtInsert";
            rbtInsert.Text = "Create New Set";
            rbtInsert.Icon.PrimaryIconCssClass = "rbAdd";
            rbtInsert.Click += new EventHandler(rbtInsert_Click);
 
// gngPlaceHolder is the PlaceHolder defined in my aspx page and containing my ListView
            gngPlaceHolder.Controls.Add(rlvConfigGng);
            gngPlaceHolder.Controls.Add(rbtInsert);
        }   
 
        void rlvConfigGng_ItemCreated(object sender, RadListViewItemEventArgs e)
        {
            if (e.Item is RadListViewDataItem)
            {
                var item = e.Item as RadListViewDataItem;
                var n = e.Item.FindControl("rtbValue_1_1") as RadNumericTextBox;
// n is ALWAYS null. I can't find my control in there  :(
            }
        }
 
public class ItemTemplate : ITemplate
    {
        #region ITemplate Members
        private int _idx { get; set; }
 
        public ItemTemplate()
        {
            _idx = 1;
        }
 
        public void InstantiateIn(Control container)
        {
 
            var ItemTable = new Table();
            ItemTable.DataBinding += new EventHandler(ItemTable_DataBinding);
 
            container.Controls.Add(ItemTable);
        }
 
        void ItemTable_DataBinding(object sender, EventArgs e)
        {
            Table ItemTable = (Table)sender;
            var setId = new Label(); // This is the label holding the DB value, and the reason why I need to put that code in my databinding event
            setId.ID = "setId";
            setId.Text = ((ItemTable.NamingContainer as RadListViewDataItem).DataItem as DataRowView)["SetId"].ToString();
            var ItemTableRow1 = new TableRow();
            var ItemTableRow2 = new TableRow();
            var ItemTableRow3 = new TableRow();
            var ItemTableRow4 = new TableRow();
            var ItemTableRow5 = new TableRow();
            var ItemTableRow6 = new TableRow();
 
            ItemTable.CssClass = "gngSets";
            for (var cnt = 0; cnt < 13; cnt++)
                ItemTableRow1.Cells.Add(new TableCell());
 
            var rbtDelete = new ImageButton();
            rbtDelete.CommandName = "Delete";
            rbtDelete.CommandArgument = setId.Text;
 
            ItemTableRow1.Cells[0].Controls.Add(setId);
            ItemTableRow1.Cells[0].RowSpan = 6;
            ItemTableRow1.Cells[0].Controls.Add(rbtDelete);
            ItemTableRow1.Cells[2].Controls.Add(new Label() { Text = "Value" });
            ItemTableRow1.Cells[3].Controls.Add(new Label() { Text = "Display Message" });
            ItemTableRow1.Cells[4].Controls.Add(new Label() { Text = "#" });
            ItemTableRow1.Cells[5].Controls.Add(new Label() { Text = "Go ?" });
            ItemTableRow1.Cells[6].Controls.Add(new Label() { Text = "Enable" });
            ItemTableRow1.Cells[8].Controls.Add(new Label() { Text = "Value" });
            ItemTableRow1.Cells[9].Controls.Add(new Label() { Text = "Display Message" });
            ItemTableRow1.Cells[10].Controls.Add(new Label() { Text = "#" });
            ItemTableRow1.Cells[11].Controls.Add(new Label() { Text = "Go ?" });
            ItemTableRow1.Cells[12].Controls.Add(new Label() { Text = "Enable" });
 
// This part generate TableCells collection to embed my controls
            ItemTableRow2.Cells.AddRange(_tcc(_idx, setId.Text));
            ItemTableRow3.Cells.AddRange(_tcc(++_idx, setId.Text));
            ItemTableRow4.Cells.AddRange(_tcc(++_idx, setId.Text));
            ItemTableRow5.Cells.AddRange(_tcc(++_idx, setId.Text));
            ItemTableRow6.Cells.AddRange(_tcc(++_idx, setId.Text));
 
            ItemTable.Rows.Add(ItemTableRow1);
            ItemTable.Rows.Add(ItemTableRow2);
            ItemTable.Rows.Add(ItemTableRow3);
            ItemTable.Rows.Add(ItemTableRow4);
            ItemTable.Rows.Add(ItemTableRow5);
            ItemTable.Rows.Add(ItemTableRow6);
        }
 
        private TableCell[] _tcc(int idx, string setId)
        {
            var tcc = new TableCell[12];
            var rtbDisplayMsg = new RadTextBox();
            var rtbNumber = new RadNumericTextBox();
            var rtbValue = new RadNumericTextBox();
            var cbgng = new RadButton();
            var cbEnabled = new RadButton();
 
            cbgng.ButtonType = RadButtonType.ToggleButton;
            cbgng.ToggleType = ButtonToggleType.CheckBox;
            cbgng.AutoPostBack = false;
            cbEnabled.ButtonType = RadButtonType.ToggleButton;
            cbEnabled.ToggleType = ButtonToggleType.CheckBox;
            cbEnabled.AutoPostBack = false;
 
// This is where I setup my controls IDs according to the setId value coming from my DB
            rtbValue.ID = "rtbValue_" + setId + "_" + idx;
            rtbNumber.ID = "rtbNumber_" + setId + "_" + idx;
            rtbDisplayMsg.ID = "rtbDisplayMsg_" + setId + "_" + idx;
            cbgng.ID = "cbgng_" + setId + "_" + idx;
            cbEnabled.ID = "cbEnabled_" + setId + "_" + idx;
 
            var rtbDisplayMsg1 = new RadTextBox();
            var rtbNumber1 = new RadNumericTextBox();
            var rtbValue1 = new RadNumericTextBox();
            var cbgng1 = new RadButton();
            var cbEnabled1 = new RadButton();
 
            cbgng1.ButtonType = RadButtonType.ToggleButton;
            cbgng1.ToggleType = ButtonToggleType.CheckBox;
            cbgng1.AutoPostBack = false;
            cbEnabled1.ButtonType = RadButtonType.ToggleButton;
            cbEnabled1.ToggleType = ButtonToggleType.CheckBox;
            cbEnabled1.AutoPostBack = false;
 
            rtbValue1.ID = "rtbValue_" + setId + "_" + (idx + 5);
            rtbNumber1.ID = "rtbNumber_" + setId + "_" + (idx + 5);
            rtbDisplayMsg1.ID = "rtbDisplayMsg_" + setId + "_" + (idx + 5);
            cbgng1.ID = "cbgng_" + setId + "_" + (idx + 5);
            cbEnabled1.ID = "cbEnabled_" + setId + "_" + (idx + 5);
 
// I then add my controsl to my TableCells
            for (var cnt = 0; cnt < tcc.Length; cnt++)
                tcc[cnt] = new TableCell();
            tcc[0].Controls.Add(new Label() { Text = idx + "." });
            tcc[1].Controls.Add(rtbValue);
            tcc[2].Controls.Add(rtbDisplayMsg);
            tcc[3].Controls.Add(rtbNumber);
            tcc[4].Controls.Add(cbgng);
            tcc[5].Controls.Add(cbEnabled);
            tcc[6].Controls.Add(new Label() { Text = (idx + 5) + "." });
            tcc[7].Controls.Add(rtbValue1);
            tcc[8].Controls.Add(rtbDisplayMsg1);
            tcc[9].Controls.Add(rtbNumber1);
            tcc[10].Controls.Add(cbgng1);
            tcc[11].Controls.Add(cbEnabled1);
 
            return tcc;
        }
 
        #endregion
    }
What Am I doing wrong ? I wish I could just set up my templates in aspx and bind their values to it but I need 2 datasources. One for my ListItems and a second one for the controls contained in my items (see image attached). Idea anyone ? Thanks
Christophe
Top achievements
Rank 1
 answered on 07 Feb 2013
3 answers
173 views
Hi Guys,
We have a project that uses the old RadComboBox and RadGrid controls... prior to Telerik.Web.UI.dll.
We have the Q1 2009 package and the Q3 2009 package. the Q3 package does not contain the individual controls.
A client detected the XSS vulnerability which is apparently fixed in the Q2 2009 package.
Our Telerik support expired in November last year and logistics mean renewal won't be immediate.

First, can someone please tell me if the Q2 2009 package actually contained the individual controls (Bin folder, not Bin35) ?
If so, does anyone know where I can obtain a 'sample' that happens to contain non-evaluation versions of RadGrid and RadComboBox dlls from Q2 2009?

Assistance much appreciated as it's not feasible right now to upgrade to Web.UI.dll

Catherine
(on Behalf of Terry)
Pavlina
Telerik team
 answered on 07 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?