Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
436 views
Hi,

Is there a way to unselect and uncheck items in a listbox client side without looping through every item in the list?  I see that there is a clearSelection option but this does not uncheck any of the items.
I was hoping to loop through the checked items using the get_checkeditems option but I can't figure out how to loop through the get_checkeditems collection and then uncheck them in javascript.

Thank You
Tracy
Tracy
Top achievements
Rank 1
 answered on 15 Oct 2012
1 answer
83 views
I've been working on a grid with a dynamic number of columns. One of the columns required a sum across columns with a total in a new calculated column. I implemented this and when the expressions for the miscalculation become too large (not very bit at all) it will crash iis with a stack overflow exception.

It's important to note I'm working around another bug where is one of the data values is null calculated expressions don't work.

So I was dynamically defining the expression for the calculated column like so:

for (int i = 0; i < dataColumns.Count; i++)
{
    expression += String.Format("({{{0}}} == null ? 0 : {{{0}}})+", IntFormatter.ToString(i));
}
expression = StringFormatter.Left(expression, expression.Length - 1);
ccol.Expression = expression;

When I have 10ish (or more) iterations of the above loop then I get the stack overflow exception from this:

//rebind
RadGridSearch.Rebind();

Removing the calculation allows this to work properly.

I'm reworking my implementation to do the calculation on the database side but thought I should mention this in case anyone else runs into this problem.

Our solution is using a slightly older build: Telerik.Web.UI_2011_2_712_Dev
Vasil
Telerik team
 answered on 15 Oct 2012
5 answers
143 views
Hi,

I wonder if we can use MakeUrlsAbsolute and IECleanAnchors together?

In our CMS edit page that use the editor, we need to make all URL Absolute. e.g. www.test.com.my/page1.aspx
But when we set that filter, the Anchor will automatically have the path of the CMS edit page.

E.g. 
<A href="http://www.test.my/cms/content_editor.aspx?id=9f81dbc0-4491-4a65-af26-f52bd1c25596#sss">plugged </A>

We try to set IECleanAnchors as well but not working.

What is the correct way to make sure the URL is absolute but the anchor don;t embed the path of the CMS?

Thanks.
Dan Ehrmann
Top achievements
Rank 1
 answered on 15 Oct 2012
3 answers
157 views
I have a simple page with a TabBar and RadMultiPage.  I hooked up the ajaxified the TabBar and MultiPage with the AjaxManager but the selected tab (visually) isn't persisting after clicking on a tab.  Code is below.  Anything I am missing?  It works as expected when removing the AjaxManager and having a regular postback.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        AutoPostBack="true">
        <Tabs>
            <telerik:RadTab Text="Tab 1">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab 2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="HealthSafetyPage" runat="server">
            <p>
                Tab 1 content
            </p>
        </telerik:RadPageView>
        <telerik:RadPageView ID="ProcessSafetyPage" runat="server">
            <p>
                Tab 2 content
            </p>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
Nencho
Telerik team
 answered on 15 Oct 2012
2 answers
87 views
Hello

I'd like to catch client event when the calendar appears and disappears  (in order to prevent the scheduler autorefresh I implemented...)

How can I achieve this ?

Thanks
MI87
Top achievements
Rank 1
 answered on 15 Oct 2012
1 answer
62 views
Hi,

There is a problem to display InsertImage and InsertLink dialogs with Firefox (I am using FF version 15 and 16). These dialogs DO display, but with no elements visible inside. With IE, they are OK. I haven't check this with other versions of FF. Looking into Firebug, I found this CSS bug (in bold):

<tr class="rwContentRow">
<td class="rwCorner rwBodyLeft"> </td>
<td class="rwWindowContent" valign="top">
<div id="ContentEditor_InsertImage" class="reInsertImageWrapper" style="width: 334px; height: 154px; overflow: auto;">
<table class="reControlsLayout" border="0" cellspacing="0" cellpadding="0">
</div>
</td>
<td class="rwCorner rwBodyRight"> </td>
</tr>

I have to override css classes as below, and they are all OK now.

.reInsertImageWrapper, .reInsertLinkWrapper, .reInsertTableLightWrapper { overflow: visible !important;}

(Up to now, you can see this will affect InsertTableLight too).

Just giving this information, in case others may have the same problems, and the Telerik guys should take more investigation on this.

Thanks.
Rumen
Telerik team
 answered on 15 Oct 2012
1 answer
37 views
Hi,

I have more than one tab. When i clicking the edit tab the grid not appear, after that grid will appear. what i do
Eyup
Telerik team
 answered on 15 Oct 2012
1 answer
80 views
Hello everyone,
I am using the googlelike filter and I have a lot of rows to display, so I have a pager on my radgrid.
Everytime I want to go to the next page the rows aren't filtered anymore - how can I fix this bug?

Please help me, thank you.

Regards, esmyy.
Maria Ilieva
Telerik team
 answered on 15 Oct 2012
1 answer
75 views
I'm using a asp.net ajax chart with a couple of line series and some bars.  I'm able to create any tooltips that I want as long as they are strings in the item.ActiveRegion.ToolTip property.  Is there a way to do something a little more complex? 

I'd like to query a database using data from the ChartSeriesItem under the mouse, and draw a pie chart or something...

Can I do this ?
Petar Kirov
Telerik team
 answered on 15 Oct 2012
2 answers
239 views
Hello Sir,

i am using scheduler control. its working fine. But i want to group my scheduler in multiple column.

How Can I Use Multiple Group In Rad Scheduler in Day View.

When i use gingle group By Then is Working Fine. But Now i want to use Multiple group By Option.

My Need :- First Group by Doctor Wise And then In Side Doctor Groping Room Wise.
I Saw ur Example but ther is option only Group by Room And Date in Week View Not In Day View. i Want to Group By Doctor And Then Room In Day View. Please Help Me
Thanks
Chandan
My Code is Below :-

