Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
193 views
Hi,

I have a problem with my chart type Line.
When i put my legend position to right, its the same than "Top right" and i cant manage to get it to Right.

How can i resolve that?

I have telerik skin, chart type : line.

Ves
Telerik team
 answered on 24 Jun 2009
1 answer
170 views
Is there a way to fully disable Drag and Drop of files from the Grid portion of the FileExplorer control?
Lini
Telerik team
 answered on 24 Jun 2009
1 answer
523 views
I am currently working on a grid that is using the virtual scrolling, and I need to be able to determine, on post back, what the sort column and direction are. What properties of the radgrid can I use to get the current sort column and direction? I need to be able to access these values on post backs other than ones that fire the: RadGrid1_SortCommand event.

Something like:
if(IsPostBack)
{
string sSortColumn = RadGrid1.SortColumnName;
}

how do you return the column name?
Princy
Top achievements
Rank 2
 answered on 24 Jun 2009
1 answer
59 views
I got a problem with the design which is also viewable in the demos. Because of that i tested it to see it by myself with own values.
Here a picture which explains the problem by itself. Picture

Here is the Code: Tell me if i made something wrong
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadChart._Default" %> 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" 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"> 
    <asp:ScriptManager ID="ScriptManager" runat="server" /> 
    <div> 
        <telerik:RadChart runat="server" SeriesOrientation="Horizontal" Width="370" ID="RadChart1" 
            Skin="LightBlue" IntelligentLabelsEnabled="true" > 
            <Series> 
                <telerik:ChartSeries Name="series 1" Type="Bar"> 
                    <Appearance> 
                        <EmptyValue Line-Width="2" Line-Color="black" /> 
                    </Appearance> 
                    <Items> 
                        <telerik:ChartSeriesItem YValue="20" XValue="0" /> 
                        <telerik:ChartSeriesItem YValue="40" XValue="1" Empty="True"/> 
                        <telerik:ChartSeriesItem YValue="60" XValue="2" /> 
                        <telerik:ChartSeriesItem YValue="80" XValue="3" /> 
                        <telerik:ChartSeriesItem YValue="100" XValue="4" /> 
                        <telerik:ChartSeriesItem YValue="120" XValue="5" /> 
                        <telerik:ChartSeriesItem YValue="140" XValue="6" Empty="True" /> 
                        <telerik:ChartSeriesItem YValue="160" XValue="7" /> 
                    </Items> 
                </telerik:ChartSeries> 
            </Series> 
            <PlotArea> 
                <XAxis AutoScale="true" MaxValue="8" Step="1"> 
                </XAxis> 
            </PlotArea> 
            <ChartTitle> 
                <TextBlock Text="Empty Values"> 
                </TextBlock> 
            </ChartTitle> 
        </telerik:RadChart> 
    </div> 
    </form> 
</body> 
</html> 
 

regards David





Ves
Telerik team
 answered on 24 Jun 2009
1 answer
214 views
Hi.  I would like to make the select file textbox wider.  I can't seem to figure out how to accomplish this.

Any help is greatly appreciated.

Thank you,
Nick
Shinu
Top achievements
Rank 2
 answered on 24 Jun 2009
1 answer
75 views
Hi, I have a strange behaviour in a scrolled radgrid, using server-side selection.

Markup:
<telerik:RadGrid ID="rgCT" runat="server" Width="345" OnNeedDataSource="rgCT_NeedDataSource" 
                             AutoGenerateColumns="false" EnableAjaxSkinRendering="true" AllowMultiRowSelection="true"> 
                <PagerStyle Mode="NextPrevAndNumeric" /> 
                <SelectedItemStyle BackColor="Gray" ForeColor="White" /> 
                <EditItemStyle BackColor="#F7BD02" ForeColor="Black" /> 
                <MasterTableView TableLayout="Fixed" CommandItemDisplay="None" DataKeyNames="CT_ID"> 
                    <Columns> 
                        <telerik:GridTemplateColumn UniqueName="Selection" HeaderStyle-Width="10%"> 
                            <ItemTemplate> 
                                <asp:CheckBox ID="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" 
                                    runat="server"></asp:CheckBox> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn UniqueName="CT_ID" DataField="CT_ID" Visible="false" /> 
                        <telerik:GridBoundColumn UniqueName="CT_NAME" DataField="CT_NAME" HeaderText="CT" HeaderStyle-Width="89%"/> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" 
                               ScrollHeight="200px"  /> 
                </ClientSettings> 
            </telerik:RadGrid> 

