Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
245 views
When I use a RadDatePicker and set the SelectedDate to some datetime value, the time value gets set to 00:00.
The DateInput format and the DisplayFormat are "MM/dd/yyyy HH:mm"

So then I try the RadDateTimePicker and setting the SelectedDate to a datetime works as expected. 
However, I do not need the TimeView. I can certainly hide the popup button but I do not want the TimeView rendered. 
Attempts at setting the TimeViews visibility to false generates javascript errors. 

What I need is for the control to work with "MM/dd/yyyy HH:mm". If the RadDateTimePicker is the correct one, then I need a way to not render the TimeView.  

Pavel
Telerik team
 answered on 24 Apr 2009
1 answer
85 views
Hi,

I'm new to telerik controls and so far my biggest problem is that I cannot make them display properly. I mean I'm setting css classes, setting manually the width/height and so on and they aren't displaying properly. Especially when it comes to displaying to 100% height or width (in which case usually at least on height the controls don't behave properly).

Also, when using Scheduler (only in IE 6/7, in Firefox it behaves almost properly) when adding a new schedule it moves its position overlapping other page components (and definitely doesn't abide to any rules regarding its containers).

Can you give me some links regarding on how to customize telerik controls? How to set widths/heights (in percentage)?

Thank you.
Svetlina Anati
Telerik team
 answered on 24 Apr 2009
2 answers
126 views
Hello,

I'm interested in converting 3 grids to one pdf... 
The 3 grids relate to 1 employee
Work Experience
Certifications
Languages Spoken

I'm guessing this isn't possible.

What if I had a grid (return 1 employee record) with 3 detail tables.. could I export the grid including the details tables to pdf?

I tried doing this

 

Me.RadGrid1.ExportSettings.OpenInNewWindow = True

 

Me.RadGrid1.ExportSettings.ExportOnlyData = False

 

 

 

Me.RadGrid1.ExportSettings.IgnorePaging = True

 

 

 

Me.RadGrid1.MasterTableView.ExportToPdf()   but it only exports the 1 employee record and not the detail tables.

Any possible solutions would be helpful

Thanks,
Paul

 

 

 

 

 




Pavlina
Telerik team
 answered on 24 Apr 2009
2 answers
93 views
Could somebody at telerik please send me the psd files for the vista skin for Tabstrip and Panelbar Q1 2009 as these do not seem to be uploaded to the skin exhange are at the moment.

Regards & Thanks


S.P
Stephen Potter
Top achievements
Rank 1
 answered on 24 Apr 2009
5 answers
239 views
Hi,

    I have a column with one basic filter as shown :

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                        UniqueName="Name" AllowFiltering="True" ShowFilterIcon="True">

1) Datafileld is of type String. Here instead of displaying all filter choices when i open filter menu, i need to show only some, say 4 in it.         How to customize this filter menu.

2) On select of item in filter menu i need to access particular( either Equalto, Contains ...) text at serverside.

For second one control is falling to below shown function, but e.commandName is "Filter".. not the selected filteroption in filter.

protected void rgIssues_ItemCommand(object sender, GridCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            }
       } 

Can anyone go through it and give any suggestions:

Thanks
Josh
Pavlina
Telerik team
 answered on 24 Apr 2009
4 answers
181 views
Hi,

Using version 2009 Q1 SP1 (2009.1.402.35), I'm dynamically creating a tooltip from a ToolTipManager client-object as explained here : http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx

I want to display the tooltip only when the user clicks an image, not when hovering over it. It works for the first click since no tooltip exists for the image, but after that, hovering over the image opens the tooltip. So my question is how to correctly use the client-side function set_showEvent() to set the event to "FromCode" ? There does not seem to be any documentation about that function.

Thanks for your help,

dstj.
Svetlina Anati
Telerik team
 answered on 24 Apr 2009
6 answers
416 views

I have grid that uses EditForm for the edit mode.  Inside the edit form, I have a button that sends email from the server:

