Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
142 views
Hi

I entered few characters in the text field and then selected the text area and cut the selected text using the right click button of my mouse. When i change the focus of the mouse , the cut characters reaper on the text box.

I dont have this problem when i use the shortcut key Ctrl+x.

 Please help me with this problem.
Dimo
Telerik team
 answered on 09 Sep 2009
3 answers
113 views
Hello,

we need to open a modal window, but instead to have it centered, the windows should be positioned on the bottom of the window.
Some suggestions?

Thanks in advance

Fabrizio
Georgi Tunev
Telerik team
 answered on 09 Sep 2009
2 answers
118 views
Hi,

Is there a way to send a postback and do serverside code when the user expands the panel but no postback when the panel is collapsed. Now I use the event OnItemClick couse there are no OnExpand and OnCollapse but then there are allways a postback - no good.

On Expand I load stuff inside the panel but on collapse no such thing needs to be done.

/R
Raymond
Top achievements
Rank 1
 answered on 09 Sep 2009
11 answers
474 views
hi,

I am trying to change the text "Click here to sort" which appears when I hover over the title of the GridHyperLinkColumns in my radgrid. I want to keep the hover text, but change it to whatever I like, since my site is not in english. I accomplished something similar with the GridPagerItem to change the PageSizeLabel, but now I need to do the same for this.

For the GridPagerItem I am using the following code and it works, maybe what I need for the "Click here to sort" is something similar? :

protected void GridUltimosConteudos_ItemDataBound(object sender, GridItemEventArgs e)
{

    if (e.Item is GridPagerItem)
    {
        Label lblPageSize = (Label)e.Item.FindControl("ChangePageSizeLabel");
        lblPageSize.Text = "Itens por página:";
    }

}



Thanks!
Marta
Shinu
Top achievements
Rank 2
 answered on 09 Sep 2009
4 answers
82 views
hi,

I am facing a problem in exporting hierarchical grids to pdf: the generated doc doesn't include the data from the child grid.
Here is the scenario:
. 2 grids with "master-datails" relationship (<ParentTableRelation> set)
. expand the child grid, ok all data is there
. push the button that trigger the parentTable.MasterTableView.ExportToPdf() method, ok
. get the windows with the exported data in the right format, pagesize, etc.  but WITHOUT the expanded data from the child table.
What am I missing?
Thanks in advance for any help.
Flavio

