Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
71 views
Hello Sir,
Currently shceduler define autometically Upper 12 to 8 In Gray Shed And In Down 5 to 11:00 In Gray Shed Color.
Means Business Time Color is 8 to 5 How Can We Change It.


Thanks
Chandan
Chandan Kumar
Top achievements
Rank 1
 asked on 19 Jun 2010
0 answers
92 views
Hello Sir
How Can check Custom attribute value on OnClientAppointmentContextMenu.

like


if i get subject then i write

function

 

OnClientAppointmentContextMenu(sender, args) {

 

alert(

"Appointment context menu: " + args.get_appointment().get_subject());

 

 

}


same as if i have Custom attribute  name StatusId then how can i get it its value.

when i write 

function OnClientAppointmentContextMenu(sender, args) {

 

alert(

"Appointment context menu: " + args.get_appointment().get_statusid());

 

 

}

its shows error..
So pls help me.

Thanks
Chandan

I have
Chandan Kumar
Top achievements
Rank 1
 asked on 19 Jun 2010
2 answers
455 views
Hi,

Can somebody help me with this error: Compiler Error Message: BC30560: 'RadComboBox' is ambiguous in the namespace 'Telerik.Web.UI'. Actually the error wasn't only on the RadComboBox but on all my RadControls. What is the cause of this error and how should this be fixed? I'm using RadControls for ASP.NET AJAX Q3 2009...

Thanks!
Yuji
Top achievements
Rank 1
 answered on 19 Jun 2010
0 answers
62 views
Hello Sir,

My appointment is showing  in Scheduler control. But When I Chnge 

ForeignKeyField at run time Then Appointment Not Showing in Scheduler Records Come In Our Dataset ant its bind Successfull bit Does Not Show In Scheduler. Why Please Help Me.

My Source Code :

 

