Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
How can I change a property on a RadDatePicker that will reflect any RadDatePicker on a given web form?

I can prototype an event such as parseDate() using: 
Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, theDate) {
    ...
}

How can I do something similar with a property such as ShowRowHeaders=false??

Basically I do not want any RadDatePicker added to a web project to have this default of True.
Vasil
Telerik team
 answered on 03 Sep 2012
1 answer
155 views
Hello,

I have a radgrid created dynamically. It contains an GridTemplateColumn with an ItemTemplate and an EditItemTemplate created programmatically too.
The MasterTableView's EditMode is set to InPlace. When i update my row, I fire the UpdateCommand event, but the hashtable does not contain any value.
if (e.CommandName == RadGrid.UpdateCommandName)
{
    if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode))
    {
        GridEditableItem item = (GridEditableItem)e.Item;
 
        TextBox txtAmount = new TextBox();
        TextBox txtQuantity = new TextBox();
 
        int ID_Profil = Convert.ToInt32(item.GetDataKeyValue("ID_Profil"));
        if (ID_Profil != 0)
        {
            DataTable objectifsTable = this.GridSource;
            //Locate the changed row in the DataSource
            DataRow[] changedRows = objectifsTable.Select("ID_Profil = " + ID_Profil.ToString());
 
            if (changedRows.Length != 1)
            {
                e.Canceled = true;
                return;
            }
 
            //Update new values
            Hashtable newValues = new Hashtable();
 
            grd_objectifs.Items[item.ItemIndex].ExtractValues(newValues);
                changedRows[0].BeginEdit();
                try
                {
                    foreach (DictionaryEntry entry in newValues)
                    {
                        changedRows[0][(string)entry.Key] = entry.Value;
                    }
                    changedRows[0].EndEdit();
                }
                catch (Exception ex)
                {
                    changedRows[0].CancelEdit();
                    e.Canceled = true;
                }
        }
    }
}
Andrey
Telerik team
 answered on 03 Sep 2012
1 answer
76 views
Hi, I'm using ASP.NET AJAX version 2011.3.1305.35.

I'm trying to do something as simple as:
1)  Add all RadComboBoxItems to the combobox by looping through a List.
2)  Add an Attribute to each RadComboBoxItem, in that same loop.

When I bind the combo box by setting the DataSource Property to my List, the items display as expected. 

PROBLEM:
When I loop through the List and add the items and attributes, all of the items and  attributes are added, but the items do NOT display in the combo box.  The combo box appears blank / empty.

I can tell they are there though, by using a javascript Alert on the selectedindexchanged event of the combo box.

The combo box displays in a Rad Grid row, when the row is in edit mode.
The combo box is populated during the ItemDataBound event of the RadGrid, when the row is put into edit mode.

My code follows (but I've tried a whole bunch of variations of it):

I've tried not doing a DataBind;  I've tried doing the DataBind after adding all of the items, I've tried setting the AppendDataBoundItems property to True.  No matter what I do, my combo box is populated BUT IT displays as being EMPTY / BLANK.

comboBox.DataValueField = "emEventID"
comboBox.DataTextField = "emEventTitle"
comboBox.DataBind()
 
Dim cbItem As RadComboBoxItem
For Each project As EM_EventsItem In filteredEventsList
    cbItem = New RadComboBoxItem(project.emEventTitle, project.emEventID)
    cbItem.Attributes.Add("UserPermissionLevel", project.UserPermissionLevel)
    comboBox.Items.Add(cbItem)
    cbItem.DataBind()
Next

Nencho
Telerik team
 answered on 03 Sep 2012
5 answers
340 views
Hi i just can't seem to get it working i get this

Warning   1   Error updating JScript IntelliSense: Telerik.Web.UI.Common.jQuery-vsdoc.js:Telerik.Web.UI: 'jQuery' is undefined @ 8060:0

and i have KB958502 installed but this is really annoying and i was looking forward to this update.

Regards
wong
Top achievements
Rank 1
 answered on 03 Sep 2012
1 answer
151 views
Hi,

if i add FormDecorator for a page the controls looks fine, but if i add RadAutoCompleteBox in the form the decorator applies for all controls except for button. i have attached screenshots

after adding RadAutoCompleteBox inside RadPageView,  RadDatePicker is not working. Please check the image after_autocomplete_err1.png

Thanks,
Harish P
Ivan Zhekov
Telerik team
 answered on 03 Sep 2012
1 answer
41 views
I'm creating a chart that contains both stackedbar series and a bar series.  I want to have the bar series appear after the stackbar, but even if I add the bar series last, it always appears first.  Is there any solution for this?

Petar Marchev
Telerik team
 answered on 03 Sep 2012
3 answers
146 views
In Telerik,RadGrid - When we have only 2 records in a single page - why does it show as "2items in 1 pages" -- why cant be "2items in 1 page" ? 
Radoslav
Telerik team
 answered on 03 Sep 2012
2 answers
686 views
In textbox,cant we restrict to type only alphabets - if we give not to enter numbers.

Its been heard that Telerik controls cant work with asp.net ajax validations?
Vasil
Telerik team
 answered on 03 Sep 2012
1 answer
92 views
I have replaced Telerik 2009 to 2011 version in my project. I am using RadGrid control instead of Telerik 2009 gridview control. I am binding data to the grid but RadGrid NeedDataSource event is not firing in page load. What it could be the reason why NeedDataSource event is not firing? Please provide me the solution ASAS.

Thanks in advance.
Marin
Telerik team
 answered on 03 Sep 2012
6 answers
806 views
Hi,

Is there a way to specify the maximum length (number of digits) for the RadNumericTextBox?

Thanks
Tarun Singla
Vasil
Telerik team
 answered on 03 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?