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

I have a question regarding the behavior of the RadRating control.  I have a dynamically-created RadPanelBar that grabs its header text from a SQL server and then passes that to an ITemplate to create the custom header control.  Certain items from our database will also have a rating in the header as well.

For the rating itself, have a custom image URL for each rating item (a star with a different letter, depending on the index of the item being created).  It's been decided that showing the star/letter icons for each selected item will make the page look too busy when there are several high-rated items.

So here's the question: is it possible for a rating to have multiple SelectedImageUrl properties for a rated item?  For example, if the rating is 4 stars, can the control be set to show 3 filled stars and have the 4th be the star with the letter in it?
Ianko
Telerik team
 answered on 26 Dec 2014
3 answers
87 views
Hi,
I have  a scheduler where I grouped resources vertically, all technicians are listed in the left of scheduler. I would like to have a context menu on these technicians (one of the resource). How can I attach context menu to resource header  ?

Thanks,
Prava
Peter Filipov
Telerik team
 answered on 25 Dec 2014
1 answer
35 views
I've been able to edit the collection of client side items of the drop down list.
My problem is, these edits aren't accessible on the server side.
When a postback occurs, I only see the original list item collection.

I don't see what I've done wrong. Here's what I've got so far:
var ddl = $find("<%=_ddlLidsIndicators.ClientID%>");
ddl.get_items().clear();
 
var selectItem = new Telerik.Web.UI.DropDownListItem();
selectItem.set_text("Select...");
ddl.get_items().add(selectItem);
 
$.each(data, function (index, value) {
    var newItem = new Telerik.Web.UI.DropDownListItem();
    newItem.set_text(value);
    newItem.set_value(index);
    ddl.get_items().add(newItem);
});
 
var otherItem = new Telerik.Web.UI.DropDownListItem();
otherItem.set_text("Other");
ddl.get_items().add(otherItem);
 
ddl.commitChanges();
Timothy
Top achievements
Rank 1
 answered on 25 Dec 2014
2 answers
641 views
Hello,

I'm trying to manipulate the items in my raddropdownlist via jquery.

I found this page with documentation:
http://www.telerik.com/help/aspnet-ajax/dropdownlistitemcollection-client-object-api.html

the Add() method requires a DropDownListItem parameter.
But I can't find any documentation on how to declare a var of that type.
Is it in a namespace somewhere that I haven't found?

Please advise.
Thank you.
Timothy
Top achievements
Rank 1
 answered on 25 Dec 2014
3 answers
307 views
Hey

I'm using Kendo Hierarchical grid, just as one of listed in your demos (http://demos.telerik.com/aspnet-mvc/grid/hierarchy). My issue is, I want to apply a filter on one of columns (on parent grid) such that it will also be applied on Child grid column. My issues are:

1. How do i know if there is filter applied on parent grid column, since there is no such even handler for filter on grid. 
2. I want to data appear in child grid columns(if exists), even if entry doesn't exist on parent grid column

I did some experiments by passing the filter collection from parent grid to child grid (since both have similar schema), but again, but couldn't sort out the answers for those two questions


Thanks

Abdul Rehman
Dimo
Telerik team
 answered on 25 Dec 2014
1 answer
215 views

Is there a way to disable the mouse wheel scrolling from moving the slider?
(My end-users keep accident;y changing their event status as the scroll down the page)

Joana
Telerik team
 answered on 25 Dec 2014
1 answer
890 views
Hi,
How to add new row in radgrid in client side. I have tried the following way
The Code is:
function addNewItem(sender,args) {
  var MasterGrid = grid;
var masterTableView = MasterGrid .get_masterTableView();
var batchEditingManager = MasterGrid .get_batchEditingManager();
batchEditingManager.addNewRecord(masterTableView);
}

When I click the new row the row was created in radgrid. but the template column was not created also the index was set to -1,-2, etc...
In Radgrid we using shift click function so its throws script error.


I need to add multiple row one by one on rad button click not command button and I have one Rad Button checkbox template column in my grid how can I achieve this.
Eyup
Telerik team
 answered on 25 Dec 2014
1 answer
241 views
Hello,

One of the requirement of our client is Excel export and Import data to radgrid. I am using RADGrid in BatchEdit mode,the data from the grid will be exported as excel. This has been done already using openxml. The data in the exported excel will be edited by the user. He may add new data. Once done the changes in the excel, the user wants to import the excel in Radgrid batchedit and save the changes in database.

