Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
96 views
Hello,

I have a rad tab strip, with individual tabs that have user controls.  In many of the UC's will be a RadAjaxPanel.  Is there a hierarchical way to find out which RadAjaxPanel belongs to which tab?

Thanks.
Yana
Telerik team
 answered on 22 Oct 2010
1 answer
135 views
I have a scenario where a page contains many panel bar items. Each item contains fields that may be required. Currently on the overall save of the page, the required field validators fire. But if a validator is hidden in a collapsed panel bar item, the user does not see why the save is not working. 

I would like to avoid using a validator summary. Is there a way to create a script that would expand the parent item on the client side if a validator inside the item template fires?
Kalina
Telerik team
 answered on 22 Oct 2010
1 answer
137 views

i am trying to load the appointments thru an xml file, the xml file is generated dynamically and its displaying all the appointments. however the recurrence and the enddate time does not seem to work correctly, i have attached the xml for your reference please take a look and let me know what am i missing?
The Problem: 
if the start time is 10:00AM and the end time is 11:00AM and the start date is 10/25/2010 and the end date is 10/30/2010, the recurrence rule is not stopping on the end date, but continues infinetely. if i want an event to span 6 days continously from say 10/25 - 10/30 at 10:00AM to 11:00AM
what should be value of
<Start> tag?
<End> tag?
<RecurrenceRule>DTSTART:?
<RecurrenceRule>DTEND:?
<RecurrenceRule>UNTIL:?



<?

 

xml version="1.0" encoding="utf-8"?><Appointments><Resources><Resource><Key>1</Key><Text>Classes</Text></Resource><Resource><Key>2</Key><Text>Workshops</Text></Resource><Resource><Key>3</Key><Text>Salon Series</Text></Resource><Resource><Key>4</Key><Text>Teachers Symposium</Text></Resource><Resource><Key>5</Key><Text>Kids Art Camp</Text></Resource><Resource><Key>6</Key><Text>Teen Art Camp</Text></Resource><Resource><Key>7</Key><Text>Portfolio Development</Text></Resource><Resource><Key>8</Key><Text>Spring Break Art Camp</Text></Resource><Resource><Key>9</Key><Text>Summer Saturday Art Camp</Text></Resource><Resource><Key>10</Key><Text>Exhibitions</Text></Resource><Resource><Key>11</Key><Text>Events</Text></Resource><Resource><Key>12</Key><Text>Alerts</Text></Resource></Resources><Appointment><ID>1</ID><Subject>Test Event</Subject><Description>some Description&lt;br/&gt;&lt;a href='http://www.google.com'&gt;Click here for more details&lt;/a&gt;</Description><Start>2010-09-25T11:30Z</Start><End>2010-09-26T14:00Z</End><RecurrenceRule>

 

&lt;

 

![CDATA[

 

DTSTART:20100925T113000Z

DTEND:20100925T140000Z

RRULE:FREQ=DAILY;UNTIL:20100926T140000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU]]

&gt;

 

</

 

RecurrenceRule><Resources><Resource Key="4" /></Resources></Appointment><Appointment><ID>2</ID><Subject>Sunday Event</Subject><Description>sample event</Description><Start>2010-09-26T10:00Z</Start><End>2010-09-26T11:00Z</End><RecurrenceRule>

 

&lt;

 

![CDATA[

 

DTSTART:20100926T100000Z

DTEND:20100926T110000Z

RRULE:FREQ=DAILY;UNTIL:20100926T110000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU]]

&gt;

 

</

 

RecurrenceRule><Resources><Resource Key="12" /></Resources></Appointment><Appointment><ID>3</ID><Subject>Special Event</Subject><Description>some description</Description><Start>2010-09-28T15:00Z</Start><End>2010-09-28T19:30Z</End><RecurrenceRule>

 

&lt;

 

![CDATA[

 

DTSTART:20100928T150000Z

DTEND:20100928T193000Z

RRULE:FREQ=DAILY;UNTIL:20100928T193000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU]]

&gt;

 

</

 

RecurrenceRule><Resources><Resource Key="10" /></Resources></Appointment><Appointment><ID>4</ID><Subject>testing recurrence</Subject><Description>testing recurrence</Description><Start>2010-10-18T10:30Z</Start><End>2010-10-30T12:45Z</End><RecurrenceRule>

 

&lt;

 

![CDATA[

 

DTSTART:20101018T103000Z

DTEND:20101018T124500Z

RRULE:FREQ=DAILY;UNTIL:20101030T124500Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU]]

&gt;

 

</

 

RecurrenceRule><Resources><Resource Key="12" /></Resources></Appointment><Appointment><ID>5</ID><Subject>second event</Subject><Description>second event</Description><Start>2010-10-25T10:00Z</Start><End>2010-10-29T11:15Z</End><RecurrenceRule>

 

&lt;

 

![CDATA[

 

DTSTART:20101025T100000Z

DTEND:20101025T111500Z

RRULE:FREQ=DAILY;UNTIL:20101029T111500Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU]]

&gt;

 

</

 

RecurrenceRule><Resources><Resource Key="11" /></Resources></Appointment></Appointments>

 


here is the function that builds the recurrence string

 

public static string GetRecurranceString(DateTime StartDate, DateTime EndDate, string StartTime,string EndTime)

 

