Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
74 views
I am trying to prevent wrapping of too long columns to the second line.
I was able to do it by cutting size of the

Protected Sub AllGrids_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)

        Dim intMaxLength As Integer = 60

        Dim grd As RadGrid = CType(sender, RadGrid)

        If (TypeOf e.Item Is GridDataItem) Then

            Dim gridItem As GridDataItem = CType(e.Item, GridDataItem)

            gridItem("Description").ToolTip = gridItem("Description").Text

            If gridItem("Description").Text.Length > intMaxLength Then
                gridItem("Description").Text = gridItem("Description").Text.Substring(0, intMaxLength) + "..."
            End If

        End If

    End Sub

In addition i have to do some manipulation on export to export full size field.

There are gotta be a better way though, right?
Eyup
Telerik team
 answered on 30 Oct 2014
3 answers
259 views
People accessing a page with Telerik controls using Apple device with Safari 7 all of a sudden get this error (all other web browsers are ok) ::

TypeError: undefined is not an object (evaluating 'Sys.WebForms.PageRequestManager')       Ajax.js:84
TypeError: undefined is not an object (evaluating 'Sys.WebForms.PageRequestManager')     Ajax.js:105

I'm not sure what code you need to see - so here is a link to the page on a staging server :: http://staging.oreb.ca/main/FindListings.aspx (make take a minute to load).

Rather urgent issue.  Timely response would be appreciated.

Thank you.

Paul


Dimitar
Telerik team
 answered on 30 Oct 2014
1 answer
62 views
We are creating an app where we want client to adjust (customize) the viewable grid form based on their prefrence.
So in some casses we want to show the grid 20 minutes.

For example 1 to 2 PM would have 3 time slot each for 20 minutes instead of 30 minutes. However, if another client want to set these slot to 30 or 40 minutes they could also do it.

So that can happen in this control?  
Bozhidar
Telerik team
 answered on 30 Oct 2014
1 answer
70 views
I had enabled the check all checkbox to let user select all records.

But I found that the check all function can select the rows in the current page only, it cannot select all other records in other page when paging is enabled.

because it will have several hundred records, user don't want to disable the paging function.

Is there any solution can select records in other page ?  Thanks.

Joe
Eyup
Telerik team
 answered on 30 Oct 2014
1 answer
96 views
Hi,

We use the grouping feature of RadGrid and would like it to display the total number of items in each group next to each group. It does this automatically if a group extends to another page. How do we get it to display the total number of items for each group? We will not know in advance which fields the end user groups by. We have looked at the RadGrid documentation for GroupHeaderTemplate but it is not clear how to achieve what we need.

Thanks

Tim Metcalfe
Eyup
Telerik team
 answered on 30 Oct 2014
1 answer
71 views
I'm trying to create a project timeline app and I'd love to use the Scheduler.  
I'd like to get a full year view to see the project timelines but can't find a way to do a full year view in the calendar.
Is this possible?

Bozhidar
Telerik team
 answered on 30 Oct 2014
0 answers
90 views
We had an older version of RadEditor installed in our SharePoint 2010 environment and decided to update to the latest version since we're patching SP up to current as well.  I uninstalled the old version and installed the Telerik Web Parts for SharePoint 2010 Q3 2014 which is supposed to include the new version of the RadEditor web part.  The install finished successfully but it didn't install RadEditor.  It did install all the other web parts though.  Any thoughts on how to resolve this issue? 
Mike
Top achievements
Rank 1
 asked on 29 Oct 2014
4 answers
298 views
I have been digging around a bit looking for a good example of how to take a radcombobox and populate it using a webmethod and jquery combined... I think I am just missing something rather simple.. Any suggestions?

This is NOT a mvc project, but a traditional asp.net web forms


// This cancels the default RadComboBox behavior
function itemsRequesting(sender, args) {
    if (args.set_cancel != null) {
        args.set_cancel(true);
    }
    if (sender.get_emptyMessage() == sender.get_text())
        sender.set_text("");
}
 
