Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
271 views
Hi, I'm working on a Portal implementation. We have a initial page (inside a master) and we need to dinamically load several user controls (widgets).  Now we are loading this controls inside RadDocks (It's working fine, but takes to much time loading the contents of the UC).  We need to load the page first, show the update loading panel (for each widget), and then initiate the call to the user controls (like igoogle). Is there any way to acomplish this?  Thanks in advance!  
Sebastian
Telerik team
 answered on 04 May 2009
3 answers
60 views
I have a Masterpage and then I create a page that is linked to Masterpage. When I tabled the RadDatePicker, If I select eg 13 February 2009, it automatically change my date to March 13 2009. No matter what date in February he changed to March. but all other months working correctly.

My version is 2.1 RadCalendar

Someone knows how to resolve this?
Sebastian
Telerik team
 answered on 04 May 2009
3 answers
116 views
We are using the latest release of the Telerik.Web.UI.dll but we are using the Q3 Skins as external .css files.  We have found that when a combobox is set to enabled=false they appear to cutoff at the bottom as if they're in a container that's too small to display the control properly.  Here's a sample page that illustrates this problem.  Note the external css file is an unaltered Q3 file downloaded from the Telerik site.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %> 
 
<%@ 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>Untitled Page</title>      
    <link rel="Stylesheet" type="text/css" href="../Skins/Office2007/ComboBox.Office2007.css" />      
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
      
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%"   
        VisibleDuringInit="false">  
        <telerik:RadPane ID="RadPane1" runat="server">  
            <telerik:RadComboBox ID="RadComboBox1" runat="server" Enabled="false" Skin="Office2007" 
                EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false">  
                <Items> 
                    <telerik:RadComboBoxItem runat="server" Text="1" Value="1" /> 
                    <telerik:RadComboBoxItem runat="server" Text="2" Value="2" /> 
                    <telerik:RadComboBoxItem runat="server" Text="3" Value="3" /> 
                </Items> 
            </telerik:RadComboBox> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 

Also, we have verified that if we revert to the embedded skin OR set the VisibleDuringInit =  true on the RadSplitter the problem doesn't occur.  I tried looking at the 2 versions of the .css (Q3 vs. embedded) but I'm not familiar enough with styles to narrow down what the problem may be (if it's even a style problem at all).

Any ideas on how to solve this issue?
Kamen Bundev
Telerik team
 answered on 04 May 2009
5 answers
108 views
I've run into an odd issue with Firefox and RadInput, all types, and I'd like to see if anyone else has encountered anything like it.

  1. Click on a RadInput box.
  2. The text highlights (we have ours set to SelectAll) and de-formats (changing $20,000.00 to 20000), all as it should.
  3. Click elsewhere.
  4. The text remains selected and the formatting is NOT reapplied!
  5. Click on the same RadInput box again.
  6. This time, the text completely vanishes.

You can repeat this process with all other RadInputs on the page. Here are some other interesting tidbits.

  • If you try to type something into the RadInput, formatting rules are applied - you can't type letters in a numeric textbox, etc.
  • If you visit ANY OTHER PAGE with a RadInput field on the page, those RadInputs start behaving in the same way! This includes going to Telerik's demos!

We have replicated this bug with several different computers, one with a completely fresh version of Firefox. We have not been able to replicate the site that causes the bug in a simpler format. I have no idea where to start looking for the cause of such disturbing and strange behavior. Telerik seems pretty stumped too, though I still hold hope that they'll figure it out. So, I'm posting here in the hopes that someone else has some idea what might be happening.

I've searched the Firefox bug repository to no avail, but I am fairly confident that this is some weird twist of our code plus Telerik's plus a Firefox bug. I have not been able to recreate the issue on any other browser.

So! Have you seen this bug? Have you fixed it? Any ideas where I should start looking?
Pavel
Telerik team
 answered on 04 May 2009
7 answers
229 views
I used the multiple combo box page for a template for my page.  I have the page built but my first combobox doesn't respond, my other controls on the page function.  I don't know if this matters but I have a master page associated to this page.  Thanks for any help.

ASPX Code

<

 

asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

 

 

<table class="style11">

 

 

<tr>

 

 

<td class="style12" valign="top">

 

 

<asp:Label ID="Label3" runat="server" Font-Names="Calibri" Font-Size="Medium"

 

 

Text="Select State:"></asp:Label>

 

 

</td>

 

 

<td class="style13">

 

 

<telerik:RadComboBox ID="RadComboBox1" Runat="server" width= "186px"

 

 

OnClientSelectedIndexChanging="LoadStates"

 

 

OnItemsRequested="RadComboBox1_ItemsRequested"

 

 

Skin="Sunset" Height="19px" EnableLoadOnDemand="False">

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

<td class="style14" valign="top">

 

 

<asp:Label ID="Label4" runat="server" Font-Names="Calibri" Font-Size="Medium"

 

 

Text="Select Site:"></asp:Label>

 

 

</td>

 

 

<td valign="top">

 

 

<telerik:RadComboBox ID="RadComboBox2" Runat="server"

 

 

Width="186px"

 

 

OnClientSelectedIndexChanging="LoadProperties"

 

 

OnClientItemsRequested="ItemsLoaded"

 

 

OnItemsRequested="RadComboBox2_ItemsRequested" Height="19px"

 

 

Skin="Sunset" >

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="style12">

 

 

&nbsp;</td>

 

 

<td colspan="3">

 

 

&nbsp;</td>

 

 

</tr>

 

 

</table>

 

 

<script type="text/javascript">

 

 

//global variables for the Properties combobox

 

 

var propertiesCombo;

 

 

function pageLoad() {

 

 

// initialize the global variables

 

 

// in this event all client objects

 

 

// are already created and initialized

 

propertiesCombo = $find(

"<%= RadComboBox2.ClientID %>");

 

}

 

function LoadProperties(combo, eventArqs) {

 

 

var item = eventArqs.get_item();

 

propertiesCombo.set_text(

"Loading...");

 

 

// if a continent is selected

 

 

if (item.get_index() > 0) {

 

 

// this will fire the ItemsRequested event of the

 

 

// properties combobox passing the State as a parameter

 

propertiesCombo.requestItems(item.get_value(),

false);

 

}

 

else {

 

 

// the -Select a continent- item was chosen

 

propertiesCombo.set_text(

" ");

 

propertiesCombo.clearItems();

}

}

 

function ItemsLoaded(combo, eventArqs) {

 

propertiesCombo = $find(

"<%= RadComboBox2.ClientID %>");

 

 

if (combo.get_items().get_count() > 0) {

 

 

// pre-select the first item

 

combo.set_text(combo.get_items().getItem(0).get_text());

combo.get_items().getItem(0).highlight();

}

combo.showDropDown();

}

 

</script>

 

 

</asp:Content>

C# Code

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!Page.IsPostBack)

 

