Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
Morning all,

I just follow the example ( http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx) using DialogOpener. I have added one ImageManagerDialog to dailogopener. I know that image manager does not offer thumbnail view. However is that possible to add GridBinaryImageColumn or GridImageColumn to the right side radgrid which only show filename and size?


 Cheers
Rachael
Fiko
Telerik team
 answered on 25 Dec 2009
3 answers
171 views
HI
 I have  telerik radcombo box in which i have checkbox as item template.
now i have bind the radcombobox with the datasource.

i set allowcustomttext=false.
now when the combox loads the items then by default the first item is selected. and checkbox for that item is not checked.
 i want to show the empty message and when user selects the checkbox then only the text appera in the combox.

also when i select the checkbox for corresponding item and i  save it to database and then retrieve from the database then how can i show the checked item.

please help me its urgent.
Genady Sergeev
Telerik team
 answered on 25 Dec 2009
3 answers
335 views
below is just part of the code but i have a radsplitter and if i change the height="23px" at telerik:radsplitter i won't see the window after i piinned it. if i take it out, it works fine. also the liveresize doesn't work. it doesn't automatically resize my window and so is full screen mode, and if i drag the bottom of it to expand my pane, it works ok not great. can you help me figure this out? this is what i want it to do.

Graph sliding pane title

data table

there should be only 2 lines break between graph sliding pane titleand datatable. if you mouse over graph, it expands and open the pane to show the graph and push down the datatable. but the height is not big enough. I can resize with right now but i want to default it to the size the graph will dynamically have.  if i change the height="23px" at telerik:radsplitter i won't see the window after i piinned it. if i take it out, it works fine.
please help. thanks








 <asp:Table ID="tbl_Report" runat="server" BorderColor="black" cellpadding="5" cellspacing="0" width="100%" HorizontalAlign="center" height="100%" BackColor="#ffffff">  
            <asp:TableRow> 
                <asp:TableCell ColumnSpan="2"><asp:Label ID="lb_Error" runat="server" Font-Bold="true" ForeColor="red" /></asp:TableCell> 
            </asp:TableRow>                                                        
            <asp:TableRow> 
                <asp:TableCell VerticalAlign="top" ColumnSpan="2" Width="100%" Height="100%" BackColor="white">  
                    <telerik:RadSplitter id="RadSplitter1" runat="server" CssClass="CustomCssClass1" Skin="Forest" Width="100%" height="23px" 
                       ResizeMode="EndPane" LiveResize="true" visible="false" FullScreenMode="true">  
                        <telerik:RadPane runat="server" id="RadPane1" Width="100%" Height="100%" > 
                            <telerik:RadSlidingZone runat="server" ID="RadSlidingZone_Graph" SlideDirection="Bottom">  
                                 <telerik:RadSlidingPane id="RadSlidingPane_Graph" title="Graph" runat="server" EnableResize="true">  
                                    <telerik:RadComboBox ID="ddlcharttype" Font-Size="12px" runat="server" Skin="Forest" AutoPostBack="true">                                                                                                  
                                        <Items> 
                                            <telerik:RadComboBoxItem Text="Select a chart type" Value="" /> 
                                            <telerik:RadComboBoxItem Text="Area" Value="Area" /> 
                                            <telerik:RadComboBoxItem Text="Bar" Value="Bar" /> 
                                            <telerik:RadComboBoxItem Text="Column" Value="Column" /> 
                                            <telerik:RadComboBoxItem Text="Line" Value="Line" /> 
                                        </Items> 
                                    </telerik:RadComboBox> <br />   
                                    <div id="printer"><asp:Literal ID="literal_adhoc_Graph" runat="server" /></div>  
                                 </telerik:RadSlidingPane> 
                            </telerik:RadSlidingZone>                                                
                        </telerik:RadPane> 
                    </telerik:RadSplitter>     
Svetlina Anati
Telerik team
 answered on 25 Dec 2009
1 answer
94 views
Hi,

I have encountered an issue when using RadAjaxManager and now that I have a fix I was thinking that others might be interested.

A lot of the stuff below is detail - the same scenario is probably applicable with most control combinations.

The environment is asp.net 2.0 + VS2008 + RadControls Q3 2008 (1125)
The scenario is as follows...

1) Page with RadAjaxManager, 2 RadSliders, RadMenu, RadGrid, asp Timer (all ajaxified via RadAjaxManager)
2) RadMenu command updates the visibility of the RadSliders (shows one hides the other) and Rebinds the grid to display a different range of data.
3) Timer fires every 5 minutes or in 20 seconds from first page display

so far so good...
Now the problem happens like this.

1) Open the page (page displays in one of two modes depending on value stored in database and reflected in Menu)
2) Click on Menu to change mode - RadSliders change visibility and RadGrid rebinds ok
3) Click on page link to go to another page
4) Click 'Back' button on browser to go back to the first page
5) First page displays the ORIGINAL MODE (ie the one before the change was made via the Menu) UNTIL the timer fires.
6) When the timer fires (an ajax request) the display goes back to what it should be (ie the new mode is shown in the visibility of the RadSliders and the data in the RadGrid)

The issue is that the page is being cached and the caching is not updated as a result of the ajax changes. The fix is to turn off page caching using the following courtesy of  A Thorough Examination of "Disabling the Back Button." By Akhilesh Reddy 