function getSites(sender, args) {
    var url = baseUrl + "TagManagement/Tags.aspx/GetSiteList";
     
    $.ajax({
        async: false,
        type: "POST",
        url: url,
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            if (msg.d == null) {
                alert("The filter set returned no records");
                } else {
 
                fillCombo(sender, msg);
 
            }
        }
    }).complete(function () {
        $.unblockUI();
 
    });
 
return false;
 
}
 
function fillCombo(combo, result) {
    combo.clearItems();
 
    var items = result.d || result;
     
    // This just lets user know that nothing was returned with their search
    if (items.length == 0) {
        var comboItem = new Telerik.Web.UI.RadComboBoxItem();
        comboItem.set_text("Nothing found");
        comboItem.set_value("null");
        combo.get_items().add(comboItem);
        combo.set_text("");
    }
 
    for (var i = 0; i < items.length; i++) {
        var item = items[i];
 
        var comboItem = new Telerik.Web.UI.RadComboBoxItem();
        comboItem.set_text(item.Text);
        comboItem.set_value(item.Value);
        combo.get_items().add(comboItem);
    }
}

The Control :
<telerik:RadComboBox ID="RadComboBoxTransferSites" runat="server" CheckBoxes="true" EnableLoadOnDemand="true" OnClientItemsRequesting="getSites"
                                  EnableCheckAllItemsCheckBox="true" DataTextField="SiteName" DataValueField="SiteUID"
                                  EmptyMessage="Please Select...">
                              </telerik:RadComboBox>

The web method:
[WebMethod]
public static List<SiteList> GetSiteList()
{
    var siteList = (List<SiteList>)HttpContext.Current.Session["SiteList"];
    return siteList.ToList();
}
Wired_Nerve
Top achievements
Rank 2
 answered on 29 Oct 2014
7 answers
224 views
I have a RadComboBox with a Template.
The RadComboBox is bound to a DataSource, which returns a list of Items and Pictures. I need to add a -Choose Here- to the first item in the ComboBox. I set AppendDataBoundItems to True and I get my -Choose Here-, I also get a Blank Template item in the next line down. Then my Databound items start appearing.

I have tried a few suggestions but nothing has worked. I have tried binding the item in code behind in the on Databound event etc.

 <telerik:RadComboBox ID="RCB_Items" runat="server" AccessibilityMode="True"   
                AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="User_Items_DS"   
                DataTextField="ItemName" DataValueField="ItemID" Skin="WebBlue" Visible="False"   
                Width="250px" HighlightTemplatedItems="true">  
                  
                <ItemTemplate>  
                    <span style="vertical-align: middle;text-align:left; float: left; width: 100px;">  
                    <%#DataBinder.Eval(Container.DataItem, "ItemName")%></span>  
                    <span style="vertical-align: middle; float: none;">  
                    <img alt="" border="1" height="50"   
                        src='~/images/<%#DataBinder.Eval(Container.DataItem, "ItemId")%>'   
                        width="50" /></span>  
                </ItemTemplate>  
                          </telerik:RadComboBox>  
 
Code Behind:  
Protected Sub RCB_Items_DataBound(ByVal sender As ObjectByVal e As System.EventArgs) Handles RCB_Items.DataBound  
        Dim myItem As New RadComboBoxItem  
        myItem.Text = "-Choose Here-" 
        myItem.Value = "-1" 
        cb_Items.Items.Insert(0, myItem)  
        cb_Items.Items(0).DataBind()  
    End Sub 
Josh
Top achievements
Rank 1
Veteran
 answered on 29 Oct 2014
2 answers
293 views
I have custom actions that I need to perform on a grid, so I can't use the built-in item commands "Update and Cancel" which trigger the OnBatchEditCommand correctly. As soon as I use CommandItemTemplate tags, I lose that functionality which triggers the OnItemCommand. In code behind, the e.CommandArgument of the OnItemCommand is empty so I can't get a handle on the old and new values to perform tasks.

Please help.

Thanks,
Fahd
fahd
Top achievements
Rank 1
 answered on 29 Oct 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?