{

 

//fill the continents combo

 

 

 

 

LoadStates();

}

 

}

 

protected void LoadStates()

 

{

 

string path = Server.MapPath("~/App_Data/xxx.mdb");

 

 

OleDbConnection dbCon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path);

 

dbCon.Open();

 

 

OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT State, PropertyNumber FROM tblSiteInfo ORDER By PropertyNumber", dbCon);

 

 

DataTable dt = new DataTable();

 

adapter.Fill(dt);

dbCon.Close();

RadComboBox1.DataTextField =

"State";

 

RadComboBox1.DataValueField =

"State";

 

RadComboBox1.DataSource = dt;

RadComboBox1.DataBind();

 

//insert the first item

 

 

 

 

RadComboBox1.Items.Insert(0,

new RadComboBoxItem("- Select a state -"));

 

 

foreach (RadComboBoxItem item in RadComboBox1.Items)

 

{

item.ToolTip = item.Text;

}

}

 

protected void LoadProperties(string State)

 

{

 

string path = Server.MapPath("~/App_Data/xxx.mdb");

 

 

OleDbConnection dbCon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path);

 

dbCon.Open();

 

//select a Property number based on the state

 

 

 

 

 

OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT State, PropertyNumber FROM tblSiteInfo WHERE State=@State ORDER By PropertNumber", dbCon);

 

adapter.SelectCommand.Parameters.AddWithValue(

"@State", State);

 

 

DataTable dt = new DataTable();

 

adapter.Fill(dt);

dbCon.Close();

RadComboBox2.DataTextField =

"PropertyNumber";

 

RadComboBox2.DataValueField =

"PropertyNumber";

 

RadComboBox2.DataSource = dt;

RadComboBox2.DataBind();

 

foreach (RadComboBoxItem item in RadComboBox2.Items)

 

{

item.ToolTip = item.Text;

}

}

 

protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)

 

{

LoadStates();

}

 

protected void RadComboBox2_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)

 

{

 

// e.Text is the first parameter of the requestItems method

 

 

 

 

 

// invoked in LoadCountries method

 

 

 

 

LoadProperties(e.Text);

}

 

}

Helen
Telerik team
 answered on 04 May 2009
