Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
298 views
I'm using a RadDateTimePicker on a dynamically loaded control, and javascript is used to track any changes made on each control.
So I've added the following code, which works for the editing of the textbox and when selecting from the timeview part of the control.
(I presume these controls are inheriting onchange and onclick events as they're not available with intellisense.)

this.rdtpAbsoluteBegin.DateInput.Attributes.Add("OnChange", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); 
this.rdtpAbsoluteBegin.TimeView.Attributes.Add("OnClick", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); 
 

However, when I apply this same code to the Calendar - no matter what event I use - the javascript is not firing.
I've tried things like OnChange, ClientEvents-OnDateClick, ClientEvents-OnDateSelected etc. both on the RadDateTimePicker itself and on the Calendar.

this.rdtpAbsoluteBegin.Calendar.Attributes.Add("OnClick", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); 

Is there something I'm missing, or could you suggest another way to do this?

Thanks,
Graeme
Graeme Mc
Top achievements
Rank 1
 answered on 18 Mar 2010
1 answer
80 views
I want to use only label part of input control and want to apply a custome style property on that label. But I can't find it.
Actually the thing is that , I have an asp.net web application where I am using Telerik controls.  In that application I have a custom style file having name "style.css" and I have some label controls.
I want to use that custome style[font,fore color, sont size,backcolor etc] part for the label .
But I could not find the proper things for that. I need a suggestive help in this matter using an exmple.
Iana Tsolova
Telerik team
 answered on 18 Mar 2010
5 answers
233 views
I have dynamic content that goes into an RadAjaxPanel that is inside a RadWindow.  The content I am adding has styles and float attributes to create a multi-column display of information.  However, when I add the content to the window, the styles appear to be lost and my dynamic content is presented top down.  In addition, the auto-resize ends up with scrollbars on my content...sometime.  Other times is appears ok.  It never works the first time the window is opened.

Is there a way to keep the dynamic content styles?

Here is the code setup for the RadWindow.

    <telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade"   
        AutoSize="True" Modal="True" Behavior="Resize, Close, Move"   
        Behaviors="Resize, Close, Move" InitialBehavior="None" Left=""   
        ShowContentDuringLoad="False" Top="" VisibleStatusbar="False"   
        VisibleTitlebar="False">  
    <ContentTemplate> 
    <div id="criteriapanel" class="criteriapanel">  
    <telerik:RadAjaxPanel ID="updatePanel" runat="server"   
        HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" > 
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"   
            Height="39px" InitialDelayTime="300" IsSticky="True" MinDisplayTime="200"   
            Skin="Default" BackColor="yellow" OnClientShowing="MyClientShowing" OnClientHiding="MyClientHiding">  
        </telerik:RadAjaxLoadingPanel> 
    </telerik:RadAjaxPanel> 
    <asp:Button runat="server" ID="GenerateReport" CssClass="button" Text="Generate Report" />    
    <asp:Button runat="server" ID="CancelReport" CssClass="button" Text="Cancel" OnClientClick="CloseCriteria();return false;" />     
    </div> 
    </ContentTemplate> 
    </telerik:RadWindow> 
Georgi Tunev
Telerik team
 answered on 18 Mar 2010
1 answer
291 views
I am using FilterTemplate containing dropdownlist and have 3 such template columns. When dropdownlist value is changed, filtering is applied. However, there are two issues when filtering is happening.
1. After the page is posted back, the selected value is not retained. The dropdownlist values are bound everytime on ItemCreated event.
2. Filtered results are not retained when filtering is fired from dropdownlists of all columns. 

I am using the example code from this link : http://www.telerik.com/help/aspnet-ajax/radgrid-filter-template.html

Do i need to retain selected values using ViewState or something? Also, what do i need to do to retain the previous filtered results?

Thanks.
Pavlina
Telerik team
 answered on 18 Mar 2010
2 answers
267 views
I have a ListView that has a label to display the start time of an event (bound to the database field).  After the page loads, I need to find all of those labels with JavaScript so that I can update the text to display the start time as the user's local time.

document.getElementById isn't finding the labels when they are inside the ListView, not even if I increment each label via C# when it is initialized so that there are no two labels the same. I can find a label that is outside of the ListView without any issue. What am I missing? How can I access elements within the ListView from the client side?
Rosen
Telerik team
 answered on 18 Mar 2010
4 answers
129 views
Hi,

We are using telerik combobox with autocomplete on some pages.
We are building some search screens in our application where we are expected to provide google suggest like functionality.
The autocomplete functionality in combobox is pretty close to what we need but has to work of a text box.
How can we achieve this?

We did some research and found the approach described in the link below, but we do not want to add anything outside of telerik.
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx

Thanks

Kartik


Barry Burton
Top achievements
Rank 1
 answered on 18 Mar 2010
1 answer
59 views
Hi, I was wondering if I am just missing a help document somewhere.  There hasn't been any mention of any new fullscreen-related bug fixes since our version (1.527), from last May.

I'm bringing an editor up on a simple fixed div, but the fullscreen function of the editor is flaking out when it's up on the div.  I'm purposefully vague because the modal code is an inherited possibly in-house jquery plugin.

It works fine on ff, the issues are in ie7 and 8.  

The error message is listed last, the specified line 425 (and subsequent error on line 426) are:

... 
},getClientBounds:function(){ 
var _63; 
var _64; 
switch(Sys.Browser.agent){ 
case Sys.Browser.InternetExplorer: 
_63=document.documentElement.clientWidth;    <-- 425 
_64=document.documentElement.clientHeight;  <--426 
if(_63==0&&_64==0){ 
... 

I interrogate those values in the OnClientCommandExecuting event and document.documentElement.clientWeight and Height they seem to be set to reasonable values before i get into the telerik code.

Is there anything obvious to try?



Message: Invalid argument.
Line: 425
Char: 1
Code: 0
URI: http://192.168.2.38/ScriptResource.axd?d=o4tGpkadoUHQouTOki8K9CBitpxmT3LD6IjkOl92c1lQi7d-Vk1A7vrjEwCZ4AxT0&t=37736b2c

Rumen
Telerik team
 answered on 18 Mar 2010
1 answer
101 views
Is there a way to initally render more than one page of a PageView control?  But not all of them.

the RadMultipage control has the ability to render all views, or only selected view.  I need to be able to pick and choose which view I want to initially render.

If the PageView control had the same functionality as the RadTree has with respect to the "Load On Demand" where it only loads the child nodes when you open that branch, but each subsequent click of that node, it does not perform a callback, that would be perfect.

Here is my scenario.
I have a tabstrip that has about 8 tabs.  3 of those 8 are related to a single record of data, and when you enter data into those fields, you can save that record.  The other 5 tabs are supporting data (grids, charts, images, etc...)  I want to render the first 3 pages so the user can navigate to those 3 pages quickly without having to perform a callback.  The supporting pages can easily be handled with a callback, because there is no saving of any data on those pages.

We had a developer who custom build a tab control that could handle all this, but we have out grown its functionality (due to inability to easily modify, and skin the control).  So we are using the RadTab control.

Yana
Telerik team
 answered on 18 Mar 2010
4 answers
253 views
Hey,

I need to be able to disable a parent node but still allow the expand functionality on that node.  Can anyone explain how I can do that.  Right now the expand doesn't work when I disable the node.

Thank you,


Steve.
Veronica
Telerik team
 answered on 18 Mar 2010
1 answer
122 views
Hi,

I am using trial version of telerik controls. I am using telerik text boxes, telerik Grid for Client-side Insert/Update/Delete and Rad tabstrip in my project . I am getting the following error at random times. Is this because I am using trial version or some other reason?

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Telerik.Web.UI 2009.'."

Thanks.
Sebastian
Telerik team
 answered on 18 Mar 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?