Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
278 views

 Hi,

 I am creating a tab strip dynamically. I have some 5-6 tabs at the rootlevel. In my last tab i am creating a tab template which will have normal HTML controls for example a Logout link and someother links like that. My requirement is that the contents of my last tab should be always at the right most corner of the screen. Please refer the attached image of expected output. It should be like that on screen resize also, i mean in every situation they should be at the right most corner.

Currently i am doing it by calculating its offsetLeft and setting the paddingleft style property for the last tab dynamically on page load and on window resize event. Following is my code for that

    paddingLeft = tabStrip.get_element().offsetWidth - lastTab.get_element().offsetLeft - 80; // 80 is the width of the logout link

 

    lastTab.get_element().style.paddingLeft = paddingLeft;

But, it seems to break sometimes.

Please, suggest some more elegant way of doing it.

Thanx in advance.
Mohammad.

Yana
Telerik team
 answered on 18 Mar 2010
4 answers
202 views
Hi,

I have a GridAttachmentColumn on a RadGrid. How can I bind a source to the Attachement column from the codebehind and not using DataSourceID. I tried gettng the control by handling Item Data bound even but was not able to get it.

Thanks,
Sid
Siddhartha Savant
Top achievements
Rank 1
 answered on 18 Mar 2010
4 answers
144 views
Hi Folks,

I dynamically build RadTabs for user search results. However, I want to be able to let the user close a tab by just clicking on an 'X' icon. Is this possible? Currently the user can close tabs by clicking on a button in a toolbar which closes the selected tab, but this is not ideal. This is done with the following code:

RadTab selectedTab = this.rtsResultSet.SelectedTab; 
this.rtsResultSet.Tabs.Remove(selectedTab); 
 
int tabCount = this.rtsResultSet.Tabs.Count; 
this.rtsResultSet.SelectedIndex = (tabCount - 1); 


I also need the removing of a tab to trigger a server side event.

Cheers,
Ian
Yana
Telerik team
 answered on 18 Mar 2010
1 answer
334 views
I have a Treeview inside a RAD Combo. The user selects a node and hits the submit button. I am doing a client-side scrolling using the following code:

root.get_nodes().getNode(j).select();

root.get_nodes().getNode(j).scrollIntoView();

Thios works fine. However, if the selected node is down the scroll area (about 10 items are visible at a time), the node is selected but the cursor does not scroll directly down to the selected node.

Thanks!

Ramjee

Veronica
Telerik team
 answered on 18 Mar 2010
1 answer
86 views
Hello ,
I have a grid that consists  of 2 text columns and 1 datetime column
the problem is one of the text columns can't be filtered although the other can be filtered
and the datetime column also cant be filtered

Thanks alot
Pavlina
Telerik team
 answered on 18 Mar 2010
2 answers
164 views
Howdy at Telerik

I have a web project that generates a strange error when run in ' compilationDebug="false" '

There is no error when ' compilationDebug="true" '.

The page that generates the error consists of Five 'Ajax Collapsiable Panels holding five RadGrids' when i make a selection in a treeview outside the panels and press a button the panels are either shown and radgrid(s) rebinded or the panels are collapsed.

I have a RadScriptManager together with a RadAjaxManager on the Masterpage and a RadAjaxManagerProxy on the inherited Page.

When compilationDebug="false" i get the error shown on the image i have attached to this thread.

Hope you can help me with this rather strange error, or maybe explain why this only happens when debugging is disabled. 

Sincerly Jan.
Jan Pfeffer
Top achievements
Rank 1
 answered on 18 Mar 2010
4 answers
281 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
77 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
222 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
283 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
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?