In summary, the client wants to work offline with exported excel and then import the modified excel to the application.

How to do this import part in batch edit mode. Can you please share a sample project?
Deyan Enchev
Telerik team
 answered on 25 Dec 2014
5 answers
119 views
Hello,
I have a Treeview in a related ComboBox.
<telerik:GridTemplateColumn DataField="LayoutTypeID"
    FilterControlAltText="Filter LayoutTypeID column" HeaderText="Layout Type"
    UniqueName="LayoutTypeID">
    <EditItemTemplate>
        <telerik:RadComboBox ID="LayoutTypeIDRadComboBox" runat="server"
            DataSourceID="ODSLayoutTypes"
            DataTextField="TypeName"
            DataValueField="TypeID"
            onselectedindexchanged="LayoutTypeIDRadComboBox_SelectedIndexChanged"
            AutoPostBack="true"
            SelectedValue='<%# Bind("LayoutTypeID") %>'>
        </telerik:RadComboBox>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="LayoutTypeIDLabel" runat="server"
            Text='<%# Eval("LayoutTypeID") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="LayoutID"
    FilterControlAltText="Filter column1 column" HeaderText="Layout"
    UniqueName="LayoutID">
    <EditItemTemplate>
        <telerik:RadComboBox ID="LayoutIDRadComboBox"
            runat="server" Culture="de-DE"
            <ItemTemplate>
                <div id="div1">
                    <telerik:RadTreeView ID="RTVLayouts"
                        runat="server"                                                                     
                        onnodedatabound="RTVLayouts_NodeDataBound" >
                    </telerik:RadTreeView>
                </div>
            </ItemTemplate>                                                    
        </telerik:RadComboBox>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="LayoutIDLabel" runat="server" Text='<%# Eval("LayoutID") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>

protected void LayoutTypeIDRadComboBox_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    RadComboBox RCBLayoutTypes = sender as RadComboBox;
    GridEditableItem item = RCBLayoutTypes.NamingContainer as GridEditableItem;
 
    RadComboBox RCBLayouts = item.FindControl("LayoutIDRadComboBox") as RadComboBox;
 
    int layoutTypeID = 0;
    try
    {
        layoutTypeID = Convert.ToInt32(e.Value);
    }
    catch
    {
        layoutTypeID = 0;
    }
 
    LoadLayoutsForTreeView(layoutTypeID.ToString(), RCBLayouts);
}
 
protected void LoadLayoutsForTreeView(string LayoutTypesID, RadComboBox rcbl)
{
 
    if (LayoutTypesID != string.Empty)
    {
        //rcbSelectLayout.ClearSelection();
        LayoutsBLL lbll = new LayoutsBLL();
        RadTreeView rtv = (rcbl.Items[0].FindControl("RTVLayouts")) as RadTreeView;
        rtv.DataSource = lbll.GetLayoutsByLayoutTypes(Convert.ToInt32(LayoutTypesID));
        rtv.DataValueField = "LayoutID";
        rtv.DataTextField = "LayoutName";
        rtv.DataFieldID = "LayoutID";
        rtv.DataFieldParentID = "ParentID";
        rtv.DataBind();          
    }
 
}


Treeview in combobox can not be found. I get an ArgumentOutOfRangeException - Items count is 0.

Best regards
Reiner
Eyup
Telerik team
 answered on 25 Dec 2014
2 answers
133 views
Hi,

I have a requirement to create a number of server controls (e.g. asp textboxes etc.) as well as RadDateTimePickers dynamically (e.g. at runtime) on a webform. I'm using the same approach to create instances of both types of control (see below):

TextBox txt = new TextBox();
txt.ID = "someid"
txt.CssClass = "my-textbox-class";
ph.Add(txt); //add to placeholder control
 
RadDateTimePicker dtp = new RadDateTimePicker();
dtp.ID = "adifferentid";
dtp.Width = new Unit(200, UnitType.Pixel);
dtp.DateInput.CssClass = "my-datepicker-class";
dtp.TimeView.Interval = new TimeSpan(0, 30, 0);
dtp.TimeView.Columns = 6;
ph.Add(dtp); //add to placeholder control

Because they're created dynamically I recreate the controls every time there is a postback. I've noted that the regular asp controls maintain any values entered into them automatically after they're recreated however the RadDateTimePickers don't. Is there something I'm missing?

Thanks

Eyup
Telerik team
 answered on 25 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?