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

I'm trying to figure out the best way to achieve the following scenario:
1. Have a RadGrid display a table of information i.e.

Customer

# of Orders

# of Products Ordered

Total Revenue

John Doe

10

23

$2300.00


2. When client selects a row, to generate a report ( such as a breakdown of orders) that provides more detailed information on a value (i.e. Customer's name) in selected row.

Thanks, 
Yankev
Andrey
Telerik team
 answered on 21 Aug 2012
1 answer
66 views
I am trying to display hierarchical data in a RadGrid.  I don't know at design-time how many levels deep the hierarchy is, so it seems like I can't use the standard hierarchy option, which requires design of each level up-front.  Also, each branch of the hierarchy may not have the same number of levels.  It seems like the self-referencing hierarchy is what I want, but when I try to load the leaf-level data into the grid, it takes far too long (for approximately 5800 rows in my test case).  I would be willing to work around this via some kind of on-demand loading of the expanded data, but from other posts I have read in the forum, it sounds like the ServerOnDemand option is not supported for self-referencing hierarchies. 

Does anyone know of a way to accomplish what I need to do in a RadGrid?

Thanks,
Brian
Marin
Telerik team
 answered on 21 Aug 2012
3 answers
99 views
Is there a way to render loading style as following url in ASP.NET AJAX?
http://demos.kendoui.com/web/dropdownlist/cascadingdropdownlist.html 
Kalina
Telerik team
 answered on 21 Aug 2012
1 answer
93 views
Hi, 

I am using the latest Q2 2012 RadControls and finding that if I do the following in the TimeSlotCreated Event

   e.TimeSlot.CssClass = "Disabled"


I get the exact result I want and it looks and works great. I see appointments that are in the system, along with white area representing free time slots which can be edited, and the rest is silver/disabled. 

However, When performing any navigation commands in the scheduler - DayView, WeekView Timeline or navigate to the next day using the calendar controls, the available, active time slots disappear (see attached screen shots). 

I removed AjaxManager and stripped this down as much as I could to see if that was an issue, but it was not. Any thoughts on this greatly appreciated. Thanks!
Peter
Telerik team
 answered on 21 Aug 2012
5 answers
394 views
I have a MasterTable which uses DetailTables (in a RadGrid). The MasterTable uses AlternatingItemStyle to color every other row in the grid. The problem is that this color does not come down into the DetailTables (i.e. every other main row is colored, but ALL DetailTables are white/uncolored). I need each DetailTable to match the color/background of its associated row in the grid. Any suggestions?
Andrey
Telerik team
 answered on 21 Aug 2012
1 answer
71 views
Below is my javascript I'm using to bring up the context menu when right clicking on a radgrid row. 
the Menu.Show(Evt); line causes my whole page to shift down.  Keep in mind my ASP page is using a master page, where if I do not use a master page this does not happen.  Any Ideas?

function AssignedContextMenu(sender, eventArgs) { alert('a'); var menu = $find(""); alert('b'); var evt = eventArgs.get_domEvent(); alert('c'); var index = eventArgs.get_itemIndexHierarchical(); alert('d'); var vRow = sender.get_masterTableView().get_dataItems()[index]; alert('e'); var vQueueID = sender.get_masterTableView().getCellByColumnUniqueName(sender.get_masterTableView().get_dataItems()[index], "QueueId").innerHTML; alert('f'); if (vQueueID != ' ') { alert('g'); sender.get_masterTableView().selectItem(vRow.get_element(), true); alert('h'); document.getElementById("hidAssignedRowIndex").value = index; alert('i'); menu.show(evt); alert('j'); evt.cancelBubble = true; alert('k'); evt.returnValue = false; alert('l'); if (evt.stopPropagation) { alert('m'); evt.stopPropagation(); alert('n'); evt.preventDefault(); alert('o'); } alert('p'); } alert('q'); }
Peter
Telerik team
 answered on 21 Aug 2012
1 answer
75 views

Hi - In a Radgrid, I have a checkbox in HeaderTemplate. When the checkbox is checked, I already set to the Itemtemplate checkboxes selected. Now I need to perserve the selected rows on server-side.

I followed the link - http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-on-sorting.html

That link was working with CommandName and ItemCommand eventhandler. In my requirement,What eventhandler can I go with checkbox id that is in ItemTemplate and loop thru the selected rows in radgrid if the checkbox is selected.

Thanks in advance!

Eyup
Telerik team
 answered on 21 Aug 2012
2 answers
270 views
Hello,

I have multiple radGrids on a page and an additional dropdown control outside the RadGrid. I want to display the grids based on the selection in the dropdown. Now in the Grid's item created event, I need to get the dropdown's selected value which I am unable to get as the Item created event is fired before the dropdown's selectedindex changed event. Any help on this is greatly appreciated.

- Sushanth.
Sushanth
Top achievements
Rank 1
 answered on 21 Aug 2012
17 answers
576 views
When using RadCombobBox in an update panel the RadCombobBox freezes and the others control won't make any partial post back.
This happens also with RadAjaxPanel and only in Visual Studio 2010 beta2.
When removing the RadComboBox everything works as expected.

In VS2008 works as expected.

Ex.

WebForm1.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"
        </telerik:RadScriptManager> 
        <asp:UpdatePanel ID="Upd1" runat="server"
            <ContentTemplate> 
                <div> 
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
                        <asp:ListItem>aaaaa</asp:ListItem> 
                        <asp:ListItem>vvvvvv</asp:ListItem> 
                        <asp:ListItem>ccccc</asp:ListItem> 
                        <asp:ListItem>dddddd</asp:ListItem> 
                        <asp:ListItem>eeewqewq</asp:ListItem> 
                    </asp:DropDownList> 
        <br /> 
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> 
        <br /> 
                    <telerik:RadComboBox ID="RadComboBox1" Runat="server"
                        <Items> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"  
                                Value="RadComboBoxItem1" /> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"  
                                Value="RadComboBoxItem2" /> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3"  
                                Value="RadComboBoxItem3" /> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4"  
                                Value="RadComboBoxItem4" /> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5"  
                                Value="RadComboBoxItem5" /> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem6"  
                                Value="RadComboBoxItem6" /> 
                            <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem7"  
                                Value="RadComboBoxItem7" /> 
                        </Items> 
                    </telerik:RadComboBox> 
                </div> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </div> 
    </form> 
</body> 
</html> 
 

WebForm1.aspx.cs

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
namespace WebApplication1 
    public partial class WebForm1 : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            TextBox1.Text = DropDownList1.SelectedValue; 
        } 
    } 