<asp:Button ID="EmailButton" Text="Email" OnClick="EmailButton_Click" OnClientClick="javascript:radconfirm('Are you sure you want to send the email?', emailConfirmCallback); return false;" runat="server" /> 
 

the callback function for radconfirm was defined as

function emailConfirmCallback(arg)  
{  
    if (arg)  
    {  
        var eButton = $find('<%# ((GridItem)Container).FindControl("EmailButton").ClientID %>');  
          
        eButton.click();  
    }      

The problem is that $find() cannot find the button in the callback function.  What shoud I do so that when OK on radconfirm was clicked, the server side function EmailButton_Click() will be executed?  Thanks,

Peichung
Yavor
Telerik team
 answered on 24 Apr 2009
1 answer
187 views
Dear Sirs,
we are using the RadScheduler ASP .NET (3.5) control to show the informations regarding tickets for a trouble-ticketing help desk.
Since each ticket has different statuses, our goal is to show the calendar cells with different colors depending on the tickets' statuses.
So the question is:
how is it possible to change the color of the calendar's cells from the code (C#)?
Many thanks in advance.
Sergio
Alex Gyoshev
Telerik team
 answered on 24 Apr 2009
3 answers
109 views
Hi,

I currently fight with a problem handling RadFileExplorer.
While there are other problems it brings me to a general question - is there a need to serialize ajax calls.

I use sample code from RadFileExplorer - but the question is a general question.
function OnClientSomeControlDidSomething(sender, args) {  
    TellServerAboutSelectedElement("Someparam");  
}  
 
function TellServerAboutSelectedElement(argument) {  
    var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");  
    ajaxManager.ajaxRequest(argument);  
}  
 
Assume this OnClientSomeControlDidSomething is fired by a control which fires this event immediately after it fired an ajax call.
As with FileExplorer - it fires something like "AjaxLoadTheFolderContent" followed by OnClientFolderChange.
So if loading of the changed folder takes time my handler starts an ajax call while an other ajax call (LoadFolderContent) is in progress.

So the general question - does it make problems (or is it even allowed) to make an ajax call while another ajax call is in progress?
I'm not talking about potential problems (who wins if controls need to be updated) - I just wanna know if this is allowed or not.

If the answer is: NO it is not allowed you have to make the calls one after another if have a second problem.

OnResponseEnd and OnRequestStart are two functions available on the AjaxManager. But there is no "extra version" for the AjaxProxy.
Assume I have to serialize calls and I use MasterPages where the AjaxManager resides in the masterpage while AjaxProxies are used in the DetailPages - and to make it really hard - I use UserControls - also with AjaxProxy.
Assume further the MasterPage has a need to handle the OnResponseEnd - my page needs special handling also and finally my UserControl has a need for those events.

Since these eventhandler are not events like C# events where I add a handler (additional to existing ones) I can only have one of these handlers at a time.
Of course I could do some "Magic" by finding out if an event is already bound and then emit my handler jscript from server like this:
string strExistingHanlder = aM.ClientEvents.OnResponseEnd;  
string strMyHandler;  
if (!string.IsNullOrEmpty(strExistingHanlder)) {  
    strMyHandler = "function OnMyResponseEnd(sender,args) {";  
    strMyHandler += strExistingHanlder + "(sender, args); DoMyHandling(sender, args); }";  
}  
else {  
    strMyHandler = "function OnMyResponseEnd(sender,args) {  DoMyHandling(sender, args); }";  
}  
 
As long as I take care about my Handler function name it should work - but is this a good solution, or is there a "how to do this properly" for "chaining" handlers?

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 24 Apr 2009
3 answers
87 views

 

<telerik:RadToolBarButton runat="server"

 

 

ImageUrl="~/Portals/icons/help1/Copyright.png" Text="About"

 

 

NavigateUrl=http://www.xyz.com Target="_blank">

 

 

</telerik:RadToolBarButton>

With the code above in toolbar. The parent page also refresh to the new website url.

 

Helen
Telerik team
 answered on 24 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?