Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
318 views
 hi, i bind a employee table to my RadGrid so my columns for RadGrid are 'emp_name', 'emp_dept', 'emp_city'.

now, what i want is when i select a perticular row of RadGrid i need to access all the values of that perticular row in a javascript function.

i tried to find these values in 'args' but i havn't found the luck.

Please help.

Kusum Dhyani
Top achievements
Rank 1
 answered on 20 Jun 2010
0 answers
92 views
Team,

I want to populate Radcombobox in my ASPX page with all the *.dot files in a directoy of my system.

Pls. provide me the solution with code.

Thanks
raaj
Top achievements
Rank 1
 asked on 19 Jun 2010
4 answers
150 views
I am working with RadChart for the first time, so I still have a LOT to learn.  There are several things I need to do to this RadWindow, but I'll deal with those after I get the chart right. I have attached a screen copy of my chart as it now exists, and then have three of questions.

Questions:
(1) I do not want the numbers (5, 4, 3, 2, 1) down the left-hand side. Instead, I want the text strings (such as "Something we must have to keep up with our competitors" and "A tool our competitors are using better than we are") in that location on the chart.  It's okay if the text wraps onto multiple lines as long as you can tell which bar on the chart the text is associated with.  Can you tell me how to eliminate the numbers and move the text?

(2) Once the text strings are moved to the left side of the axis, I want them to display in their entirety.  In the attached screen capture, they are cut off after about half of the text is displayed.  Can I accomplish this and, if so, how?

(3) If I wanted to change the color of the bars from gold to, say green, how would I do that?

That's plenty for now.  Sorry to be a pain.  If I can accomplish these 3 items, I'll be happy!

Thanks!

Lynn
Lynn
Top achievements
Rank 2
 answered on 19 Jun 2010
0 answers
56 views
hi every body
i am using radcontrols and i have this problem:
when the radbuttons get focus with pressing TAB, they don't have any change in UI , and it's impossible to say what button has focus now!
i appreciate any help from u
thanks.
mahdi gh
Top achievements
Rank 1
 asked on 19 Jun 2010
0 answers
68 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
86 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
436 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
59 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
478 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
200 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?