Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Hello I am trying to use a RadComboBox that has a RadTreeView inside of it for a filtering column on a RadGrid.  I am able to use the CustomFilteringColumn.cs example to use a dropdown and then modify it to use a RacomboBox just fine.  However, when I use the combo with the tree inside it I am unable to get the control to fire the combo_SelectedIndexChanged event until the control has lost focus, once the control has lost focus then it will perform the filter just fine.  I also am able to modify it so that I can fire a NodeClick event on the tree and the filter will perform just fine except that in this case I get a full postback, and I don't want that either.  So I was hoping there was a way to execute the FireCommandEvent without having a full postback and without having to lose focus.

Is there an example of this that might be helpful or if anyone has any idea on how to this it would be greatly appreciated.

Thank you

Aaron
Aaron
Top achievements
Rank 1
 answered on 06 Feb 2009
2 answers
139 views
I have a check box that when checked a RadTimePicker should get hidden .. what is the javascript function for that

Thank you,

Daniel
Telerik team
 answered on 06 Feb 2009
1 answer
116 views
Guys,

I am working with the eval version of the rotator and having found out how to remove the border I appear to be forced to add the default ccs to my project and set the control to not use embeeded skins (see code sample below).  However, having made these couple of changes the navigation buttons that used to be visible have been removed from the rendered HTML page in IE7.

<telerik:RadRotator ID="RadRotator1" runat="server" BorderStyle="None"   
        BorderColor="White" BorderWidth="0" DataSourceID="odsCustomerImages"   
        Height="80px" Width="855px" ItemWidth="90px" ItemHeight="90px"   
        RotatorType="ButtonsOver" onitemclick="RadRotator1_ItemClick" FrameDuration="1"   
        ScrollDirection="Left,Right" EnableEmbeddedSkins="False" > 
        <ItemTemplate> 
            <asp:ImageButton ID="imgGallery" runat="server"   
            Height="80px"   
            Width="80px"   
            ImageUrl='<%# Eval("imageName", "~/user/images/DS THUMB {0}") %>' 
            AlternateText='<%# Eval("imageID") %>' /> 
        </ItemTemplate> 
    </telerik:RadRotator> 

Does anyone have any thoughts as to what the issue might be.  I have added the the rotate folder to the project (I have done the same with the menu control and all seeems to be behaving as expected).

Many thanks,

Jason.
Fiko
Telerik team
 answered on 06 Feb 2009
1 answer
111 views
I use LoadOnDemand and the NodeExpand event on the server-side fires. When I move my application to my Test server, the event never gets fired. When you click on the plus sign to expand the node, there is a slight pause and then the "Loading..." message next to the node flashes very quickly. On the Test server, I re-installed the Telerik controls using the setup application and when I use the demo application that is part of the install, the NodeExpand does work there. It just doesn't work in my application. I compared my app's web.config file with the demo but couldn't see any difference, although I only compared items that began with the word "Telerik". Another thing that might be related to the problem is that the Font type for my RadMenu is not the same as the font on my development server. I don't set the font at all. I use the "Default" skin. The font on the Test server looks like Times New Roman whereas on my machine it looks more like Sans Serif. The following are some details about my setup:

* Test server is Windows 2003
* Telerik.Web.UI is installed in the website's bin directory on Test server and is version 2008.1.619.35

The treeview is set as follows:

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" Width="100%" Skin="Sunset" Font-Size="12px" OnClientNodePopulationFailed="TreeviewPopulateError" OnNodeExpand="RadTreeView1_NodeExpand" OnClientNodeClicking="TreeviewClick" OnClientDoubleClick="TreeviewDoubleClick" CheckBoxes="true" OnClientNodeChecked="TreeViewCheck" PersistLoadOnDemandNodes="false" EnableViewState="false" OnClientNodeExpanding="toggleHandler" OnClientNodeCollapsing="toggleHandler" OnClientNodePopulated="OnClientNodePopulated"> 

 