Code-behind:
        protected void ToggleRowSelection(object sender, EventArgs e) 
        { 
            ((sender as CheckBox).Parent.Parent as GridItem).Selected = (sender as CheckBox).Checked; 
        } 

When I touch the vertical scrollbar (even if I don't really "scroll") the selection get cleared.
I see this in the onclick of a button, checking the SelectedIndexes.Count property of the Grid.
When I don't touch the scrollbar all selections are preserved, when I touch it the SelectedIndexes.Count is 0.

Any clue?

Thanks in advance for your help.






Shinu
Top achievements
Rank 2
 answered on 24 Jun 2009
4 answers
165 views
hi 
when i use EnableClientKeyValues="true" in radgrid , i give a error with this content:
this property is not member of radgrid in clientsettings
should set something in web.config???????? or any thing please help me

i use radgrid 2008 and mayradgrid has not this property

very thanks
ali
Top achievements
Rank 1
 answered on 24 Jun 2009
4 answers
100 views
I have figured out how to hide the filter textbox for a column by doing the following:

If TypeOf e.Item Is GridFilteringItem Then 
 
            Dim filteringItem As GridFilteringItem = CType(e.Item, GridFilteringItem) 
            'set dimensions for the filter textbox 
            Dim box As TextBox = CType(filteringItem("CheckBoxTemplateColumn").Controls(0), TextBox) 
            box.Visible = False 

But...

1. how do I hide the filter icon that is next to each text box?

2. how can I add my own custom text in place of it if I want to?

3. how can I hide the filter options I do not want? for instance on a numeric column named "points" I only want "GreaterThan" and GreaterThanEqualTo".

Thanks!
Ramesh
Top achievements
Rank 1
 answered on 24 Jun 2009
2 answers
179 views
Hi,

I create a web server control which contains a radGrid and radAjaxManager, in the same time I add some client capabilities to this web server control reference ASP.NET AJAX tutorials: Adding Client Capabilities to a Web Server Control
I add two client properties:
protected virtual IEnumerable<ScriptDescriptor> GetScriptDescriptors() 
        { 
            ScriptControlDescriptor descriptor = new ScriptControlDescriptor("Unigestion.Web.UI.HTMLGrid", this.ClientID); 
            descriptor.AddProperty("gridClientID", this._radGrid.ClientID); 
            descriptor.AddProperty("ajaxManagerClientID", this._radAjaxManager.ClientID); 
 
            return new ScriptDescriptor[] { descriptor }; 
        } 
 

And in the control's client script, I will get RadGrid and RadAjaxManager object:
Unigestion.Web.UI.HTMLGrid.prototype = { 
 
    initialize: function() { 
        this.$grid = $find(this.gridClientID); 
        this.$ajax = $find(this.ajaxManagerClientID); 
    } 
} 

But when open this page, the client object's $grid and $ajax is null, I checked the page's source find that my control's descriptor js codes is before the radGrid and radAjaxManager:
<script type="text/javascript"> 
//<![CDATA[ 
Sys.Application.initialize(); 
Sys.Application.add_init(function() { 
    $create(Unigestion.Web.UI.HTMLGrid, {"ajaxManagerClientID":"AjaxManager","gridClientID":"innergrid"}, null, null, $get("radGrid")); 
}); 
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[{InitControlID : "AjaxManager",UpdatedControls : [{ControlID:"innergrid",PanelID:""}]},{InitControlID : "AjaxManager",UpdatedControls : [{ControlID:"gridmenu",PanelID:""}]},{InitControlID : "innergrid",UpdatedControls : [{ControlID:"innergrid",PanelID:""}]}],"clientEvents":{OnRequestStart:"OnRequestStart",OnResponseEnd:"OnResponseEnd"},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"AjaxManager","updatePanelsRenderMode":0}, null, null, $get("AjaxManager")); 
}); 
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadGrid, {"ClientID":"innergrid","ClientSettings":{"AllowAutoScrollOnDragDrop":true,"AllowColumnsReorder":true,"ColumnsReorderMethod":1,"ShouldCreateRows":true,"ReorderColumnsOnClient":true,"DataBinding":{},"KeyMappings":{"ExitEditInsertModeKey":27,"UpdateInsertItemKey":13},"Selecting":{"AllowRowSelect":true,"EnableDragToSelectRows":true},"Scrolling":{"AllowScroll":true,"SaveScrollPosition":true,"ScrollHeight":"300px","UseStaticHeaders":true},"Resizing":{"AllowColumnResize":true,"ClipCellContentOnResize":true,"EnableRealTimeResize":true,"ResizeGridOnColumnResize":true},"ClientMessages":{"PagerTooltipFormatString":"Page \u003cstrong\u003e{0}\u003c/strong\u003e of \u003cstrong\u003e{1}\u003c/strong\u003e"},"KeyboardNavigationSettings":{"AllowActiveRowCycle":false,"FocusKey":89}},"Skin":"Unigestion","UniqueID":"innergrid","_activeRowIndex":"","_controlToFocus":"","_currentPageIndex":0,"_editIndexes":"[]","_embeddedSkin":false,"_gridTableViewsData":"[{\"ClientID\":\"innergrid_ctl00\",\"UniqueID\":\"innergrid$ctl00\",\"PageSize\":10,\"PageCount\":1,\"EditMode\":\"EditForms\",\"CurrentPageIndex\":0,\"VirtualItemCount\":0,\"AllowMultiColumnSorting\":false,\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_dataBindTemplates\":false,\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"rgSelectedRow\",\"_columnsData\":[{\"UniqueName\":\"515156\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"FilteringColumn\",\"DataFormatString\":\"{0:#,##0.00}\",\"Display\":true},{\"UniqueName\":\"515154\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"FilteringColumn\",\"DataFormatString\":\"{0:#,##0.00}\",\"Display\":true},{\"UniqueName\":\"515153\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"ColumnType\":\"FilteringColumn\",\"DataFormatString\":\"{0:#,##0.00}\",\"Display\":true}]}]","_groupingSettings":{"GroupContinuesFormatString":" Group continues on the next page.","GroupContinuedFormatString":"... group continued from the previous page. ","GroupSplitDisplayFormat":"Showing {0} of {1} items.","GroupSplitFormat":" ({0})","GroupByFieldsSeparator":"; ","CaseSensitive":false,"ExpandTooltip":"Expand group","CollapseTooltip":"Collapse group","UnGroupTooltip":"Drag out of the bar to ungroup","UnGroupButtonTooltip":"Click here to ungroup","ShowUnGroupButton":false,"ViewState":{}},"_masterClientID":"innergrid_ctl00","allowMultiRowSelection":true,"clientStateFieldID":"innergrid_ClientState"}, {"columnSwapped":OnColumnSwapped,"groupCollapsed":OnGroupCollapsed,"groupExpanded":OnGroupExpanded,"rowContextMenu":OnRowContextMenu}, null, $get("innergrid")); 
}); 
//]]> 
</script> 

How to change these descriptors order?

Thanks,
LP


Liu Peng
Top achievements
Rank 1
 answered on 24 Jun 2009
12 answers
779 views

What is the best way to ensure that there is no default selection in my combo box? I can clear it client side with:

            var combo = $find("<%= RadComboBox1.ClientID %>");  
            combo.clearSelection(); 

but I'd prefer to be able to clear it server side or even better just tell it not to select anything by default in the first place. I've tried the server side .ClearSelection() but I can't seem to get it to work. No matter where I call it (onload, after databind, etc) the first item in the list is still selected.
J
Top achievements
Rank 1
 answered on 24 Jun 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?