Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
90 views
I have a problem when

Please view a below problem
http://c.uploadanh.com/upload/2/172/DA0.4792434_1_1.png

I provide a schedule data source which have many appointment (>200 Appointment). of one day)

<telerik:RadScheduler ID="RadScheduler1" runat="server"
            DataKeyField="AppointmentID" DataStartField="Dappt_time" DataEndField="Darrival_tim DataSubjectField="Dpatient_first_name" DayStartTime="06:00:00" DayEndTime="21:00:00">            
</telerik:RadScheduler>

My data source is a data table. (All appointments
DataTable dt = dv.ToTable();

Schedule1.DataSource = dt;
Schedule1.DataBind();   

Result, Schedule show many very tiny appointment that can't view detail appointment information.
I don't find a property to set the width of appointment item.

Please show me a solution
IMT Solutions
Top achievements
Rank 1
 asked on 06 Jan 2010
5 answers
242 views
Here's the scenario I'm having issues with. In the grid, when clients clicks on whatever rows, a modal window will pop open with more details of the row selected. Whenever the "X" on the top right corner of the modal window is clicked, this will show a popup box (default) with two buttons "ok/cancel". I just wanted to know, is there a way to set the buttons from "ok/cancel" to "yes/no" within the current version? I've looked at and searched and tried most of the suggestions but wasnt able to resolve the issue I'm having. Please give me your input or any suggestions as to how I can resolve this issue.  
Herseng Yang
Top achievements
Rank 1
 answered on 06 Jan 2010
1 answer
216 views


Initially AllowScroll=False in RadGrid

I have wrote code as below in javascript 
 var grid = $find("<%= RadGrid3.ClientID %>");
then 
grid.ClientSettings.Scrolling.AllowScroll = true;
grid.GridDataDiv.style.height = "150px" 

but GridDataDiv returns null in this case


but when AllowScroll=True  in RadGrid 

then 

grid.GridDataDiv.style.height = "150px"  this line of code works.


Why 
grid.ClientSettings.Scrolling.AllowScroll = true;
is not supporting..
i want to set AllowScroll  using javascript becoz if records are less then no need of scrolling.

Dimo
Telerik team
 answered on 06 Jan 2010
2 answers
151 views
Hello,

I want my treeview nodes to behave slightly differently to the default in that when a node that has child nodes is clicked the postback is disabled and the node is simply expanded. I will be wanting to raise a postback and fire the node click event when a node that does not have child nodes is clicked.

I tried a server side approach on the node data bound event by trying to count the e.Node.Nodes to see if it had children that way but it was always returned as 0. Is there a server or client side approach I can use to achieve the node behavior I require?

Thanks,

Michael
Michael Dunbar
Top achievements
Rank 2
 answered on 06 Jan 2010
2 answers
126 views
I download demo from http://demos.telerik.com/aspnet-ajax/upload/examples/customprogress/defaultcs.aspx

And then I tried to apply a background image to progress bar in Chrome. The version I currently use is 2009.1208.

Is it a bug?
Here are my steps:
1. Pull down demo page and compile it as local site
2. launch page from Chrome
3. Open Developer Tool and try to update the CSS for .RadUploadProgressArea_Default.ruProgress.ruBar div
4. Change the background image as below:
  1. background-image: url(http://localhosts/images/back.jpg);
5. Nothing happens. The back.jpg can be applied successfully in FF or IE.

Do I do something wrong?
Martin
Top achievements
Rank 1
 answered on 06 Jan 2010
3 answers
95 views
Hi,
I am using a Hierarchal RadGrid to display the list of classrooms in a school and a list of student in each classroom
but when I try to expand a classroom to show the students, my grid still show me the list of classrooms under a classroom instead of showing the lsit of students. I bind my grid to business objects, what am I doing wrong?
below is my code;
aspx:
<%@ 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"> 
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"> 
        </asp:ScriptManager> 
         
        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"  
            onneeddatasource="RadGrid1_NeedDataSource"> 
<MasterTableView> 
    <DetailTables> 
        <telerik:GridTableView runat="server" Name="details"> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
        </telerik:GridTableView> 
    </DetailTables> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn visible="True"> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
</MasterTableView> 
 
<FilterMenu EnableTheming="True"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
        </telerik:RadGrid> 
         
    </div> 
    </form> 
</body> 
</html> 
 
c#
using System; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
using Telerik.Web.UI; 
 
public partial class _Default : System.Web.UI.Page  
{ 
    protected void Page_Load(object sender, EventArgs e) 
    {    
        if (!Page.IsPostBack) 
        { 
            RadGrid1.DetailTableDataBind += new Telerik.Web.UI.GridDetailTableDataBindEventHandler(RadGrid1_DetailTableDataBind); 
        } 
    } 
    protected override void OnInit(EventArgs e) 
    { 
        base.OnInit(e); 
        if (!Page.IsPostBack) 
        { 
            RadGrid1.DetailTableDataBind += new Telerik.Web.UI.GridDetailTableDataBindEventHandler(RadGrid1_DetailTableDataBind); 
        } 
    } 
 
    void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e) 
    { 
        (source as RadGrid).DataSource = (e.DetailTableView.ParentItem.DataItem as ClassRoom).students; 
    } 
    public School MySchool 
    { 
        get 
        { 
            if (Session["school"] == null) 
                Session["school"] = new School(); 
            return Session["school"] as School; 
        } 
    } 
    protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
    { 
        RadGrid1.DataSource = MySchool.classes; 
    } 
} 
 
app_code(c#)
using System; 
using System.Data; 
using System.Configuration; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
using System.Collections.Generic; 
 
/// <summary> 
/// Summary description for Class1 
/// </summary> 
public class School 
{ 
    public List<ClassRoom> classes; 
    public School() 
    { 
        classes = new List<ClassRoom>(); 
        ClassRoom cr1 = new ClassRoom("Grade1"); 
        cr1.students.Add(new Student("Nifty", "Morafo")); 
        cr1.students.Add(new Student("Nathi", "Xulu")); 
        cr1.students.Add(new Student("Nkululeko", "Nkuruza")); 
        classes.Add(cr1); 
 
        ClassRoom cr2 = new ClassRoom("Gravy"); 
        cr2.students.Add(new Student("Jerry", "Skosana")); 
        cr2.students.Add(new Student("Brian", "Baloyi")); 
        classes.Add(cr2); 
 
        ClassRoom cr3 = new ClassRoom("SuperGrade"); 
        cr3.students.Add(new Student("Anele", "Ndlela")); 
        cr3.students.Add(new Student("Sindi", "")); 
        classes.Add(cr3); 
 
        ClassRoom cr4 = new ClassRoom("Casanova"); 
        cr4.students.Add(new Student("Good", "Night")); 
        classes.Add(cr4); 
    } 
} 
public class ClassRoom 
{ 
    public ClassRoom(string gradeName) 
    { 
        students = new List<Student>(); 
        GradeName = gradeName; 
    } 
    public List<Student> students; 
 
    public string GradeName; 
    public string Grade 
    { 
        get 
        { 
            return GradeName; 
        } 
    } 
} 
public class Student 
{ 
    public Student(string name, string surname) 
    { 
        this.Name = name; 
        this.Surname = surname; 
    } 
    public string FirstName 
    { 
        get { return Name; } 
    } 
    public string LastName 
    { 
        get { return Surname; } 
    } 
    public string Name; 
    public string Surname; 
} 
Thanks in advance,

Nkululeko Mthethwa.



Pavlina
Telerik team
 answered on 06 Jan 2010
1 answer
94 views
 Hi ,
I have mentioned the code for scrolling a grid like

<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
   </Scrolling>
 </ClientSettings>

also i have set PageSize=20  and Height = 400Px

But when there is only 1 record there is empty space between 1st record and footer.

So how can we avoid that space when there are less record .
Dimo
Telerik team
 answered on 06 Jan 2010
1 answer
77 views
Hi,

Is it possible to have horizontal scroll enable for Rad hierarchal Grids.?

In the Grid shown on this page http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx
I want horizontal scrolling enabled at every level of Hierarchy. If is it possible please suggest me how can I do that.

Thanks

Shahid


Dimo
Telerik team
 answered on 06 Jan 2010
1 answer
119 views
Hi, I just got the latest DLL as of Jan 5, 2010. One change to the grids is that Grid Column Headers that are groupable / reorderable now use the Compass like Arrows on mouse over. This works fine but when you mouse over a checbox in the Client Select Column' Header it should change back to the hand or default mouse icon.
Dimo
Telerik team
 answered on 06 Jan 2010
1 answer
106 views
I have a grouped grid, with AllowMultiSelect set to false. If I select a visible item, i.e. in a group that is expanded, then select another, the original item is unselected, as expected. However, if I select an item, collapse the group that it resides in, and select an item from another expanded group, I am seeing 2 selected items in the SelectedIndexChanged event. If I expand the original group, I see both the original item and the newly selected item are both selected in the grid. Is that by design? For now I will try to code around it.

Steve
Tsvetoslav
Telerik team
 answered on 06 Jan 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?