Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
When a create an event non recurring and set time frame, it save it as an all day event.
The starttime and endtime is always set to 12:00.

I am using advanced from.


Sarah
Top achievements
Rank 1
 answered on 27 Feb 2010
2 answers
163 views
I am implementing the delete event.
I cannot delete an event.
I get the following exception:

Cannot locate the parent of appointment with ID = '3'. Ensure that the parent appointment with ID = '0' exists and is loaded. 

Any ideas.
Sarah
Top achievements
Rank 1
 answered on 27 Feb 2010
2 answers
235 views
Hi,
I am trying to create a user control to achieve multi select combo box functionality using RadComboBox. When click on check box of a combo box item i get System.Data.DataRowView instead of actual text value. Here are my code and pl help.

MultiSelectCombo.ascx
===================

<

 

telerik:RadComboBox runat="server" Skin="Web20" ID="RadComboBox1" Height="190px" Width="420px"

 

 

MarkFirstMatch="true"

 

 

EnableLoadOnDemand="true"

 

 

HighlightTemplatedItems="true"

 

 

OnClientItemsRequested="UpdateItemCountField"

 

 

OnDataBound="RadComboBox1_DataBound"

 

 

OnItemsRequested="RadComboBox1_ItemsRequested">

 

 

<ItemTemplate>

 

 

<asp:CheckBox runat="server" ID="chk1" onclick="onCheckBoxClick(this);" />

 

 

<asp:Label runat="server" ID="Label1" AssociatedControlID="chk1"><%# Eval("CodeDesc")%>

 

 

</asp:Label>

 

 

</ItemTemplate>

 

 

<FooterTemplate>

 

A total of

<asp:Literal runat="server" ID="RadComboItemsCount" /> items

 

 

</FooterTemplate>

 

 

</telerik:RadComboBox>

MultiSelectCombo.ascx.cs
=====================

 

public

 

partial class MultiSelectCombo : BaseControl

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!Page.ClientScript.IsClientScriptBlockRegistered("MultiSelectComboIDBlock"))

 

{

Page.ClientScript.RegisterClientScriptBlock(

this.Page.GetType(), "MultiSelectComboIDBlock", "var MultiSelectComboID = '" + RadComboBox1.ClientID + "';", true);

 

}

}

 

protected void RadComboBox1_DataBound(object sender, EventArgs e)

 

{

 

//set the initial footer label

 

 

 

 

((

Literal)RadComboBox1.Footer.FindControl("RadComboItemsCount")).Text = Convert.ToString(RadComboBox1.Items.Count);

 

}

 

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

 

{

RadComboBox1.DataSource =

Shared.tdsStaticReference.User;

 

RadComboBox1.DataBind();

}

}

 

MultiSelectCombo.js
================

 

function

 

UpdateItemCountField(sender, args) {

 

 

//set the footer text

 

 

 

 

 

sender.get_dropDownElement().lastChild.innerHTML =

"A total of " + sender.get_items().get_count() + " items";

 

}

 

 

var cancelDropDownClosing = false;

 

 

function onDropDownClosing() {

 

cancelDropDownClosing =

false;

 

}

 

function onCheckBoxClick(chk) {

 

 

var combo = $find(MultiSelectComboID);

 

alert(combo);

 

//prevent second combo from closing

 

 

 

 

 

cancelDropDownClosing =

true;

 

 

//holds the text of all checked items

 

 

 

 

 

 

var text = "";

 

 

//holds the values of all checked items

 

 

 

 

 

 

var values = "";

 

 

//get the collection of all items

 

 

 

 

 

 

var items = combo.get_items();

 

 

//enumerate all items

 

 

 

 

 

 

for (var i = 0; i < items.get_count(); i++) {

 

 

var item = items.getItem(i);

 

 

 

//get the checkbox element of the current item

 

 

 

 

 

 

var chk1 = $get(combo.get_id() + "_i" + i + "_chk1");

 

 

if (chk1.checked) {

 

text += item.get_text() +

";";

 

values += item.get_value() +

",";

 

}

}

 

//remove the last comma from the string

 

 

 

 

 

text = removeLastSemicolon(text);

values = removeLastComma(values);

 

if (text.length > 0) {

 

 

//set the text of the combobox

 

 

 

 

 

combo.set_text(text);

combo.set_value(values);

}

 

else {

 

 

//all checkboxes are unchecked

 

 

 

 

 

 

//so reset the controls

 

 

 

 

 

combo.set_text(

"");

 

combo.set_value(

"");

 

}

}

 

 

//this method removes the ending comma from a string

 

 

 

 

 

 

function removeLastComma(str) {

 

 

return str.replace(/,$/, "");

 

}

 