Here is the code:
--- aspx----------------------------
<telerik:RadGrid ID="grwJobNTasks" runat="server"
  Width="100%"
  ShowStatusBar="true"
        AutoGenerateColumns="False"
        AllowSorting="True"
        AllowMultiRowSelection="False"
        AllowPaging="True"
  GridLines="None"
  meta:resourcekey="grwJobNTasksResource"
     EnableViewState="True"
  OnPdfExporting="grwJobNTasks_PdfExporting"
  OnDetailTableDataBind="grwJobNTasks_DetailTableDataBind"
  OnNeedDataSource="grwJobNTasks_NeedDataSource"
  SettingsChangedCallBack="CallBackFn"
        >
        <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
            <Pdf PageHeight="210mm" PageWidth="297mm" PageTitle="Job 'n Tasks" AllowPrinting="true" />
        </ExportSettings>    
        <MasterTableView Width="100%" DataKeyNames="JobId" AllowMultiColumnSorting="True"
   HierarchyLoadMode="ServerOnDemand" CommandItemDisplay="None">
   <DetailTables>
                <telerik:GridTableView DataKeyNames="JobTaskId" Name="JobTasks" AllowPaging="true" ShowFooter="true"
     runat="server" Caption="Job's tasks" Width="100%" CommandItemDisplay="None">
     <ParentTableRelation>
      <telerik:GridRelationFields DetailKeyField="OwnerId" MasterKeyField="JobId" />
     </ParentTableRelation>
     <Columns>
      <telerik:GridBoundColumn DataField="TTGCode" HeaderText="TTG Code" UniqueName="TTGCode" />
      <telerik:GridTemplateColumn UniqueName="SuccessTemplateColumn" HeaderText="Result">
       <ItemTemplate>
        <asp:Label runat="server" ID="SuccessColumn"  Text='<%# GetSuccessLabel(Eval("Success")) %>'/>
       </ItemTemplate>
      </telerik:GridTemplateColumn>
      <telerik:GridBoundColumn DataField="StepError" HeaderText="Step Error" UniqueName="StepError" />
      <telerik:GridBoundColumn DataField="ErrorDesc" HeaderText="Error Description" UniqueName="ErrorDesc" />
      <telerik:GridTemplateColumn UniqueName="StartingTimeTemplateColumn" HeaderText="Starting Time">
       <ItemTemplate>
        <asp:Label runat="server" ID="StartingTimeColumn"  Text='<%# GetDateTimeLabel(Eval("StartingTime")) %>'/>
       </ItemTemplate>
      </telerik:GridTemplateColumn>
     </Columns>
    </telerik:GridTableView>
   </DetailTables>
   <Columns>
    <telerik:GridTemplateColumn UniqueName="JobTypeTemplateColumn" HeaderText="Job Type">
     <ItemTemplate>
      <asp:Label runat="server" ID="JobTypeColumn" Text='<%# JobTypes.Value((int)Eval("JobType")) %>'/>
     </ItemTemplate>
    </telerik:GridTemplateColumn>
    <telerik:GridBoundColumn DataField="StartDateTime" HeaderText="Schedule Time" UniqueName="StartDateTime"
     DataType="System.DateTime" DataFormatString="{0:G}" HtmlEncode="False" />
    <telerik:GridTemplateColumn UniqueName="StatusIdTemplateColumn" HeaderText="Result">
     <ItemTemplate>
      <asp:Label runat="server" ID="StatusIdColumn"  Text='<%# JobStatuses.Value((int)Eval("StatusId")) %>'/>
     </ItemTemplate>
    </telerik:GridTemplateColumn>
    <telerik:GridTemplateColumn UniqueName="InsertByTemplateColumn" HeaderText="Insert By">
     <ItemTemplate>
      <asp:Label runat="server" ID="InsertByColumn"  Text='<%# GetUserDesc(Eval("InsertBy")) %>'/>
     </ItemTemplate>
    </telerik:GridTemplateColumn>
    <telerik:GridBoundColumn DataField="InsertDate" HeaderText="Insert Date" UniqueName="InsertDate"
     DataType="System.DateTime" DataFormatString="{0:G}" HtmlEncode="False" />
   </Columns>
   <NoRecordsTemplate>
    <%=(string)this.GetLocalResourceObject("NoData")%>
   </NoRecordsTemplate>
  </MasterTableView>
 </telerik:RadGrid>
--- c# ------------------------------

 protected void grwJobNTasks_Print(Object sender, EventArgs e)
 {

  grwJobNTasks.MasterTableView.ExportToPdf();
 } 

flavio raimondi
Top achievements
Rank 1
 answered on 09 Sep 2009
1 answer
89 views
Hello,

I just discovered that when zoom is activated, I am loosing tooltips on chart areas whatever is the chart type, is it normal ?
Is there a way to keep tooltips with zoom enabled ?

Thanks

CS
Vladimir Milev
Telerik team
 answered on 09 Sep 2009
1 answer
90 views
Hi,

My initial requirement goes like this:
    1. I want to create a customized horizontal slider of height 30px.
    2. Want to create this as a server control
    3. Need to display a text in the Selected Region
   
I have created the above slider using customized skin with height 30px and its working fine.
But if i try to create it as a custom control, i face the following issue:
  The DragHandle is displayed as link with text "Drag", and is displayed below the track. (This works fine if i try without using a server control.). Need some help in this regard.

And how can i display some text in the SelectedRegion?

Code Snippet - Custom Control:
using System; 
using System.ComponentModel; 
using System.Globalization; 
using System.IO; 
using System.Web; 
using System.Web.UI; 
using Telerik.Web.UI; 
 