ASPX Code :- 

 

<telerik:RadScheduler AllowInsert="false" GroupBy="Doctor, Facility" HoursPanelTimeFormat="hh:mm tt" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"

 

 

OnAppointmentCreated="RadScheduler1_AppointmentCreated" runat="server" ID="RadScheduler1"

 

 

Skin="Office2007" Height="545px" CustomAttributeNames="StatusId" Width="690px"

 

 

ShowFooter="false" SelectedDate="2010-03-18" DayStartTime="07:00:00" DayEndTime="21:00:00"

 

 

FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"

 

 

ShowNavigationPane="false" OnAppointmentDelete="RadScheduler1_AppointmentDelete"

 

 

DataSubjectField="Subject" DataStartField="FromTime" DataEndField="ToTime" ShowAllDayRow="false"

 

 

AllowEdit="false" DataKeyField="AppointmentId" DataDescriptionField="Description" OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked"

 

 

AllowDelete="false" OnAppointmentContextMenuItemClicked="RadScheduler1_AppointmentContextMenuItemClicked"

 

 

OnNavigationCommand="RadScheduler1_NavigationCommand" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated">

 

 

<AppointmentContextMenuSettings EnableDefault="false" />

 

 

<TimelineView UserSelectable="false" />

 

 

 

<ResourceTypes>

 

 

<telerik:ResourceType KeyField="FacilityID" Name="Facility" TextField="FacilityName" ForeignKeyField="FacId" />

 

 

</ResourceTypes>

 

 

 

<ResourceTypes>

 

 

<telerik:ResourceType KeyField="DoctorID" Name="Doctor" TextField="DoctorName" ForeignKeyField="DocId" />

 

 

</ResourceTypes>

 

 

 

 

 

 

 

<AppointmentTemplate>

 

<%

# Eval("Subject")%>

 

 

<br />

 

 

<asp:Label runat="server" ID="Teacher" />

 

 

<br />

 

 

<asp:Label runat="server" ID="Students" />

 

 

</AppointmentTemplate>

 

 

<AppointmentContextMenus>

 

 

<telerik:RadSchedulerContextMenu runat="server" DataTextField="Status" DataValueField="StatusId"

 

 

ID="SchedulerAppointmentContextMenu" AppendDataBoundItems="true">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="Copy" Value="Copy" />

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

<telerik:RadMenuItem Text="Edit" Value="Edit" />

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

</Items>

 

 

</telerik:RadSchedulerContextMenu>

 

 

</AppointmentContextMenus>

 

 

<TimeSlotContextMenus>

 

 

<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">

 

 

<Items>

 

 

<telerik:RadMenuItem Text="New Appointment" Value="New" />

 

 

<telerik:RadMenuItem IsSeparator="true" />

 

 

<telerik:RadMenuItem Text="Paste" Value="Paste" />

 

 

</Items>

 

 

</telerik:RadSchedulerContextMenu>

 

 

</TimeSlotContextMenus>

 

 

<TimeSlotContextMenuSettings EnableDefault="False" />

 

 

</telerik:RadScheduler>

 



CS Page Codding :- 

protected

 

void btnRefresh_OnClick(Object sender , EventArgs e)

 

{

 

DataSet ds = new DataSet();

 

 

Hashtable HashIn = new Hashtable();

 

DAL.

DAL dl = new DAL.DAL(DAL.DAL.DBType.SqlServer, sConString);

 

 

String strProvider = "";

 

 

 

foreach (RadListBoxItem currentItem in RadLstDoctor.Items)

 

{

 

if (currentItem.Checked == true)

 

{

 

String value = currentItem.Value;

 

strProvider = strProvider +

"<Table1><c1>" + value + "</c1></Table1>";

 

}

}

 

if(strProvider=="")

 

{

 

Alert.ShowAjaxMsg("Please select one provider.",Page);

 

 

return;

 

}

HashIn.Add(

"@inyHospitalLocationId", Session["HospitalLocationID"]);

 

HashIn.Add(

"@intFacilityId",ddlFacility.SelectedValue);

 

HashIn.Add(

"@xmlDoctorIds", strProvider); // "<Table1><c1>1</c1></Table1>"); // ddlDoctor.SelectedValue);

 

HashIn.Add(

"@chrForDate", CalApp.SelectedDate.Date.ToString("yyyy/MM/dd"));

 

ds = dl.FillDataSet(

CommandType.StoredProcedure, "uspGetDoctorAppDetailstest", HashIn);

 

 

if (ds.Tables[0].Rows.Count > 0)

 

{

RadScheduler1.SelectedDate = CalApp.SelectedDate;

RadScheduler1.DayStartTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[0].ToString());

 

RadScheduler1.DayEndTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[1].ToString());

 

 

RadScheduler1.MinutesPerRow =

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.TimeLabelRowSpan = 60 /

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.DataKeyField =

"AppointmentId";

 

RadScheduler1.DataStartField =

"FromTime";

 

RadScheduler1.DataEndField =

"ToTime";

 

RadScheduler1.DataSubjectField =

"Subject";

 

RadScheduler1.GroupBy =

"Doctor, Facility";

 

RadScheduler1.ResourceTypes[0].DataSource = ds.Tables[3];

RadScheduler1.ResourceTypes[1].DataSource = ds.Tables[2];

 

RadScheduler1.DataSource = ds.Tables[1];

RadScheduler1.DataBind();

lblFacility.Text = ddlFacility.SelectedItem.Text;

 

}

 

 

else

 

{

 

Alert.ShowAjaxMsg("There is no time define in selected provider and facility.", Page);

 

}

}


Plamen
Telerik team
 answered on 15 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?