function removeLastSemicolon(str) {

 

 

return str.replace(/;$/, "");

 

}

 

function OnClientDropDownClosingHandler(sender, e) {

 

 

//do not close the second combo if

 

 

 

 

 

 

//a checkbox from the first is clicked

 

 

 

 

 

e.set_cancel(cancelDropDownClosing);

}

 


 

donoho
Top achievements
Rank 1
 answered on 26 Feb 2010
1 answer
125 views
ddlRoles.SelectedValue = "User"

Trying to set the value of a RadComboBox(ddlRoles).  The value exists in the combo box, but it is not being selected.  Is this a known issue at all?
Matt
Top achievements
Rank 1
 answered on 26 Feb 2010
4 answers
193 views
I have a web form that has an overall panel that defines a default button for it to be the submit button.

I have a child panel that has a radgrid inside of it that is bound to an ObjectDataSource to enable the automatic CRUD operations the grid can manage.

I have the grid set to AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"  along with ClientSettings AllowKeyboardNavigation="true"

This allows the keyboard navigation to work correctly that I can select and traverse rows and enable editting of an item however hitting enter while being inside one of the inplace textboxes still causes my full form to submit.

I upgraded from Q3 original release to the most recent Q3 release labeled 1314.35 however I still have this issue. Web browser is Firefox 3.6. Also when viewing the accessibility demo for the grid I cannot get the InForm mode grid to submit an update either.
Chris Marisic
Top achievements
Rank 1
 answered on 26 Feb 2010
8 answers
259 views
Hello,
I have an application that allows user to choose their own page size, up to 100 rows per page.
When a user chooses such a large page size and then attempts to remove columns via the Header Context Menu, the grid is very slow to re-paint itself (~3 min in IE7).
Are there any optimizations that are possible to decrease this time??

Thanks!
ethan
Mark Galbreath
Top achievements
Rank 2
 answered on 26 Feb 2010
1 answer
46 views
Any idea what could be causing this behavior? (See attachment)
Arron Tow
Top achievements
Rank 1
 answered on 26 Feb 2010
1 answer
108 views
Who can advise me, help me, or point out to code so I can find a solution for my following idea:

What I would like is:
- Make a "mail client" like this (or exactly) http://demos.telerik.com/webmail/Default.aspx (is this also availible in VB.NET?!?!)
- Instead of displaying "mails" I will display "RSS items".
- Instead of displaying folders I will display the RSS-proivder (like CNN, BBC, Wired etc.)

- The above can be done by me with a lot of trial and error.... I think.

What I don't know and coudn't find is how to add the following to this solution:
- make automatic Ajax updates so new (RSS) items/rows  will appear in the grid (and/or dataset?!)
- I would like to have this effect in my radgrid: http://leftlogic.com/jquery/spy.html when there is a new rss/row item (in a dataset, xmlfile, db or whatever).

If there are examples out there please point them out or reply so I can start this project!!
sridhar duggireddy
Top achievements
Rank 1
 answered on 26 Feb 2010
1 answer
55 views
I am aware of the ExportToPDF() function but I need a way to export the preview as a thumbnail jpeg image. Something like ExportToImage and setting the maximum dimensions of the image.

Is there a way to achieve this?
Rumen
Telerik team
 answered on 26 Feb 2010
16 answers
456 views
I recently upgraded from RadControls release Q3 2008 to Q1 2009.  I am seeing a very odd display issue in IE7 (not in Chrome or Firefox) with the toolbars when I simply add a RadEditor to a page, and nothing else.  This is what I have:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="scriptManager" runat="server" /> 
    <telerik:radeditor id="description" runat="server"/> 
</form> 

To perform the upgrade, I:

1. Upgraded Telerik.Web.UI.dll and Telerik.Web.UI.xml
2. Updated the assembly version in web.config.

Is there anything else I should have to do to get this to work?  I noticed that Q12009 has a lot more embedded resources.  I no longer have to register a bunch of ScriptReferences for the RadEditor to work (i.e. RadEditor.js, AjaxSpellCheck.js, etc.).  At first, the fact that I was continuing to register these scripts was causing JS errors (which led to display issues) in ALL browsers, so I removed the references and decided to just put a RadEditor on a blank page (like above) with nothing else that could interfere with it.  This worked out fine except for the display issue I am seeing in IE7.  Am I missing something here?  Do I need to register any scripts or stylesheets?  I'm inclined to believe I've set it up correctly (for the most part) since it is working in other browsers.  Is there any documentation about the obvious differences in implementation that are required with the Q12009 release?

Note: I realize Q12009 SP1 was released yesterday, but this didn't strike me as the kind of thing that should require a service pack to fix; it is a pretty glaring display issue.

Thanks.
Rumen
Telerik team
 answered on 26 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?