namespace MyCustomSlider 
    [ToolboxData("<{0}:WebPlatformSlider runat=server></{0}:WebPlatformSlider>")] 
    public class CustomSlider : RadSlider 
    { 
 
        protected override void OnPreRender(EventArgs e) 
        { 
            base.OnPreRender(e); 
        } 
 
        protected override string CssClassFormatString 
        { 
            get 
            { 
                return "RadSlider RadSlider_{0}"
            } 
        } 
 
        [Browsable(false)] 
        public override bool EnableEmbeddedSkins 
        { 
            get 
            { 
                return false
            } 
        } 
 
        [Browsable(false)] 
        public override bool EnableEmbeddedBaseStylesheet 
        { 
            get 
            { 
                return false
            } 
        } 
 
        [Browsable(true)] 
        public override string Skin 
        { 
            get 
            { 
                return "Default"
            } 
        } 
 
        [Browsable(false)] 
        public new bool Modal 
        { 
            get 
            { 
                return true
            } 
        } 
 
    } 
 

Code Snippet - .aspx page

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Sample.aspx.cs" Inherits="Telerik_SampleSlider.SampleSlider" Theme="Default" %> 
<%@ Register TagPrefix="tel" Namespace="MyCustomSlider" Assembly="MyCustomSlider" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!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></title
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
    <div> 
    <br /> 
    <br /> 
   <tel:CustomSlider ID="RadSlider1" runat="server" ShowDecreaseHandle="false" ShowIncreaseHandle="false"
   </tel:CustomSlider> 
       </div> 
    </form> 
</body> 
</html> 
 



Slider.Default.css

.RadSlider_Default div.rslHorizontal 
    height:21px
 
.RadSlider_Default div.rslHorizontal a.rslHandle 
    width:27px;  
    height:21px
    line-height:21px
 
.RadSlider_Default div.rslHorizontal a.rslDraghandle 
    width:23px;  
    height:30px
    line-height:30px
    margin-top:-1px
    background-image:url('Slider/dragHandle.JPG'); 
    background-position:0 1px
 
.RadSlider_Default div.rslHorizontal a.rslDraghandle:hover, 
.RadSlider_Default div.rslHorizontal a.rslDraghandle:focus, 
.RadSlider_Default div.rslHorizontal a.rslDraghandle:active 
    background-position:0 1px
     
.RadSlider_Default div.rslHorizontal div.rslTrack 
    left27px
    top: 0; 
    height19px
    line-height19px
    margin-top0px
    background-color#FFFFFF
    border-topsolid 1px #2c7b90
    border-bottomsolid 1px #024e6e
 
.RadSlider_Default div.rslHorizontal div.rslSelectedregion 
    height19px
    line-height19px
    background-color#CEEBFF

Regards,
Rajiv
Tsvetie
Telerik team
 answered on 09 Sep 2009
3 answers
71 views
I have added a RadTreeView to my web form.

Nothing client side seems to be working.

This includes expand/collapse, hover, selecting, editing, etc.

I am using verison 2009.2.701.35
Paul Knopf
Top achievements
Rank 1
 answered on 09 Sep 2009
3 answers
204 views
I have some sample code:
<telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="True" TransferToID="RadListBox2">  
    <Items> 
        <telerik:RadListBoxItem Text="Item 1" /> 
        <telerik:RadListBoxItem Text="Item 2" /> 
        <telerik:RadListBoxItem Text="Item 3" /> 
        <telerik:RadListBoxItem Text="Item 4" /> 
        <telerik:RadListBoxItem Text="Item 5" /> 
   </Items> 
</telerik:RadListBox> 
<telerik:RadListBox ID="RadListBox2" runat="server">  
    <Items> 
        <telerik:RadListBoxItem Text="Disabled Item" Enabled="false" /> 
   </Items> 
</telerik:RadListBox> 
 
When it first loads I can't select the disabled item to transfer.
I transfer an item from RadListBox1 to RadListBox2 then use transfer arrows to move that item back.
The disabled item is now selected and I can use arrows to move the disabled item to RadListBox1..... if that makes sense.
Genady Sergeev
Telerik team
 answered on 09 Sep 2009
3 answers
180 views
I have a grid setup for inline editing. When I click the edit button, all field displayed in the grid go to edit mode. I need to be able to disable editing on certain column. For example, I have a shipping form that has a Tracking Number column. When they click the edit button, all columns go int edit mode. I would like it if only the Tracking Number column allows input of a value. 
Princy
Top achievements
Rank 2
 answered on 09 Sep 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?