1 answer
177 views
I have tried to implement this example from the Telerik knowledge base:
http://www.telerik.com/support/kb/aspnet-ajax/editor/setting-hidden-radeditor-in-edit-mode-on-click-and-putting-it-in-non-editable-mode-onblur.aspx

I want to set the editor in non editable mode when losing focus. The problem is that when you klick the arrow on the Change foreground and background buttons the blur event is fired and the editor disapears. It is impossible to change foreground and background color.

I have tried an exact copy of the Telerik example.
Rumen
Telerik team
 answered on 04 May 2009
1 answer
231 views

Below are my code and css..It want to center by menu , but i can't do so?
I have looked over telerik forum..so far none of then worked?

thanks,]
DIP

<

 

div style="width:90%;margin-left:auto;margin-right:auto;height:auto;text-align:center !important;">

 

 

<telerik:RadMenu ID="RadMenu1" runat="server" EnableEmbeddedSkins="false"

 

 

Skin="Dip" EnableViewState="False">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</telerik:RadMenu>

 

 

</div>

 



//**********************************CSS*************************************/

.RadMenu_Dip

 

 

{

 

/*margin-left:40px;*/

 

 

margin-top:8px;

 

}

.RadMenu_Dip_Context

{

 

background: none;

 

 

border:0;

 

}

.RadMenu_Dip

 

.rmLink

 

{

 

text-decoration: none;

 

 

color: #fff;

 

 

background: transparent;

 

}

.RadMenu_Dip

 

.rmLink:hover,

 

.RadMenu_Dip

 

.rmFocused,

 

.RadMenu_Dip

 

.rmExpanded

 

{

 

color: #006;

 

 

background: transparent url(Image/Menu/MainItemBackgroundHover.gif) no-repeat center;

 

}

.RadMenu_Dip

 

.rmText

 

{

 

 

font: bold 10px Arial, Verdana;

 

 

line-height: 20px;

 

 

background-image:none;

 

}

 

.RadMenu_Dip

 

.rmRootGroup .rmText .rmLeftImage

 

{

 

margin: 3px 1px 0; /* should be adjusted to the size of the images, if they are larger than 16x16px */

 

}

.RadMenu_Dip

 

.rmHorizontal .rmExpandBottom,

 

.RadMenu_Dip

 

.rmHorizontal .rmExpandTop

 

{

 

background: transparent url(Image/Menu/RootGroupArrowDown.gif) no-repeat right center;

 

}

.RadMenu_Dip

 

.rmVertical .rmExpandLeft,

 

.RadMenu_Dip

 

.rmVertical .rmExpandRight

 

{

 

background: transparent url(Image/Menu/invertedGroupImage.gif) no-repeat right center;

 

}

 

.RadMenu_Dip

 

.rmSlide

 

{

 

margin-top:-1px;

 

}

.RadMenu_Dip

 

.rmGroup

 

{

 

border: solid 1px #6788be;

 

 

background: white;

 

}

.RadMenu_Dip

 

.rmGroup .rmLink

 

{

 

background: url(Image/Menu/MenuItemBackground.gif);

 

 

border: 0px;

 

 

font-size: 10px;

 

 

color: #FFF;

 

}

.RadMenu_Dip

 

.rmGroup .rmText

 

{

 

font-weight: bold !important;

 

 

color:#FFF;

 

 

text-align: center !important;

 

 

/*margin-right: 0 !important;*/

 

 

padding-left: 30px;

 

 

padding-right: 40px;

 

 

font-size: 10px;

 

}

 

.RadMenu_Dip

 

.rmGroup .rmLink:hover,

 

.RadMenu_Dip

 

.rmGroup .rmFocused,

 

.RadMenu_Dip

 

.rmGroup .rmExpanded

 

{

 

color:#000066;

 

 

background: url(Image/Menu/MainItemBackgroundHover.gif);

 

 

border: 0px;

 

}

.RadMenu_Dip

 

.rmLeftArrow,

 

.RadMenu_Dip

 

.rmRightArrow,

 

.RadMenu_Dip

 

.rmTopArrow,

 

.RadMenu_Dip

 

.rmBottomArrow,

 

.RadMenu_Dip

 

.rmLeftArrowDisabled,

 

.RadMenu_Dip

 

.rmRightArrowDisabled,

 

.RadMenu_Dip

 

.rmTopArrowDisabled,

 

.RadMenu_Dip

 

.rmBottomArrowDisabled

 

{

 

background: #e7f1ff url(Image/Menu/left.gif) center center no-repeat;

 

 

width: 15px;

 

 

text-decoration:none;

 

 

text-indent:-3000px;

 

 

color:#e7f1ff;

 

 

overflow:hidden;

 

}