<%
  Response.Buffer = true;
  Response.ExpiresAbsolute = DateTime.Now - new TimeSpan(0, 0, 1);
  Response.Expires = 0;
  Response.CacheControl = "no-cache";
%>
Once that is done everything seems to work fine. The page goes back to the server when the Back button is clicked and the state is correct.

Cheers
Steve
Poo Preaw
Top achievements
Rank 1
 answered on 25 Dec 2009
2 answers
151 views
When using formdecorator, it seems to turn tooltips off for dropdown boxes and RadToolTip in Firefox and Chrome? RadToolTip works fine in IE, but not the dropdownbox tooltip.  If I comment out the formdecorator tag below, both tooltips show up fine in all 3 browsers.

Builtin Tooltips are working fine on the same page with RadNumericTextbox which is even more strange

Any ideas?



<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> 
<telerik:RadFormDecorator DecoratedControls="All" runat="server" Skin="Forest" /> 
     
 <telerik:RadToolTip ID="RadToolTip1" runat="server" Width="150" AutoCloseDelay="10000" TargetControlID="DropDownList1" Position="MiddleRight" OffsetY="0" OffsetX="10" ShowDelay="300"   Text="Required: Something something something." >   </telerik:RadToolTip> 
     <asp:DropDownList ID="DropDownList1" runat="server" CausesValidation="true"  Font-Size="7" Width="120"  ToolTip="Required: Something something something." > 
        <asp:ListItem Text="Match Degree" Value="-1"></asp:ListItem> 
        <asp:ListItem Text="Match" Value="0"></asp:ListItem> 
        <asp:ListItem Text="Minus" Value="1"></asp:ListItem> 
        <asp:ListItem Text="Plus" Value="2"></asp:ListItem> 
    </asp:DropDownList> 
    </div> 
    </form> 
</body> 
</html> 

Svetlina Anati
Telerik team
 answered on 25 Dec 2009
2 answers
514 views
I want to format data to currency  format on item template. You can see below how I have done it. The only problem is if the user enters 0, it doesn't show anything. Otherwise it correctly shows currency format. I want it to show $0 for zero values.

<telerik:GridTemplateColumn HeaderText="Total Cost" UniqueName="TotalCost" meta:resourcekey="GridTemplateColumnResource7">  
    <ItemTemplate><%# DataBinder.Eval(Container.DataItem, "TotalCost", "{0:$##,###.##}") %> 
        <asp:Label ID="lblTotalCost" runat="server" Text='<%# Eval("TotalCost") %>' Visible="False" meta:resourcekey="lblTotalCostResource1"></asp:Label>                                </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadNumericTextBox ID="txtTotalCost" runat="server" EmptyMessage="..." Skin="Office2007" ForeColor="DimGray" Text='<%# DataBinder.Eval(Container, "DataItem.TotalCost") %>' Type="Currency" Width="80px" Culture="English (United States)" ReadOnly="True" Enabled="false" LabelCssClass="radLabelCss_Office2007" MaxValue="999999999" MinValue="-999999999" meta:resourcekey="txtTotalCostResource1" > 
        </telerik:RadNumericTextBox> 
    </EditItemTemplate> 
    <ItemStyle HorizontalAlign="Right" /> 
</telerik:GridTemplateColumn> 

Please help.
Sana Khurram
Najah
Top achievements
Rank 1
 answered on 24 Dec 2009
5 answers
204 views
Hi There

It would be nice to have the option to just be able to adjust a "Today Date" offset separately to the timezone offset.

Currently the timezone offset changes the values in the Database in relation to what is put in the scheduler i.e.  02/09/2008 1:00pm in the scheduler is actually stored in the db as 02/09/2008 3:00am with a 10 hr UTC offset which is obviously incorrect data.

This is not very useful when using the events outside of the scheduler ie a listview of a summary of events or looking at the data in the database  as you have to convert each value back to the non offset time.  In our scenario if we could just set an offset for todays date then this counteract any need for the offset to be applied to the each appointment as it appears that the only difference for the clients using the scheduler from Aus to US is the "Todays Date" and perhaps thhe navigation with the current week switch over

Our set up is
Web Server US
DB Server US
Client AUS


Cheers Marcus
Peter
Telerik team
 answered on 24 Dec 2009
4 answers
361 views
Hi,
I uploaded my sample project to show that there's some problems when binding my generic list to the treeview. It's not showing anything even though the DataSource item count of the Treeview is 2 (more than 0).

Kindly check the project on this link: 

I'm using Q2 2009 .Net 3.5

Thanks,
Ogie
Neil Timmerman
Top achievements
Rank 2
 answered on 24 Dec 2009
2 answers
75 views
I need your help!

I have the Editor set to open in full mode when it loads through the OnClientLoad that is then handled with javascript.
This works fine but in Firefox and Chrome when ever the page is resized the editor no longer sits at the top of the page.
I want the Editor to always be at the top of the page at all times.

Does anyone know how to fixs this issue???
pmoney pmoney
Top achievements
Rank 1
 answered on 24 Dec 2009
3 answers
742 views
Hi,

How can i take full file path from upload control. ?
this return  RadUpload1.UploadedFiles[0].FileName
only file name

lakmal
Genady Sergeev
Telerik team
 answered on 24 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?