Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
Hi,

I am using Telerik Rad File Explorer of new version.
It is cool.

I have few queries:-

1. I am using customized Working Progress Image.So I don't want to show the inbuilt working Image of Rad File Explorer for both Treeview and Gridview.
2. I  want to show an customized alert message that "You cannot delete this Folder" instead of the inbuilt confirmation message while selecting Root Node Folder(Virtual Path for Delete) and clicking the delete button/option.

Can you please give me suggestions in solving these?

Thanks,
Naveen.
Dobromir
Telerik team
 answered on 14 Apr 2011
1 answer
202 views
I have the following definition for my RadGrid:

<telerik:RadGrid ID="gvForecast" runat="server" Width="100%" Height="425px"
    AutoGenerateEditColumn="false" 
    AutoGenerateColumns="false" 
    GridLines="None" Skin="Office2007" ShowFooter="True" CellSpacing="0"
    OnCancelCommand="gvForecast_CancelCommand" 
    OnItemDataBound="gvForecast_ItemDataBound" 
    OnItemCreated="gvForecast_ItemCreated" 
    OnItemCommand="gvForecast_ItemCommand"
    OnColumnCreated="gvForecast_ColumnCreated" 
    AlternatingItemStyle-BackColor="#E2EDFE" >
As you can see, I have the auto generated edit column property set to false.  Regardless, the Edit column continues to appear as the far right hand column in my grid. 

Please don't tell me to hide it in PreRender....while this does hide the column, the header columns and remaining grid items are out of alignment.

For what it is worth, I can create my own Edit column <telerik:GridEditCommandColumn UniqueName="colEdit" Display="true"  without any problems, it's just that the auto generated column continues to remain at the far right side of the grid.   When I do this, both columns of Edit links are functional. 

Any help would be appreciated.  I am using the most current release of the toolkit.

Edit:  I attached a .jpg screen shot showing the stubborn Edit column.
Tsvetina
Telerik team
 answered on 14 Apr 2011
1 answer
591 views

I have been able to programmatically apply formatting to both the XAxis and YAxis (although not successfully for every chart), however, I am unable to figure out how to format the series labels.
For example, I have used the following, which has zero effect upon the series labels - regardless of what is provided in the DefaultLabelValue parameter:

<telerik:ChartSeries DataYColumn="TotalCost" Type="Line" Name="TotalCost" DataLabelsColumn="TotalCost" DefaultLabelValue="#Y{C}">

Nor do any of my codebehind (located within the ItemDataBound event) attempts:

RadChart_ProjectTrends_Costs.PlotArea.Chart.Series[0].DefaultLabelValue

the .Appearance.CustomFormat parameter applies to Style.Axis, and not Chart.Series

Any advice on how to apply *any* formatting to databound values in RadChart would be greatly, greatly appreciated.

Evgenia
Telerik team
 answered on 14 Apr 2011
4 answers
387 views
I've got an editable RadGrid with several text based columns. I don't always have data for these columns in my data set. When there is no data for the columns the bottom horizontal gridline running across the row for the column is interupted (blank) for the columns with no data.

This seems to be a problem only if the grid is editable.

In my application I use GridTemplateColumns with an asp:Label control to display the text. If the string bound to the label control is null, empty or blank space string (" "), the row gridline for the column is interupted.

I found the same grid line behavior when I created a small test application and had a GridBoundColumn bound to a DataTable where the column was a blank space string (" ").

--Mark
Mira
Telerik team
 answered on 14 Apr 2011
1 answer
62 views
Hello,

I want to use the tooltip manager on the dasgboard to maintain the consistency withing grids and charts tooltip.

For chart tooltip works fine but want to use the tooltip manager. Can you please suggest me how it will be possible to use it ?

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Skin="Telerik"
    EnableShadow="true" Animation="Resize" HideEvent="ManualClose" Height="70" Width="75"
    Position="TopCenter" ToolTipZoneID="rc_CSMD_Average_Response_Time">
</telerik:RadToolTipManager>
Ves
Telerik team
 answered on 14 Apr 2011
1 answer
91 views
I am creating dynamic interfaces based on product selection in a Web App. Some interfaces may contain up to 40+ ComboBox's. I created a sample with the RadComboBox and it took 3 to 4 seconds to select an item from the combobox.

Currently I am recreating the controls on postback. Originally i wanted to store them in a collection and re-call from there, but i get a pre-render issue.
Dimitar Terziev
Telerik team
 answered on 14 Apr 2011
3 answers
167 views
I prefer ASP.NET MVC, particularly with Razor, to WebForms. However, if I'm going to attempt to leverage the features of Telerik grids for things like exporting, etc, it appears the MVC grid lags far behind the AJAX grid in terms of functionality.

Case in point: the custom code and reliance on an open source third party project for exporting to ONLY Excel for this MVC grid sample: http://www.telerik.com/support/kb/aspnet-mvc/grid/export-to-excel.aspx vs. the many, built-in export options of the AJAX grid: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx

There is also the huge disparity of control availability b/n MVC and AJAX.

In this instance, I don't know why exporting features would have such a disparity, or why the Excel support in the AJAX can't be used in the MVC grid but it looks like if we really want to take advantage of Telerik web client controls, we're better served by using the AJAX platform rather than the MVC platform, which lags far behind.

Am I missing something, or am I correct in concluding the features of the MVC toolset lag way behind the AJAX toolset? This seems strange to me, since I've found it far easier to extend MVC with extension components and helpers than extending WebForms.

Thanks for any comments.
Radoslav
Telerik team
 answered on 14 Apr 2011
2 answers
364 views
Hi,

I'm trying a PanelBar with four panel items, two static (always expanded) and two expandable/collapsable.
Is it possible to hide the expand/collapse arrow on a specific panel item? (I would hide the arrow on the two panel items that are always expanded).