.RadMenu_Dip

 

.rmTopArrow,

 

.RadMenu_Dip

 

.rmTopArrowDisabled

 

{

 

background-image: url(Image/Menu/top.gif);

 

 

width: 100%;

 

 

height: 15px;

 

}

.RadMenu_Dip

 

.rmBottomArrow,

 

.RadMenu_Dip

 

.rmBottomArrowDisabled

 

{

 

background-image:url(Image/Menu/bottom.gif);

 

 

width: 100%;

 

 

height: 15px;

 

}

.RadMenu_Dip

 

.rmRightArrow,

 

.RadMenu_Dip

 

.rmLeftArrow

 

{

 

height: 100%;

 

}

.RadMenu_Dip

 

.rmRightArrow,

 

.RadMenu_Dip

 

.rmRightArrowDisabled

 

{

 

background-image: url(Image/Menu/right.gif);

 

}

 

.RadMenu_Dip

 

.rmExpandLeft,

 

.RadMenu_Dip

 

.rmExpandRight,

 

.RadMenu_Dip

 

.rmFocused .rmExpandLeft,

 

.RadMenu_Dip

 

.rmFocused .rmExpandRight,

 

.RadMenu_Dip

 

.rmExpanded .rmExpandLeft,

 

.RadMenu_Dip

 

.rmExpanded .rmExpandRight

 

{

 

background: transparent url(Image/Menu/invertedGroupImage.gif) right center no-repeat;

 

}

.RadMenu_Dip

 

.rmGroup .rmExpandLeft,

 

.RadMenu_Dip

 

.rmGroup .rmExpandRight,

 

.RadMenu_Dip

 

.rmGroup .rmFocused .rmExpandLeft,

 

.RadMenu_Dip

 

.rmGroup .rmFocused .rmExpandRight,

 

.RadMenu_Dip

 

.rmGroup .rmExpanded .rmExpandLeft,

 

.RadMenu_Dip

 

.rmGroup .rmExpanded .rmExpandRight

 

{

 

background: transparent url(Image/Menu/groupImage.gif) right center no-repeat;

 

}

Yana
Telerik team
 answered on 04 May 2009
4 answers
77 views
Hi All

I have an ajax manager on my page controlling the scheduler. This works except the first time I do something. If I drag an appointment around the ajax doesn't fire. When I do this a 2nd time it does fire and performs an update. I can't explain this and have no idea how to solve it. Any ideas?

The entire ajaxmanager, rad scheduler and all other controls are all in a usercontrol.

Here is the manager code

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="false"
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                    <telerik:AjaxUpdatedControl ControlID="SchedulerAppointmentContextMenu" />
                    <telerik:AjaxUpdatedControl ControlID="SchedulerTimeSlotContextMenu" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                    <telerik:AjaxUpdatedControl ControlID="SchedulerAppointmentContextMenu" />
                    <telerik:AjaxUpdatedControl ControlID="SchedulerTimeSlotContextMenu" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

Thanks
Jon
Sebastian
Telerik team
 answered on 04 May 2009
3 answers
156 views
Hi,

I've got a RadTreeView that drives a RadGrids datasource on each node click.  I can right click a row on my RadGrid and get a context menu etc...  This all works fine.  What I can't do is get the context menu to display when I right click a group header item in my RadGrid.

I've also noticed that when my app first loads my context menu will display when right clicking on the RadGrids header bar and on the "No records to display message".   When the app starts there are never any records to display in the RagGrid.

However after I click on a RadTreeView node which in turn calls a rebind (successfully, the Grid now has records and group header items) the context menu will no longer work on the header bar or any future "No records" messages,  but will work fine on any row item.

Hope you can help?

Thanks
Jase

P.S.  My productivity has gone through the roof ever since I switched to Teleriks RadControls.  Great stuff !!
Sebastian
Telerik team
 answered on 04 May 2009
0 answers
86 views
Hi,

I have implemented Rad Scheduler which has been working fine. I added an user control which I use to have in all my other pages. But in this scheduler page alone it is throwing a script error after adding the user control. If I remove it I didnt get the error and scheduler works fine.

Scrip error that I am getting is - "sys.webforms.pagerequestmanagerservererrorexception object reference not set to an instance of an object" if my enablepartialrendering = false in radscriptmanager or "sys.webforms.pagerequestmanagerservererrorexception object is null" if enablepartialrendering = true in radscriptmanager.

Kindly help me to get out of this script error.

Thanks and Regards,
Saranya
Saranya
Top achievements
Rank 2
 asked on 04 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?