</telerik:RadTreeView> 

 


Thanks for your help
Johann
Polaris431
Top achievements
Rank 1
 answered on 06 Feb 2009
2 answers
124 views

A very simple one, for example:
<table>
 <tr>
    <td> this is a test<td>
 </tr>
<table>

Now, I like to apply "Default" skin to it so that it will look like a RadGrid to achieve some consistent looking. Is it possible or what's the best way to do it?

Thanks,

Gary

Gary
Top achievements
Rank 1
 answered on 06 Feb 2009
6 answers
304 views
Hi, I have an RadGrid into my page which contains a column named "Comment" :

 

<telerik:RadGrid ID="RadGridOrderLines" SkinId="MyRadGrid"

 

 

runat="server">

 

 

<MasterTableView Width="100%">

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderText="Comment" ItemStyle-HorizontalAlign="Left">

 

 

<HeaderTemplate>

 

 

Comment

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label runat="server" id="lblComment2"></asp:Label>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:TextBox runat="server" id="tbComment2" Text='' TextMode="MultiLine" Rows="4" Columns="20"></asp:TextBox>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

I use a skin named MyRadGrid which contains a several columns (TechnicalReference,...) : 

 

<

 

telerik:RadGrid SkinID="MyRadGrid" runat="server"

 

 

Skin="Default"

 

 

 

 

 

AlternatingItemStyle-BackColor="#EAF3F7"

 

 

EnableEmbeddedSkins="false"

 

 

datakeynames="OrderLineId" Width="98%"

 

 

AutoGenerateColumns="false">

 

 

 

 

 

<MasterTableView Width="100%">

 

 

<Columns>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="Reference" ItemStyle-HorizontalAlign="Left">

 

 

 

 

 

<HeaderTemplate>

 

 

TechnicalReference

 

 

 

 

 

</HeaderTemplate>

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:HiddenField runat="server" id="hidOrderLineId" Value=''></asp:HiddenField>

 

 

 

 

 

<asp:Label runat="server" id="lblReference" Text=''></asp:Label>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>
....

My problem is that when I display the page, I see the columns Comment and TechnicalReference. I don't understand why I don't see only the column of the Skin (TechnicalReference).  When, I test with the GridView control of Asp.net, it displays only the columns of the skin (TechnicalReference).  Why is it different ?

I use the RadGrid control into all my pages, and I really need that it have the same behaviour of the GridView. 

Do you have an idea to resolve my problem easily ?

Thank you in advance,

Suzi.

 

 

Dimo
Telerik team
 answered on 06 Feb 2009
2 answers
313 views
I'm using the Rad Grid's ExportToPDF functionality but I'm having trouble getting the column headers aligned properly.
I'm talking about the alignment of these headers in the saved PDF document. The are shifted to the right currently.

GRID:

<rad:RadGrid ID="activityLogListRadGrid" AllowPaging="True" AllowSorting="true" GridLines="Horizontal" 
    HorizontalAlign="Center" ShowFooter="true" ShowStatusBar="true" 
    EnableAJAX="True" EnableAJAXLoadingTemplate="True" LoadingTemplateTransparency="25" 
    Skin="Grid" SkinsPath="~/App_Themes/VertexDefault" 
            PageSize="18" AutoGenerateColumns="False" OnItemDataBound="activityLogListRadGrid_ItemDataBound" 
    OnSortCommand="activityLogListRadGrid_SortCommand" 
            OnNeedDataSource="activityLogListRadGrid_NeedDataSource" OnItemCommand="activityLogListRadGrid_ItemCommand" runat="server" > 
            <SortingSettings SortToolTip="Click to sort" /> 
                <ExportSettings IgnorePaging="true" OpenInNewWindow="true"> 
                            <Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous" 
            Keywords="None" PageWidth="1000" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" 
            PageTopMargin="1in" PageTitle="Activity Log Detail" 
            Subject="RadGrid Export" Title="Activity Log Detail" PaperSize="Letter" /> 
        </ExportSettings> 
        <PagerStyle AlwaysVisible="true" Height="25px" Mode="NumericPages" Position="Bottom" /> 
                        <MasterTableView DataKeyNames="CustomerID,CreateUserID,CreateDateTime" 
            TableLayout="Auto" AllowNaturalSort="false" Style="border: 0px solid #eaf2fd;" BorderColor="Black"> 
                            <SortExpressions> 
                                <rad:GridSortExpression FieldName="CreateDateTime" SortOrder="Ascending" /> 
                            </SortExpressions> 
                            <Columns> 
                                <rad:GridBoundColumn HeaderStyle-Width="200px" DataField="CreateDateTime" HeaderText="Activity Date" SortExpression="CreateDateTime" 
                                        UniqueName="CreateDateTime" DataFormatString="{0:MM/dd/yyyy}" ItemStyle-Wrap="False" /> 
                                <rad:GridHyperLinkColumn HeaderStyle-Width="200px" DataTextField="EventName" DataNavigateUrlFields="EventID" 
                                        DataNavigateUrlFormatString="~\Returns\ActivityLogDetail.aspx?EventID={0}" HeaderText="Event Name" SortExpression="EventName" UniqueName="EventName" /> 
                                <rad:GridBoundColumn HeaderStyle-Width="200px" DataField="LastNameFirstName" HeaderText="User" SortExpression="LastNameFirstName" 
                                        UniqueName="LastNameFirstName" ItemStyle-Wrap="False" /> 
                                <rad:GridHyperLinkColumn HeaderStyle-Width="215px" DataTextField="CustomerName" DataNavigateUrlFields="EventID" 
                                        DataNavigateUrlFormatString="~\Returns\ActivityLogDetail.aspx?EventID={0}" HeaderText="Customer" SortExpression="CustomerName" UniqueName="CustomerName" /> 
                            </Columns> 
                            <PagerTemplate> 
                <vtx:GridPager ID="gridPagerControl" runat="server" /> 
            </PagerTemplate> 
                        </MasterTableView> 
</rad:RadGrid> 

Button Click that triggers ExportToPDF:

protected void pdfExportButton_Click(object sender, EventArgs e) 
        { 
            log.Debug("pdfExportButton_Click"); 
 
            activityLogListRadGrid.ExportSettings.IgnorePaging = true; 
            activityLogListRadGrid.ExportSettings.OpenInNewWindow = true; 
 
            activityLogListRadGrid.MasterTableView.ExportToPdf(); 
        } 
 
 
 


Any advice on getting the column headers properly aligned would be much appreciated.
Julian
Top achievements
Rank 1
 answered on 06 Feb 2009
1 answer
81 views
Hello,

I'm using RadPanel.get_width() to set the width of elements contained within the panel. However, the get_width() function doesn't consistently return the same thing. Sometimes it will return a number and other times it will return a string. 

For example, if the width is 170 pixels then sometimes it will return '170' and other times it will return '170px'. Is this a bug or am I missing something?

Thanks,

Antony


Tsvetie
Telerik team
 answered on 06 Feb 2009
6 answers
247 views
Hi,
    I have implemented Load On Demand . But I want to expand the whole tree on click of a button . I am trying to use expandAllNodes() method, but it is not working . Can you tell me with an examaple how can I able to achive this ?

Regards
Manoj
-DJ-
Top achievements
Rank 1
 answered on 06 Feb 2009
2 answers
123 views
Hi, I need some help with Calendar control:

My objective is - at loading an aspx page (not postback) - to display one month of my choose, and not the current month that is displayed by default. I think that this is possible, but I can't find out how to do it.

Thanks
Romualdo Lodovici
Top achievements
Rank 2
 answered on 06 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?