Kalina
Telerik team
 answered on 21 Aug 2012
1 answer
54 views
Hello,

I currently have a radlistbox that is fully populated.  The sectionmode is set to Multiple.  When I try to select more than 800 rows I get the following error: Stop running this script?  A script on this page is causing your web browser to run slowly.  If it continues to run, your computer might become unresponsive."  in IE8 (works in IE9)

I have two listbox which I'm transferring rows between (which works fine).  The issue is with the browser/client trying to highlight/select multiple rows.  For testing purposes I set the listbox to AutoPostBack.  I noticed "SelectedIndexChanged" get's fired on the first click.  Then I Shift-click the last row and I get the above error message before it post back to the server (indicating it's the client side that's failing)

 
<telerik:RadListBox ID="lbCostCentre" runat="server" Height="550px"
             Width="270px" AllowTransfer="True" AllowTransferOnDoubleClick="True"
             AutoPostBackOnDelete="True" AutoPostBackOnTransfer="True"
             EnableDragAndDrop="True" SelectionMode="Multiple"
             TransferToID="lbAssignedCostCentre" AutoPostBack="True"
         EnableTheming="False">
         <ButtonSettings TransferButtons="Common" ShowTransferAll="False">
         </ButtonSettings>
     </telerik:RadListBox>


Dimitar Terziev
Telerik team
 answered on 21 Aug 2012
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?