Telerik Forums
UI for ASP.NET AJAX Forum
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
83 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
298 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
150 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
199 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
157 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
1 answer
102 views
I am trying to implement the Demo Code given at :  http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx
I am using same Column names in my database.
It only works for "years" but when i clicked on "2004" or any other year it gives following Error. 

An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code

Additional information: Index was out of range. Must be non-negative and less than the size of the collection.


I am really confused about this. Please help me out in this. 

Looking forward for a quick response.
Thank you.
Danail Vasilev
Telerik team
 answered on 10 Sep 2014
1 answer
91 views
I am trying to implement the Demo Code given at :  http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx
I am using same Column names in my database.
It only works for "years" but when i clicked on "2004" or any other year it gives following Error. 

An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code

Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

This error occurs at  the code line :- 

 SqlDataSource2.SelectParameters[0].DefaultValue = Year.ToString();


I am really confused about this. Please help me out in this. 

Looking forward for a quick response. 
Thank you.
Danail Vasilev
Telerik team
 answered on 10 Sep 2014
1 answer
155 views
I am trying to implement the Demo Code given at :  http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx
I am using same Column names in my database.
It only works for "years" but when i clicked on "2004" or any other year it gives following Error. 

An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code

Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

This error occurs at  the code line :- 

 SqlDataSource2.SelectParameters[0].DefaultValue = Year.ToString();


I am really confused about this. Please help me out in this. 

Looking forward for a quick response. 
Thank you.
Danail Vasilev
Telerik team
 answered on 10 Sep 2014
3 answers
177 views
Hi,

I use your code from "http://www.telerik.com/help/aspnet-ajax/editor-printing-content-with-styles.html" to print the RadEditor html content and some additional custom information. In particular, I add some email information (sender, recipient, etc.) as the editor is used in an email web client.

A problem arises in the case of external images referenced in the html content, e.g. "<img width="1600" height="900" id="Grafik_x0020_1" src="/an_image_url_comes_here">". These images are not printed. However, the default RadEditor print function does work fine in this case.

How do I make the external images to be printed as well in the custom code?

My code looks like this:

        Telerik.Web.UI.Editor.CommandList["CustomPrint"] = function (commandName, editor, args) {
            var printIframe = document.createElement("IFRAME");
            document.body.appendChild(printIframe);
            var printDocument = printIframe.contentWindow.document;
            printDocument.designMode = "on";
            printDocument.open();

            printDocument.write("<html><head></head><body>" + editor.get_html(true) + "</body></html>");
            printDocument.close();

            try {
                if (document.all) {
                    printDocument.execCommand("Print");
                }
                else {
                    printIframe.contentWindow.print();
                }
            }
            catch (ex) {
                window.alert("error");
            }
            
            //document.body.removeChild(printIframe);
        };

Many thanks!!!

Roland
Ianko
Telerik team
 answered on 10 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?