Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
116 views
First I need a layout to the radPanelBar such as: Columneft, ColumnCenter, CoilumnRight.
Then I  need add programmatically RadControls such as button, radiupload, progressarea to a RadPnaelBar in specific columns.

It is possible??.
Because i try do it but I couldn't do

Thanks
Cat Cheshire
Top achievements
Rank 1
 answered on 13 Sep 2011
9 answers
687 views
Hi Telerik,

May I have an example on how to directly access a RadAlert object and set its z-index before it appears on the page.

I have a RadWindow which is popped open and is modal. 

I then open an alert like so:

if (inputs[0].value.length == 0) {
    oWindow.BrowserWindow.radalert('Please select a dashboard to upload.', 200, 100, 'Error Uploading');
    return;
}

This causes the radalert to open with the same z-index as the oWindow. I would like to directly modify the radalert to have a z-index which is greater than the oWindow -- this is to mimic the functionality of alert, which appears above oWindow by default.

Thanks.

Sean
Sean
Top achievements
Rank 2
 answered on 13 Sep 2011
2 answers
59 views
Hi,

I am using a couple of telerik controls in my site, radgrid & radchart. RadGrid is working fine, but radchart is throwing the onerror when I run it on the server (it runs fine locally).

It seems a lot of people have had this problem, and I tried the fixes but it does not appear to have resolved anything.

Here is the relevant snippet from the web config
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> 

When I try to access "http://localhost/Instructor/ChartImage.axd" I get a 404 also.

Thanks in advance for any help you might be able to offer.

Regards,
Adam

EDIT:
When I try to do this error 404.0 when showing rad chart image in IIS7 i get a 500 error.
Randy Bauer
Top achievements
Rank 1
 answered on 13 Sep 2011
4 answers
435 views
Good Evening,

I need to create a dropdown that contains to fields from a database seperated by a hyphen "-".

How would I do that using the following code:

public void radcombo_mns_incidents_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
    radcombo_mns_incidents.DataTextField = "INCIDENT_ID";
    radcombo_mns_incidents.DataValueField = "INCIDENT_ID";
    radcombo_mns_incidents.DataSource = from c in quarkdb.MNs
                                        join t in quarkdb.STATUS_TYPEs on c.STATUS equals t.RECORD_ID
                                        where t.STATUS != "Closed"
                                        select new
                                        {
                                            c.INCIDENT_ID,
                                            c.TITLE
 
                                        };
    radcombo_mns_incidents.DataBind();

I would like the text field to display INCIDENT_ID - TITLE, so that they dropdown would have:

34556222 - Outage in location blablah
34544566 - Outage in location hahaha
Joe
Top achievements
Rank 1
 answered on 13 Sep 2011
3 answers
69 views
If I don't enable MakeUrlsAbsolute, then every link in the editor is made relative. In most cases, this is ok - I want relative links to pages within my site. But if a user wants to enter a link to an external site, it is a problem.

I see that if the link has no query string, it remains absolute. So, for example, <a href="http://www.yahoo.com"> remains unchanged. However, if I need any parameters, like <a href="http://www.yahoo.com/somepage?id=47">, then the domain is stripped and I end up with <a href="/somepage?id=47"> which will not work.

Is there any way to configure the editor to do this? Or will I have to use MakeUrlsAbsolute in all cases, and write a content filter to transform relative links?
Dan Ehrmann
Top achievements
Rank 1
 answered on 13 Sep 2011
2 answers
93 views

When I create an exception appointment, should the regularly scheduled appointment still be shown? For example I have rec appointments that occur on Fridays at 11AM. When I drag and drop one of the occurrences to a brand new day and time (Wednesday for example) the new appointment shows up but the old one on Friday also is showing up. When I drag-and-drop in the RecurrenceExceptionCreated event I create a new exception and update master appointment's recurrence rule with the new rule containing date and time of the exception. In the new exception appointment I reference DataRecurrenceParentKeyField of the master appointment. Since the regularly scheduled appointment is modified I don't want to display it any longer for that week. What am I doing wrong? Thanks
Ilya
Top achievements
Rank 1
 answered on 13 Sep 2011