Regards,
John.
john
Top achievements
Rank 1
 answered on 14 Apr 2011
0 answers
94 views
Hello,

I'm facing the following problem. I'm trying to build a Composite Control that uses Telerik control as child control, I try to create a new Property for this control that can only be Val1, Val2 or Val3.

I've created a enum to list all property values:
public enum MyEnum{Val1,Val2,Val3}

Then I've created a Property in my composite control whose type is MyEnum like this:
public MyEnum? MyControlAttribute
{
    get { return (MyEnum?)ViewState["MyControlAttribute"]; }
    set { ViewState["MyControlAttribute"] = value; }
}

When I build my library and try to use the composite control, Intellisense don't work as needed. I would like to have Intellisense propose Val1, Val2 or Val3 for the attribute. Is that possible?
<ns:MyCompositeControl ID="ccid" runat="server" MyControlAttribute="...." />
I suppose I missed an attribute on the Property MyControlAttribute, but I don't know which one.

Any help would be appreciated.

Thanks.

Pascal
Pascal
Top achievements
Rank 1
 asked on 14 Apr 2011
1 answer
135 views

When I introduce a RadAjaxManager (which I now need for other reasons) it breaks my Sorting and Paging?  Any advice?

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Grid.ascx.vb" Inherits="WebDBMS.Grid" %>
  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<telerik:RadScriptManager ID="ScriptManager" runat="server" />
  
<telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">
   <script type="text/javascript">
       var allowMenu = "<%=AllowMenu%>";
  
       function RowContextMenu(sender, eventArgs) {
           if (allowMenu == "True" && __ual == "99") {
               var menu = $find("<%=RadMenu1.ClientID %>");
               var evt = eventArgs.get_domEvent();
  
               if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
                   return;
               }
  
               var index = eventArgs.get_itemIndexHierarchical();
               document.getElementById("radGridClickedRowIndex").value = index;
  
               sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);
  
               menu.show(evt);
  
               evt.cancelBubble = true;
               evt.returnValue = false;
  
               if (evt.stopPropagation) {
                   evt.stopPropagation();
                   evt.preventDefault();
               }
           }
       }
         
       function RowDblClick(sender, args) {
           var grid = sender;
           var MasterTable = grid.get_masterTableView();
           var row = MasterTable.get_dataItems()[args.get_itemIndexHierarchical()];
           var cell = MasterTable.getCellByColumnUniqueName(row, "ID");
           if (cell != null) {
               var value = cell.innerHTML;
  
               if (__name != null) {
                   var url = "../Forms/getEditForm.aspx?key=" + __name + "&id=" + value;
                   winopen(url, null, "toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1");
               }
           }
       }
  
       function OpenClick() {
           var grid = $find("<%=QueryRadGrid.ClientID %>");
           var MasterTable = grid.get_masterTableView();
           var row = MasterTable.get_selectedItems()[0];
           if (row != null) {
               var cell = MasterTable.getCellByColumnUniqueName(row, "ID");
               var value = cell.innerHTML;
               var url = "./Forms/getEditForm.aspx?key=" + __name + "&id=" + value;
               winopen(url, null, "toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1");
           }
       }
       function RepaintGrid() {
           var grid = $find("<%= QueryRadGrid.ClientID %>")
           grid.repaint();
       }
  
       function MassChange(sender, args) { // Customer Corrections Only
           var grid = $find("<%=QueryRadGrid.ClientID %>");
           var MasterTable = grid.get_masterTableView();
           var items = MasterTable.get_selectedItems();
           var itemIds = '';
           for (var i = 0; i < items.length; i++) {
               var row = items[i];
               var cell = MasterTable.getCellByColumnUniqueName(row, "ID");
               var value = cell.innerHTML;
               if (itemIds != '') itemIds += ',';
               itemIds += value;
           }
           if (itemIds != '') {
               if (confirm("Perform Mass Change?") == true) {
                   winopen('../Forms/MassChange.aspx?xx_tranid=' + itemIds, 'MassChange', 'width=800, height=500');
               }
           }
           return false;
  
       }
   </script>
</telerik:RadCodeBlock>
  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <AjaxSettings>
       <telerik:AjaxSetting AjaxControlID="QueryRadGrid">
           <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="QueryRadGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
               <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
           </UpdatedControls>
       </telerik:AjaxSetting>
       <telerik:AjaxSetting AjaxControlID="RadMenu1">
           <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="QueryRadGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
               <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
           </UpdatedControls>
       </telerik:AjaxSetting>
   </AjaxSettings>
</telerik:RadAjaxManager>
  
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
  
<telerik:RadContextMenu ID="RadMenu1" runat="server" OnClientItemClicking="MassChange"
   EnableRoundedCorners="true" EnableShadows="true">
   <Items>
       <telerik:RadMenuItem Text="Mass Change" />
   </Items>
</telerik:RadContextMenu>
  
<input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" />
  
<telerik:RadGrid ID="QueryRadGrid" runat="server" style="width:100%; height:99%; position: absolute;"
    Font-Names="Verdana" GridLines="Horizontal" AllowSorting="True" ShowGroupPanel="True" 
    Skin="Office2007" AllowPaging="True" PageSize="50" AutoPostBack="True"
    <MasterTableView>
        <HeaderStyle Wrap="false" />
    </MasterTableView>
    <ClientSettings AllowDragToGroup="True">
        <Scrolling UseStaticHeaders="true" AllowScroll="True" SaveScrollPosition="True"/>
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowDblClick="RowDblClick" />
    </ClientSettings>
    <PagerStyle AlwaysVisible="true" />
    <ExportSettings ExportOnlyData="true" IgnorePaging="true"/>
</telerik:RadGrid>
Vasil
Telerik team
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?