Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 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
440 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
91 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
99 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
290 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
638 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
65 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
1 answer
107 views
Hi...

I have two dropdownlist controls with ID's ddlR and ddlD which are present in radajaxpanel. the first dropdown loads with values when page is loaded. i want second dropdownlist whose id is ddlD to be loaded when user selects some value from ddlR. but i am unable to do so...Can someone please help me...???
Eyup
Telerik team
 answered on 21 Aug 2012
1 answer
65 views
Hello all,
I am trying to follow the tutorial that covers using Telerik Controls with Out Put Caching.
I have Globally disabled embeddedScripts in the webconfig and I have copied the Entire Scripts Folder to a new Location. I use quite a few of the Controls in my project.

I have set the references to the scripts as below in Script manager:
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Core.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Animation/AnimationScripts.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/jQuery.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/jQueryPlugins.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Popup/PopupScripts.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Common/Scrolling/ScrollingScripts.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/Ajax/Ajax.js" />
<asp:ScriptReference Path="~/CMSScripts/mosaicholidays/telerik/Scripts/PanelBar/RadPanelBarScripts.js" />

The panel bar works but with some issues. My Panel bar has 3 levels
The way I have it setup is that if you click on the down arrow it just expands the children as it should. However since using embeddedScripts="false" this behaviour has gone away and clicking on the Expand arrow now takes you to the link instead. 

Panel Bar Layout example:

Country <<--- The text is a link, but the arrow should just expand the resorts and not take you to the the link
  Resort 1
  Resort 2

Also I cant get the Tabstrip to work either, which is another control on the same page. The tabs just anchor you back to the top of the page.

Any Help would be appreciated 


I am getting this error:
SCRIPT5007: Unable to get value of the property '_getNeedsScrollExtender': object is null or undefined  RadPanelBarScripts.js, line 99 character 1
Kate
Telerik team
 answered on 21 Aug 2012
6 answers
96 views
Hi,
I'm exporting hierarchical grid to Excel.
The problem is that while exporting the grid it's loosing the formatting of the Cells like Background color which i have set in

ItemDataBound event depending upon some condition.But in export to excel its not get persited.
Is there any way to achive this?

 




Thanks.    

Eyup
Telerik team
 answered on 21 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?