4 answers
130 views
Hi All.
I try to add appointment organizer to one of our projects using your scheduler control. It working fine if not use Advanced form for editing and inserting appointments. But I need tp add just one text box in have to use your customer controls from live examples. I added those controls using Scheduler scenario wizard. problem now how to bind data from LinqDataSources (used for Appoointments and ResourceTypes) to the form. Have you example? Thanks.
<telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Windows7" Height="551px"
                    ShowFooter="true" TimeZoneOffset="03:00:00" DayStartTime="08:00:00" DayEndTime="21:00:00"
                    FirstDayOfWeek="Monday" LastDayOfWeek="Friday" EnableDescriptionField="true"
                    AppointmentStyleMode="Default" OnNavigationComplete="RadScheduler1_NavigationComplete" OnClientFormCreated="schedulerFormCreated"
                    OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
                    OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
                    OnAppointmentInsert="RadScheduler1_AppointmentInsert" DataKeyField="AppointmentID" CustomAttributeNames="Charge"
                    DataSubjectField="AppSubject" DataEndField="DateTimeDepart" DataStartField="DateTimeArrived"
                    DataDescriptionField="AppDescription" DataSourceID="LinqDataSource1" GroupBy="Resources"
                    StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true">
                    <AdvancedForm Modal="true" />
                    <TimelineView UserSelectable="false" />
                    <MonthView UserSelectable="false" />
                    <WeekView UserSelectable="false" />
            <AdvancedForm Modal="true" />
            <Reminders Enabled="false" />
             <AppointmentTemplate>
                        <div class="rsAptSubject">
                            <%# Eval("Subject") %>
                        </div>
                        <%# Eval("Description") %>
                    </AppointmentTemplate>
            <%--<AdvancedEditTemplate>
                <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("AppSubject") %>'
                    Description='<%# Bind("AppDescription") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
                    RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>'
                    AppointmentColor='<%# Bind("AppointmentColor") %>' CustomerID='<%# Bind("CustomerID") %>'
                    ResourceID='<%# Bind("ResourceID") %>' />
            </AdvancedEditTemplate>
            <AdvancedInsertTemplate>
                <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("AppSubject") %>'
                    Description='<%# Bind("AppDescription") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
                    RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>'
                    AppointmentColor='<%# Bind("AppointmentColor") %>' CustomerID='<%# Bind("CustomerID") %>'
                    ResourceID='<%# Bind("Room") %>' />
            </AdvancedInsertTemplate>--%>
             <TimeSlotContextMenuSettings EnableDefault="true" />
                    <AppointmentContextMenuSettings EnableDefault="true" />
                    <ResourceTypes>
                        <telerik:ResourceType KeyField="ContactID" Name="Contacts" TextField="LastName" ForeignKeyField="ContactID"
                            DataSourceID="LinqDataSource2" />
                        <telerik:ResourceType KeyField="ResourceID" Name="Resources" TextField="LastName"
                            ForeignKeyField="ResourceID" DataSourceID="LinqDataSource3" />
                    </ResourceTypes>
                </telerik:RadScheduler>
 <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="DataLogic.DataModels.KloudDataDataContext"
        TableName="AAA_Apointments" EnableInsert="true" EnableDelete="true" EnableUpdate="true">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="DataLogic.DataModels.KloudDataDataContext"
        TableName="AAA_Contacts">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="LinqDataSource3" runat="server" ContextTypeName="DataLogic.DataModels.KloudDataDataContext"
        TableName="AAA_Resources">
    </asp:LinqDataSource>

Peter
Telerik team
 answered on 13 Sep 2011
0 answers
88 views
It looks like the issue with databinding on Treeview with ParentID is been long one. I have seen old entries going back to 2005 till today with people experiencing the ParentID constraint issue. If you are here looking for a solution on the exception which was thrown at you starts as "The constraint cannot allow you...". Then you are in the right place. 

Basically, the dataset should have records for all parent ID's referred in the table. In order to make the Node as a Root so the tree can recognize it as the Root instead of looking for record in the dataset, you need to make that record Parent value as NULL. That's the solution for the issue. There were suggestions to do SELECT ChildID, Value, IF(ParentID=0, NULL, ParentID). This doesn't work in SQL, you have to do

SELECT ChildID, Value, CASE WHEN ParentID='' THEN NULL ELSE ParentID END As ParentID

It worked for me and it works for you. Also if you need to join the same table to get a parent, child relationship. Here is the query which you can use

WITH UserTable AS (SELECT U.EmployeeID, U.Employee, U.ManagerID FROM Employees U WHERE [EmployeeId] = '3434443'
UNION ALL SELECT U.EmployeeID, U.Employee, U.ManagerID FROM Employees U JOIN UserTable U2 ON (U.[ManagerId]=U2.[EmployeeId]))
SELECT EmployeeId,Employee, CASE WHEN EmployeeId='3434443' THEN NULL ELSE ManagerID END FROM UserTable

Hope this helps
Vijaianand
Top achievements
Rank 1
 asked on 13 Sep 2011
1 answer
40 views

 

 

Can someone show me how to set values on a tableview and make them show up from javascript?

I have been trying to do this, but it doesn't seem to work:

function ClientSelectedIndexChanged(sender, eventArgs) {
  
var item = eventArgs.get_item();
  
var item1 = item._attributes._data;
  
tableView._data._columnsData[2].value = item1.username;
  
tableView._data._columnsData[3].value = item1.firstname;
  
tableView._data._columnsData[4].value = item1.lastname;
  
tableView.rebind();
  
}

Regards,

Dan

Tsvetina
Telerik team
 answered on 13 Sep 2011
1 answer
157 views
I have reviewed many topics about RadWindow, RadWindowManager etc, but I am having trouble understanding the approach that I should take.

My goal is simple, I have a control heirarchy

Page.aspx
==== RadTabStrip
========RadTab
============UserControl
============Modal content (UserControl)
============UserControl
======================= Modal Content (UserControl)

See, I have nested controls that do their own thing, the need for modals / pop ups on different levels of the control tree, but each popup should appear as though it "owns the page".

My question: How should I approach this generally? Should I use RadWindows on the Page.aspx and "Add" controls to them at run-time? Or is there a way to manage RadWindows on various levels? I just don't understand how to manage the windows in this scenario.

Thanks,

Patrick
Marin Bratanov
Telerik team
 answered on 13 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?