{

 

StringBuilder sb = new StringBuilder();

 

 

StringBuilder RecStr = new StringBuilder();

 

RecStr.Append(

"\r\n<![CDATA[");

 

sb.Append(StartDate.Month.ToString()).Append(

"/");

 

sb.Append(StartDate.Day.ToString()).Append(

"/");

 

sb.Append(StartDate.Year.ToString()).Append(

" ");

 

sb.Append(StartTime.Replace(

"AM", ":00 AM").Replace("PM", ":00 PM"));

 

 

DateTime mystartdate = Convert.ToDateTime(sb.ToString());

 

RecStr.Append(

"\r\nDTSTART:" + mystartdate.ToString("yyyyMMddTHHmm00Z"));

 

 

StringBuilder eb = new StringBuilder();

 

eb.Append(StartDate.Month.ToString()).Append(

"/");

 

eb.Append(StartDate.Day.ToString()).Append(

"/");

 

eb.Append(StartDate.Year.ToString()).Append(

" ");

 

eb.Append(EndTime.Replace(

"AM", ":00 AM").Replace("PM", ":00 PM"));

 

 

DateTime myenddate = Convert.ToDateTime(eb.ToString());

 

 

StringBuilder until = new StringBuilder();

 

until.Append(EndDate.Month.ToString()).Append(

"/");

 

until.Append(EndDate.Day.ToString()).Append(

"/");

 

until.Append(EndDate.Year.ToString()).Append(

" ");

 

until.Append(EndTime.Replace(

"AM", ":00 AM").Replace("PM", ":00 PM"));

 

 

DateTime myuntildate = Convert.ToDateTime(until.ToString());

 

RecStr.Append(

"\r\nDTEND:" + myenddate.ToString("yyyyMMddTHHmm00Z"));

 

RecStr.Append(

"\r\nRRULE:FREQ=DAILY;").Append("UNTIL:" + myuntildate.ToString("yyyyMMddTHHmm00Z")).Append(";INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU");

 

RecStr.Append(

"]]>\r\n");

 

 

return RecStr.ToString();

 

}

Peter
Telerik team
 answered on 22 Oct 2010
5 answers
264 views
I have a button inside an UpdatePanel with an OnClick Event set that updates a DataList.

If I use the RadFormDecorator to style my button, the Click event doesn't seem to work under FireFox. As soon as I take the RadFormDecorator out, my button works as expected under firefox.


Georgi Tunev
Telerik team
 answered on 22 Oct 2010
5 answers
178 views
Greetings,

Im trying to send multiple selected values from a radgrid, which is on a radwindow (acting as a dialogue). I can successfully send values that are in textboxes and comboboxes but the problem is when the code reaches a point where its supposed to send values from the radgrid. I get the NULL OBJECT ERROR. I have tried using Sys.application.add_load to noavail.

This is the function that im using to retrieve the selected values on the radgrid.
function returnToParent() {
             
               //create the argument that will be returned to the parent page
               var oArg = new Object();
               //THE NULL OBJECT ERROR IS ON THIS LINE
               var gridView = $find("<%= RdGRoles.ClientID %>").get_masterTableView();
                               
               oArg.selGroup = gridView.get_selectedItems();
               //get a reference to the current RadWindow
               var oWnd = GetRadWindow();
               oWnd.close(oArg);
               
           }

Im calling this function when a user clicks OK button:

Protected Sub btnOk_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOk.Click
       ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "returnToParent();", True)
   End Sub

Thanks in advance
Georgi Tunev
Telerik team
 answered on 22 Oct 2010
1 answer
111 views
hi all , in my application i am using Radtreeview but while binding i am getting the following error

"This constraint cannot be enabled as not all values have corresponding parent values"
and my tree view structure is like this
+Parenntname
----ChildName
----Childname
+Parenntname
----ChildName

my query will rerun following tabular data

parentID     Parentname                               ChildID        ChildName

271 BharatForge-1 1700 SO-2-81314-1601

274 KumarPlaza 1900 SO-7-91112-1801

276 JOG Classes 2000 SO-24-91112-1901

276 JOG Classes 2100 SO-24-91112-2001

276 JOG Classes 2200 SO-24-91112-2101

276 JOG Classes 2300 SO-24-91112-2201

276 JOG Classes 2400 SO-24-91112-2301

277 JOG rare
2500 SO-24-91112-2401

277 JOG rare
2600 SO-24-91112-2501

plz tell the solution
Yana
Telerik team
 answered on 22 Oct 2010
1 answer
109 views
I have very basic RadMenu that is Horizontal.  Sometimes when I click on a menu item the Menu 'flashes' and appears vertical for a split second then looks fine. It's on a MasterPage. Any ideas?   It has both a menu Item click and some are Nav URLs.
thanks!
Yana
Telerik team
 answered on 22 Oct 2010
3 answers
95 views
Hi,

When using a treeview control that is populating via a web service how can I delete a node (from client side) and pull all of its children up (if any) and make them children of the deleted node's parent? I only want to delete the single node, not the entire subtree.

Example A->B->C, if I delete B I want C to move up under A.

Also if the node that I am deleting has not been expanded, then it should be expanded first so that the children that get pulled up are not only the currently displayed children but all logical children from the web service population as well.

Thanks
Nikolay Tsenkov
Telerik team
 answered on 22 Oct 2010
6 answers
126 views
I use RadEditor list for MOSS2007, and add a custom button with showtext=true. This button open a custom dialog. However, every time the button is clicked, editor's selection is lost (focus returns to beginning of text). This does not happen if showtext is false.

Is there a way to show button text but keep selection intact when button is clicked?
Stanimir
Telerik team
 answered on 22 Oct 2010
14 answers
423 views
Hi all, is there a way to change the default tooltips of the items in the RadRating control to custom text? (instead of "1", "2", "3", ... I'd like to set "Poor", "OK", "Good", ...).

I've tried everything, even modifying the RadRating.js file (which BTW is obfuscated so it's a nightmare to change :-D).

Can I customize this behavior?

Thanks in advance.
Kind regards.
arnaud
Top achievements
Rank 1
 answered on 22 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?