Telerik Forums
UI for ASP.NET AJAX Forum
18 answers
804 views
I have a grid which uses grouping. I would like to implement some functionality that calculates some group-level stats on some of the columns in the grid, however I need to use TemplateColumns, so the built-in aggregates won't work. I am able to do the calculation in the grid's ItemDataBound event, however, at this point in the grid cycle, I don't have access to know which group i am in so the calculations won't be made on a group-level, as I want. Does anyone know how to accomplish this? A simple example would be a grid with a Template column which shows an Integer (the template column is needed for a variety of treasons which aren't pertinent). I would like the group header (or footer) to show a calculation made on this column (such as the number of items in the group which are greater than some fixed value)
Phil H.
Top achievements
Rank 2
 answered on 10 Sep 2014
3 answers
150 views

I am using the latest released version of the control.  In Page_Load I have the following code:

RadFileExplorer1.TreeView.EnableDragAndDrop = true;
RadFileExplorer1.Grid.ClientSettings.AllowRowsDragDrop = true;

It fails on the second line because the .Grid property is null at that point?    If I don't have that code the program seems to run fine.


For reference, I added the above code to the bottom of Page_Load in the program "PhysicalPathFileSystemProvider_Cs.zip"

located at the bottom of the page on http://www.telerik.com/support/kb/details/use-radfileexplorer-with-physical-and-shared-folder-s-paths



Vessy
Telerik team
 answered on 10 Sep 2014
6 answers
113 views
Hello, I have a RadPanelBar that contains a RadPanelItem, similar to the configuration below. Both are assigned IDs with runat=server.

In my code-behind, I am trying to pass the RadPanelItem's clientID to the RadToolTipManager so that the Item will have a nice pretty tooltip on mouse over.

However, passing the RadPanelItem's clientID to the RadToolTipManager does not enable the tooltip -- I found out that the actual RadPanelItem's ClientID is not being assigned correctly -- it appears that the RadPanelItem's ClientID is the same as the RadPanelBar. 

I think this may be a bug, since I am able to pass literally every other control's clientID to the RadTooltipManager successfully, and have the tooltip displayed correctly.

Please advise as to how I can pass the correct RadPanelItem.ClientID to the RadTooltipManager.

ascx code:
<telerik:RadPanelBar width="100%" ID="rdpPanelBar" runat="server" ExpandMode="MultipleExpandedItems">
                <Items>
                    <telerik:RadPanelItem Text="Package" runat="server" Width=100% Value="PackageName" id="rdiPackage">
                        <ContentTemplate>
...
                        </ContentTemplate>
</Items>
                    </telerik:RadPanelItem>
</telerik:RadPanelBar>


code behind (vb net)
Dim item As RadPanelItem = rdpPanelBar.FindItemByValue("Package")
 
Dim test = rdpPanelBarClientID & "|" & rdiPackage.ClientID
 
RadToolTipManager1.TargetControls.Add(rdiPackage.ClientID, True)
 
RadToolTipManager1.Text = test
nismo
Top achievements
Rank 1
 answered on 10 Sep 2014
2 answers
228 views
Hi,

showModalDialog has been removed from Chrome few days ago, possibly from Opera too.

Firefox also warns that showModalDialog  has been deprecated and planed to be removed.

Is Rad Window using that method and will be affected?

or it just might be a possible solution...?


Thanks,
Shay


Shay
Top achievements
Rank 1
 answered on 10 Sep 2014
5 answers
2.1K+ views
So I've seen this thread answered over and over and according to what I've read, this should work no problem. But it's not. I just want to be able to select a record. I also want to enable the rowHoverStyle.

Nothing works. Not sure if it's a setting in my web.config or what. The link below shows that it isn't working and my code is below. The label is supposed to show the row data of the clicked row.

http://www.mydealbinder.com/test.aspx

<%@ 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">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
       <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                    <telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="False" OnPreRender="RadGrid2_PreRender"
                        CellSpacing="0" GridLines="None" Skin="Web20" ShowHeader="False" OnSelectedIndexChanged="RadGrid2_SelectedIndexChanged">
 
                        <ClientSettings Selecting-AllowRowSelect="true" EnableRowHoverStyle="true">
                            <Selecting AllowRowSelect="true" />
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            <ClientEvents OnRowMouseOver="RowMouseOver" />
                        </ClientSettings>
                         
                        <MasterTableView DataKeyNames="ntsID">
                                                        
                            <Columns>
                             
                                <telerik:GridBoundColumn DataField="ntsID" DataType="System.Int32"
                                    Display="False" FilterControlAltText="Filter column column" UniqueName="column">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Expr2"
                                    FilterControlAltText="Filter column1 column" UniqueName="column1">
                                </telerik:GridBoundColumn>
                            </Columns>
                             
                        </MasterTableView>
                         
 
                    </telerik:RadGrid>
                 
                
                    <br />
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                 
                
    </telerik:RadAjaxPanel>
    </div>
    </form>
</body>
</html>
Angel Petrov
Telerik team
 answered on 10 Sep 2014
2 answers
75 views
Hi Support,

The RadEditor's HTML mode doesn't editable in Chrome version 37.0.2062.103 m.

The bug occurs when adding a flash player via Flash Manager into the content and switching into HTML edit mode.

Same issue reproduces in the example page: http://demos.telerik.com/aspnet-ajax/editor/examples/filemanagers/defaultcs.aspx

What could be the issue?

Thanks,
shimiz
Top achievements
Rank 1
 answered on 10 Sep 2014
2 answers
291 views
I'm having a bit of difficulty with the XAxis Labels and YAxis Labels overlaying each other on horizontal bar charts with negative amounts.  I'm still very new to the Telerik controls, so I might be missing something very obvious.  Sorry for the noob question.

When all of the amounts are positive, everything looks great.  However, when I add in a negative amount, the YAxis adjusts to accommodate the values, but the labels get screwed up.

Please see my screen shots for what I mean.

TIA!
Danail Vasilev
Telerik team
 answered on 10 Sep 2014
1 answer
140 views
Hi.
I have a page (in a master page) with a ToolTip manager where the tooltips ar working as intended.
On this page there is also a user control with its own ToolTip manager handling the tooltips of the 10 smaller user controls placed in this container user control.
However the tooltips on this level appears as browser default, just as if there was no TT manager.

I suppose it should be possible that a user control can have its own TT manager ?
BTW, the user control with the TT manager is placed in an update panel (together with other stuff).

I have read the threads suggested in other posts but have not found the cause for this.

Thnx in advance.
Per-Olof Olsson
Top achievements
Rank 1
 answered on 10 Sep 2014
1 answer
185 views
We are using the RadDialogopener for image searches on the site. Having good luck with a customized ImageManager.ascx and code like the following. Added a number of display:none css classes to various portions of the replaced ascx to hide functionality we don't need.
    
imageManagerParameters = New FileManagerDialogParameters()
imageManagerParameters.ViewPaths = New String() {"~/userimages/fphimages"}
imageManagerParameters.UploadPaths = New String() {"~/userimages/fphimages"}
imageManagerParameters.MaxUploadFileSize = 800000
izmageManagerParameters.AllowMultipleSelection = False
 
Dim imageManager = New DialogDefinition(GetType(ImageManagerDialog), imageManagerParameters)
imageManager.ClientCallbackFunction = "fphScript.imageManagerHandler"
imageManager.Width = Unit.Pixel(780)
imageManager.Height = Unit.Pixel(500)
imageManager.Parameters("ExternalDialogsPath") = "~/EditorDialogsFPH/"

dialogOpener.DialogDefinitions.Add("ImageManager", imageManager)

However, we would also like to customize the RadFileExplorer portion of the dialog. Would like to customize image sizes larger than 32x32.  Would like to filter image searches in the thumbnail grid.  I've found a number of examples where a RadFileExplorer was included in the page source, and after finding the control on the page, they were able to modify its properties using code like...

Dim rfe = FindRadFileExplorer(Me.Page)
If Not rfe Is Nothing Then
     rfe.DisplayUpFolderItem = False
     rfe.EnableFilterTextBox = True
     rfe.EnableFilteringOnEnterPressed = True
End If

But since we are using RadDialogOpener outside of a RadEditor, and we have no RadFileExplorer in our markup as seen below. And so can't find the RadFileExplorer on the page as in code above.

<telerik:RadDialogOpener runat="server" ID="luImageDialogOpener"></telerik:RadDialogOpener>

How can I access the RadFileOpener used by this dialog in order to set properties like "EnableFilterTextBox"?    
Ianko
Telerik team
 answered on 10 Sep 2014
2 answers
148 views
Hi,
           I have a rad grid which has three columns ie, one link button and two labels. Link button should be enabled based on some logic. So i did this in
OnItemDataBound of the RadGrid and it was working fine when the page loads first time. But when i do any sorting by clicking on one of the columns
the link enabling and disabling logic doesnt reflect in UI. Ie, the first column not getting binded after OnItemDataBound.


.aspx.cs:
protected void radgrid1_OnNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            FillGrid();

        }

 protected void radgrid1_OnItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                LinkButton btnView = (LinkButton)item.FindControl("btnView");
                DataRowView v = (DataRowView)e.Item.DataItem;
                string Quotation_no = v.DataView[e.Item.ItemIndex]["Quotation_no"].ToString();
                string str= btnView.Enabled.ToString();
                
                if (Quotation_no.Trim().Equals("1"))
                {                   
                        btnView.Enabled = false;
                        btnView.Text = Quotation_no + "gg";             
                }
                else
                {               
                     btnView.Enabled = true;
                     btnView.Text = Quotation_no + "mm";
                }

            }
        }

.aspx:
        <telerik:RadGrid runat="server" ID="radgrid1" AutoGenerateColumns="False" AllowSorting="true"
            AllowPaging="true" OnNeedDataSource="radgrid1_OnNeedDataSource" OnItemDataBound="radgrid1_OnItemDataBound"
            OnSortCommand="radGrid1_SortCommand">
            <MasterTableView Width="100%" PagerStyle-AlwaysVisible="true" EnableNoRecordsTemplate="true"
                ShowHeadersWhenNoRecords="false">
                <NoRecordsTemplate>
                    No Data Found.
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="Quotation_no" HeaderText="Quotation_no">
                        <ItemTemplate>
                            <asp:LinkButton ID="btnView" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="lob_desc" HeaderText="Decription" SortExpression="lob_desc">
                        <ItemTemplate>
                            <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("lob_desc") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="lob_desc" HeaderText="Units" SortExpression="UNITS">
                        <ItemTemplate>
                            <asp:Label ID="lblUnits" runat="server" Text='<%# Eval("UNITS") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <PagerStyle AlwaysVisible="True"></PagerStyle>
            </MasterTableView>
        </telerik:RadGrid>
Nambi
Top achievements
Rank 1
 answered on 10 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?