Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views
http://www.upload2world.com/pic106/upload2world_84b8e.jpg

what this footer how can i remove it sorounded with red color
Rumen
Telerik team
 answered on 12 Dec 2008
1 answer
171 views

Hello!

I've noticed that RadEditor have very usefull method ExportToPdf. When I invoke it, PDF file opens automatically in current browser window.  But this is not what I want. I just want to save this PDF file to database and do not output it.

Is there any solution to do this?

Rumen
Telerik team
 answered on 12 Dec 2008
1 answer
140 views
Hi,

I created a page with a treeview inside a combobox like your Treeview in Combobox example.
http://demos.telerik.com/aspnet-ajax/Treeview/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx

I followed the example and it worked perfectly.  However, I need to set an initial value for the combo/treeview with values from the database.  I assumed I had to :
1) select the corresponding item in the treeview
2) set the text and the value for the radcombo.

I haven't been able to implement this successfully.  I selected the item in the treeview with no problems, and also have been able to set the radcombobox text, but for some reason cannot set the value, and I need this value in order to insert it in a database.

This is what I've been trying to do:

   Dim selectedNode As Telerik.Web.UI.RadTreeNode = tvParentPage.FindNodeByValue(parentPageId)

                Me.ParentId.Items(0).Value = parentPageId
                Me.ParentId.Items(0).Text = selectedNode.Text
                Me.ParentId.Text = selectedNode.Text

Any sugestions on what's missing?

Thank you.
YCeron

Veselin Vasilev
Telerik team
 answered on 12 Dec 2008
1 answer
168 views

Hi,

I have a 3 level hierarchical grid in page Grid.aspx. After expanding my grid to third level, I click on Add New Record, which opens a UserControl ( UsrCntrl1.ascx) as add template. This usercontrol contains a grid, a combo and a button (name is 'Add to grid') inside it.

In the usercontrol, when i select a value in the combobox  and click on button 'Add to Grid', a server side function is called which updates rad grid datatable by adding a new row to it and then binding the grid again. After the addition process is complete, the grid is successfully updated with new row, but when this usercontrol(UsrCntrl1.ascx) finishes its postback and rebinds itself to the 3 level hierarchical grid an error occurs saying,

"Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element."

The Grid UI Code in UsrCntrl.ascx:

 

 

<rad:RadGrid ID="DynamicList" runat="server" ></rad:RadGrid>

 

 

 

The Grid Codebehind Code in UsrCntrl.ascx.cs:

 

protected

 

void AddToList(object sender, ImageClickEventArgs e)

 

{

    DataTable

 

dt = new DataTable();

 

 

    if (Session["List"] == null)

 

    {

        dtPayee.Columns.Add(

"ABC", typeof(string));
        dtPayee.Columns.Add("XYZ", typeof(string));
    }
    else

 

        dt = (

DataTable)Session["List"];

 

 

 

    DataRow dr = dt.NewRow();

 

    dr[

"ABC"]= "Hello";
    dr[
"XYZ"]= "Bye";
    dt.Rows.Add(dr);

 

    DynamicList.DataSource = dt;

    DynamicList.DataBind();

    Session[

"List"] = dt;
}


What is causing this error ? I have already checked that there is no naming / ID conflicts between the grid page and template(usercontrol) page.

 

Sebastian
Telerik team
 answered on 12 Dec 2008
2 answers
287 views
Hi,

Now I have upgraded to the (very) latest Radscheduler (2008.3.1210.20), but also in earlier Q3 release, the code I was using to set the appointment height on the displayed Scheduler no longer works - it did work in the Q2 release.  The Javascript, copied from the site, is:

<style type="text/css">        
    .RadScheduler .rsContent .rsHoursTable th         
    {        
        font-size:10px;        
        line-height: 15px;        
        height:15px;        
    }        
   .rsContent .rsContentTable .rsCell         
    {        
        font-size:10px;        
        line-height: 15px;        
        height:15px;        
    }        
    </style>      

I have also tried the 

RadScheduler1.RowHeight = 10

code, but this only affects the Appointment area, and not the hours displayed on the left hand side.

Is there are means of changing both the apppointment heightr and the time height at the same time so they are in synch?

I would also find it useful to be able to change the size of the font used to display the hours and minutes on the left hand side, as my Clients are telling me the new default size is too large (compared with Q2 release)

David Penny
David Penny
Top achievements
Rank 2
 answered on 12 Dec 2008
1 answer
127 views
Hi,

I am using a Rad Schedule control. I am having Schedule group by resources. I want to show Resources on Y axis and Time on X axis. I am using Object Data Source. Below is the code that i am using. Please let me know a possible solution

ASPX file 
 
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_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> 
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime"  
        DataKeyField="Subject" DataSourceID="ObjectDataSource1"  
        DataStartField="StartTime" DataSubjectField="Subject"  
        HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1"  
        GroupBy="MeetingRoom" GroupingDirection="Vertical" ShowHeader="false"  
        ShowViewTabs="False" SelectedView="ResourceView,TimelineView"
        <ResourceTypes> 
            <telerik:ResourceType DataSourceID="ObjectDataSource1" KeyField="Room.ID"  
                Name="Room.Name" TextField="Room.Name" ForeignKeyField="Room.ID" /> 
        </ResourceTypes> 
    </telerik:RadScheduler> 
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  
        SelectMethod="GetBookings" TypeName="Booking"></asp:ObjectDataSource> 
    </form> 
</body> 
</html> 
 
 
 
 


Object Class File

using System; 
using System.Collections.Generic; 
 