ds = dl.FillDataSet(

 

CommandType.StoredProcedure, "uspGetAppointments", 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 =

 

"Resource";

 

RadScheduler1.DataDescriptionField =

 

"StatusColor";

 

 

RadScheduler1.ResourceTypes.Clear();

 

 

ResourceType rt = new ResourceType("Resource");

 

rt.DataSource = ds.Tables[2];

rt.KeyField =

 

"ResourceId";

 

 

 

if (ddlFacility.SelectedValue == "0")

 

{

rt.ForeignKeyField =

 

"FacilityId";

 

}

 

 

else

 

 

 

 

 

 

{

rt.ForeignKeyField =

 

"DoctorId";

 

}

rt.TextField =

 

"ResourceName";

 

RadScheduler1.ResourceTypes.Add(rt);

 

RadScheduler1.DataSource = ds.Tables[1];

RadScheduler1.DataBind();

 

 

Thanks
Chandan

Chandan Kumar
Top achievements
Rank 1
 asked on 19 Jun 2010
9 answers
497 views
Hi ,
I wrote very simple javascript to check listbox item checkbox after this item is clicked :
    function lboxItemClicked(sender, args) { 
 
        var i = args.get_item(); 
        i.set_checked(!i.get_checked()); 
 
        args.set_cancel(true); 
    } 
it does what it is supposed to do but when i click on checkbox it wont work , I guess recursion occurs and so it looks like nothing happed.
Is there any quick solution to get it working regardless if the item was clicked or checkbox ?
Chris
Top achievements
Rank 1
 answered on 18 Jun 2010
1 answer
206 views
I'm trying to customize the output format of a grid. Code that logically should work, seems to have no effect...

 

// Add event handler   
grid.GridExporting += new OnGridExportingEventHandler(grid_GridExporting);   
 
which points to:

 

 

// The handler: showing only the PDF branch   
static void grid_GridExporting(object source, GridExportingArgs e)   
 {  
RadGrid grid = (RadGrid)source;   
switch (e.ExportType)   
 {  
    case ExportType.Pdf:   
      ApplyStylesToPDFExport(grid.MasterTableView);  
      break;   
 }  
}  
 
 
 

Which calls:

 

 

 


 

// The routine, trimmed to simple example...  the code executes when I step thru it...  
static void ApplyStylesToPDFExport(GridTableView gtable)   
{  
foreach (GridColumn col in gtable.Columns)   
{  
col.HeaderStyle.BackColor = System.Drawing.Color.Silver;   
col.HeaderStyle.ForeColor = System.Drawing.Color.Red;   
}   
}  
 
 

 

 

 

So what am I doing wrong OR how can I do the equivalent.  The PDF export is done by the built-in export buttons...   All of the code is in a Utility class because it will be used on dozens of pages...

 

 

Daniel
Telerik team
 answered on 18 Jun 2010
5 answers
229 views
New RadControls user here still learning the controls ins and outs.

I'd like to know if there is a way to have two different insert forms.  I have a requirement that would allow the user to be able to insert a single record or enter records in a batch type mode. 
For example: In single the user may input:  Title, Volume Number, Issue Number

In a batch mode the user would input:  Title, Volume Number Start, Volume Number End, Issue Number Start, Issue Number End

I'm assuming to do this I'd have to somehow assign a secondary link command to "Batch Insert" and somehow hook this up to the Grid to allow for a secondary insert popup to appear.

Is this possible?  Are there any examples that would help me solve this requirement or point me in the right direction.

thanks
M S
Top achievements
Rank 1
 answered on 18 Jun 2010
2 answers
209 views
Hi,

I was using asp.net rad controls to 2008 Q1, and then we decide to migrate to prometheus to take benefits of the new features, but since this, the control RadAjaxTimer is missing !
Where is this control ? I can't found it in the assembly Telerik.Web.UI.dll
And also not only this control is missing, AjaxLoadingPanel too

Where are they ? How to resolve the problem ?

What is the standard procedure to migrate from asp.net rad controls to prometheus ?

Regards,
Alexandre
Kellen
Top achievements
Rank 1
 answered on 18 Jun 2010
4 answers
109 views
Is there a way to use RadScheduler in MVC without using WCF or webservice? Also I wanted to know weather if all the Rad controls for ASP.NET Ajax can be use in ASP.NET MVC without using Webservice or WCF.
Edward
Top achievements
Rank 1
 answered on 18 Jun 2010
1 answer
257 views
Hello Telerik Team,

I am trying to bind multiple datasources to the RadScheduler. For my code below, I am able to able to bind either Sharepoint List or Just SQL. Please help me correct my code so that I can support both datasources on the RadScheduler. Thanks.

       DataSet dS = new DataSet();      
                   DataTable dT = listItems.GetDataTable(); 
                   dS.Merge(dT);         
                   
     dT.Columns.Add("FromSql"); 
 
 
                   SqlDataAdapter myCnd = new SqlDataAdapter();    
                   myCnd = new SqlDataAdapter("select tID, tDATE, tTITLE, dDATE from myTable", strConn);  
                   DataSet dS1 = new DataSet();       
                   myCnd.Fill(dS1);          
                   foreach (DataRow row in dt.Rows) 
                   { 
                     
                       DataRow custdRow = dT.custdRow(); 
                       custdRow["ID"] = row["tID"].ToString(); 
                       custdRow["Title"] = row["tTITLE"].ToString(); 
                       custdRow["strtDate"] = row["tDATE"].ToString(); 
                       custdRow["endDate"] = row["dDATE"].ToString(); 
 
                       custdRow["FromSql"] = "Retrieve"; 
 
                       dT.Rows.Add(custdRow); 
 
                   } 
                   dS1.Merge(dT);        
                   dS.Merge(dS1,true);            
                 //RadScheduler1.DataSource = dT ;                   
                   RadScheduler1.DataSource = dS;   
                  
                  RadScheduler1.DataKeyField = "ID"; 
                  RadScheduler1.DataStartField = "strtDate"; 
                  RadScheduler1.DataEndField = "endDate"; 
                  RadScheduler1.DataSubjectField = "Title"; 
                  RadScheduler1.DataBind(); 

smith spd
Top achievements
Rank 1
 answered on 18 Jun 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?