Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
179 views
Hi,

We are currently using the RadDatePicker from the ASp.Net Q1 2009 release and we have found an issue that a very small number of clients who will access the site may have JavaScript turned off / disabled.

We have found an issue that even if the user types the date into the box the control does not register the fact. Is there any way to access the information inputted by the user?

Thank you

Dave
Pavel
Telerik team
 answered on 10 Apr 2009
1 answer
86 views
I am currently using the RadGrid and have been differentiating my business objects by properties set in tables.
Example: One Table called 'Contacts' which has a flag column called 'IsPerson' which determines whether the contact is a Person or Company. When binding to the grid I would show or hide columns ( Visible='<%# Eval("IsPerson") %> ) applicable to either type based on whether the 'IsPerson' is true or false, but still have both Persons and Companies in the same bindable collection.
Look at the Code below to understand where I'm coming from:
However I have moved onto the entity framework and have implemented Table-Per-Hierarchy inheritance set out as follows:
abstract class Contact{  
    int ContactID;  
    string Name;  
.......  
}  
 
class Person : Contact{  
    decimal Salary;  
.......  
}  
 
class Company : Contact{  
    decimal ShareValue;  
.......  

To bind I would call
using (MyEntityContext c = new MyEntityContext()){  
    IList<Contacts> contacts = c.Contacts.ToList<Contacts>();  
 
    MyRadGrid.DataSource = contacts;  
    MyRadGrid.DataBind();  
}  
 

How do I differentiate between Person and Company objects in my collection when binding in a Custom GridTemplateColumn?
Example
<itemTemplate>
<%# Eval("Salary") %>    // Works for type 'Person', NOT for type 'Company'
</ItemTemplate>

Please let me know if this doesn't make sense and I'll try and clarify further,,,,
Nikolay Rusev
Telerik team
 answered on 10 Apr 2009
2 answers
117 views
Hello,
we are involved into developing an asp.net huge intranet application.
We have a previous application in vs 2003 using absolute position but we dont want to use in that way.

In this application there are many forms and input masks, we'd like to use radinput but having troubles in design a well defined form like a "win form". In our html test forms we use css position inline ( top, left, relative, etc), and we are looking a way to avoid tables or a lot of <div> manually entered..

The 'design mode' of RAD controls is not so 'visual'.. or we are making a big mistake ?

We are looking for some samples or best practice to start our work of designing forms, please give us some hint.

Best regards

Andrea

Andrea Del Brocco
Top achievements
Rank 1
 answered on 10 Apr 2009
1 answer
86 views
give me sample please
Fiko
Telerik team
 answered on 10 Apr 2009
4 answers
300 views
Hi,

I have a Rad Scheduler control with a right-click context menu and a menu item to "edit appointment".

I want to direct the browser to another page altogether when the user clicks on that menu item. And I want to pass the appointment ID to the target page in the querystring.

Likewise, I want to pass the selected date if an "add appointment" menu item is clicked.

What's the best way to do this?

Thanks,

Jason
Peter
Telerik team
 answered on 10 Apr 2009
1 answer
111 views
Hi All,
I want to drop an item on RadCaneldar and highlight the date/dates on which items are dropped.

On Server side Dayrender event I have writted the code like below where I am attaching 'OnDrop' event to the each cell.

 

Dim sDate As String = Convert.ToString(e.Day.Date)

 

e.Cell.Attributes.Add(

"ondragenter", "return fnCancelDefault();")

 

e.Cell.Attributes.Add(

"ondragover", "return fnCancelDefault();")

 

e.Cell.Attributes.Add(

"ondrop", "return GetSchedulerDroppedItem('RadCalMonth1','" & sDate & "');")

My client side function is,

 

 

function GetSchedulerDroppedItem(SchedulerName,droppeddate) {

 

 

var htmlElement = event.srcElement; //eventArgs.get_destinationHtmlElement

 

 

 

 

var SchedulerControl;

 

 

 

var hiddenDroppedSchedulerID = document.getElementById("ctl00_Content_hFieldDroppedSchedulerID");

 

 

else if (SchedulerName == "RadCalMonth1") {

 

SchedulerControl = document.

get('ctl00_Content_RadCalMonth1');

 

hiddenDroppedSchedulerID.value =

"RadCalMonth1";

 

}

 

var droppeddatetimecontrol = document.getElementById('ctl00_Content_hFieldDroppedDateTime');

 

droppeddatetimecontrol.value = droppeddate;

 

 

//// var ajaxmanager = $find("ctl00_RadAjaxManager1");

//// ajaxmanager.Request();

 

 

//__doPostBack('TestCntrl','');

 

 

 

PageMethods.UpdateJob_OnDrop(SchedulerControl);

 

 

}

In the above function I want to use postback function that will not cause full page to refresh.
In RadScheduler there is one event "InsertAppointment"

 

var

newAppointment = new Telerik.Web.UI.SchedulerAppointment();

 

var dt = new Date(timeSlot._startTime);

 

newAppointment.set_start(dt);

newAppointment.set_end(dt);

newAppointment.set_subject(

"");

 

SchedulerControl.insertAppointment(newAppointment);

 

This calls server side AppointmentInsert event of Scheduler and does not refreshes the page.

How can I achieve such thing for RadCalender?
Also, after post back I want to show the dropped date highlighted.

Can anyone help me in this?

Best Regards,
Hrushikesh

Tsvetoslav
Telerik team
 answered on 10 Apr 2009
0 answers
78 views
Hi,
I'm trying customize my menu. I changed the backgroud and other css rules.
But subitems are showing at start of the page:
http://img403.imageshack.us/img403/9189/telerik.jpg
After I moved mouse on subitem and then out the subitem hides. But if I want to show subitem again it displays wrong.
Whoch css styles rules should I change to fix this?
Olo
Top achievements
Rank 1
 asked on 10 Apr 2009
3 answers
134 views
I use a RadMenu into a website.

When I open a RadWindow, the RadMenu appears in foreground and hide a part of the RadWindow. The RadWindow should appear in foreground and hide the radMenu.

What may I do to resolve this problem ?

Do you have encoutered already this issue ?

Thank you in advance,


Georgi Tunev
Telerik team
 answered on 10 Apr 2009
1 answer
187 views

Hi ,

I am using multiple RADEditor controls in my application (more than 15 ). Due to this applications performance is very slow. Since controls are getting generated dynamically so on Each post back its taking lots of time to regenerate it. I don’t need lots of features provided by telerik RADEditor. I won’t need following features

1.           HTML view feature

2.               Preview feature


I need a very basic Rich Text box control which should allow me basic formatting and creation of tables inside it.

Please let me know considering above requirements is it possible to increase performance of the page.

 

Regards

-Vimlesh

 

Tervel
Telerik team
 answered on 10 Apr 2009
1 answer
244 views
I'm using RadEditor for document editing. The problem I'm having is that if I set ViewPaths, UploadPaths, DelePaths to "App_Data" folder, images won't display. App_Data folder is given permissions to read/write/execute. This problem also occurs when we upload images to webserver, the preview features won't display images neither!  Any idea? Thanks!

RadEditor1.ImageManager.ViewPaths = set to "App_Data"

RadEditor1.ImageManager.UploadPaths = ...
RadEditor1.ImageManager.DeletePaths = ...

Lini
Telerik team
 answered on 10 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?