/// <summary> 
/// Summary description for BookingClass 
/// </summary> 
public class Booking 
    public Booking() 
    {        
    } 
 
    public Booking(DateTime s, DateTime e, String Subject,MeetingRoom pRoom) 
    { 
        StartTime = s; 
        EndTime = e; 
        this.Subject = Subject; 
        Room = pRoom; 
    } 
 
    private DateTime _StartTime; 
 
    public DateTime StartTime 
    { 
        get { return _StartTime; } 
        set { _StartTime = value; } 
    } 
    private DateTime _EndTime; 
 
    public DateTime EndTime 
    { 
        get { return _EndTime; } 
        set { _EndTime = value; } 
    } 
    private MeetingRoom _Room; 
 
    public MeetingRoom Room 
    { 
        get { return _Room; } 
        set { _Room = value; } 
    } 
 
    private string _Subject; 
 
    public string Subject 
    { 
        get { return _Subject; } 
        set { _Subject = value; } 
    } 
 
    public List<Booking> GetBookings() 
    { 
        List<Booking> lst = new List<Booking>(); 
        for (int i = 1; i <= 10; i++) 
        { 
            MeetingRoom room = new MeetingRoom(i, "Nalanda " + i.ToString()); 
            lst.Add(new Booking(DateTime.Now.AddMinutes(10 * i), DateTime.Now.AddMinutes((10 * i) + 20), "Booking " + i.ToString(),room)); 
        } 
        return lst; 
    } 
 
 
 
public class MeetingRoom 
    public MeetingRoom(int pID, string pName) 
    { 
        this.ID = pID; 
        this.Name = pName; 
    } 
 
    private int _ID; 
    private string _Name; 
 
    public string Name 
    { 
        get { return _Name; } 
        set { _Name = value; } 
    } 
 
    public int ID 
    { 
        get { return _ID; } 
        set { _ID = value; } 
    } 


Code  behind file
using System; 
 
public partial class _Default : System.Web.UI.Page  
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 


Can i paste Screenshot here for your quick Reference?

1. How to desable making an new Appoinment before a particulate time (say DateTime.Now)
2. Is there a possible way to show a line on calendar indicating current time.
3. For a particular appointment let us say from 1.45 to 3.15 i need to show multiple colors. Meaning from 1.45 to 2.00 i need to show red color.  Then 2.00 to 3.00 i need to show green color and then again from 3.00 to 3.15 i need to show red color. Can this be done?
4. Also i want to show multiple timezones in Scheduler and show corresponding Meeting rooms under that Timezone. Something like Group Meeting Rooms by Timezone.
Peter
Telerik team
 answered on 12 Dec 2008
1 answer
114 views
We use the scheduler control to schedule employees to server the callqueue. People are settled for a couple of hours during the day. We no want to show the number of employees scheduled in the left column, at the rows where the hours are shown. Then we can see in one blink of eye how many people we have schuduled in that (half) hour.
Anyone an idea how to fix that?
Screenshot: Employee scheduler

All day
08:00
(4) Mr. X Mrs. Y Mrs. Z Mrs. W
(6) Mr. X Mrs. Y Mrs. Z Mrs. A Mr. B Mrs. C
09:00
(12) etc. etc.
(14) etc.  etc.
10:00
(15)
(15)
etc.
Peter
Telerik team
 answered on 12 Dec 2008
4 answers
416 views
Hi there, we're using your latest Q3 controls, and we've disabled embedded stylesheets by setting a property in the web.config:

<appSettings>

<add key="Telerik.EnableEmbeddedSkins" value="false" />

<add key="Telerik.EnableBaseStyleSheet" value="false" />

</appSettings>

We then used a method posted by one of your techs where we use a usercontrol that looks for all ISkinnableControls within the current form and sets their skin property to our custom skin.   This all works fine..  The problem is that we see three stylesheet references to webresources.axd in our html document, which shouldn't be there since we are not using embedded skins?  Why three, why any :)

<link href="/WebResource.axd?d=_NkAcKzL_lR4vdCVSsRvaCWD41UmOOu-yM0BgPeB33QQvLJdXYTZGVCUIKILah0L0&amp;t=633631346260000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

<link href="/WebResource.axd?d=_NkAcKzL_lR4vdCVSsRvaCWD41UmOOu-yM0BgPeB33Tq9aa_akvAEN4I8wtVTgK0ISNuu78FGbxSfzrd9eBydw2&amp;t=633631346260000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

<link href="/WebResource.axd?d=_NkAcKzL_lR4vdCVSsRvaCWD41UmOOu-yM0BgPeB33QQ3R6S2A9PwmfdOAgsjdba0&amp;t=633631346260000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

Jason Clark
Top achievements
Rank 1
 answered on 12 Dec 2008
3 answers
125 views
Hi,

The app I am creating is based on comboBox (dropdownlist) selections.  For example,

Staff
Faculty
Administration

If someone selects "Staff" from the combo box selection, another dropdownlist (RadComboBox) will appear listing the Title types of "Staff" for them to choose.  I'd like these titles to be dynamically generated via a datasource based on "Staff" (haven't hooked the control to the DS yet).  However, at this point, I just want to be able to identify what the user has selected in the "StafF" ComboBox in order for the "Staff title" comboBox to become visible.  I would normally use an ID for this, but I don't see that as an attribute in the RadComboBoxItem control.  What do you suggest?

Thanks,
R2
R2
Top achievements
Rank 1
 answered on 12 Dec 2008
1 answer
117 views
How do I increase the width of resource column in timeline view? Furthermore are the columns resizable?
Peter
Telerik team
 answered on 12 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?