Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
68 views
Hi, spent a bunch of time nogging over this one. Finally figured it out. I traced it all the way back to the Telerik.Web.UI.Editor.RadEditor.js. I'm using Q1 2009 RadControls for ASP.NET Ajax.

I was getting a "Object does not support this property or method" error when using the following script:

 

 

    <script type="text/javascript">  
        function OnClientLoad(editor, args) {  
            editor.fire("SelectAll");  
            editor.fire("ApplyClass", { value: ".default" });  
        }  
    </script> 
 

Figured out that it need an object with a get_value() method:

 

    <script type="text/javascript">  
        function OnClientLoad(editor, args) {  
            editor.fire("SelectAll");  
            objCssClass = new Object(); objCssClass.get_value = function() { return ".default"; }  
            editor.fire("ApplyClass", objCssClass);  
        }  
    </script> 
 

Hope this saves someone a few hours :)

Bob
Top achievements
Rank 2
 answered on 26 Jun 2012
4 answers
87 views
Happy New Year Telerik!

I have a grid with a RowSelected client event that fills in other controls on the page. The grid has a "clientselectcolumn". On loading I populate the grid with serverside code. I also fire a "item.selected = true" in the PreRender, which successfuly checks the first row and "clientselectcolumn" column, but it doesnt fire the RowSelected that fills in the controls on the page.

How can I go about checking and selecting the first row and filling in the other controls on the page load? I also want to implement this on the ItemCreated, so it checks the new row and fills in the default data I set on the postback for the other controls. This data is set up in the grid with the Client/DataKeyNames in a single query and on the RowSelected it fills in the other page controls.

Thanks!
SDI
SDI
Top achievements
Rank 1
 answered on 26 Jun 2012
2 answers
127 views
Dear Telerik-Support,

I use a RadButton and the Event OnClientClicking with the parameter sender, args.

I need the dom Event in this method. I try it with the global event reference and it only works for IE because Firefox etc. are not implement this global event reference. So I try it with an anoynomous function

Button property
OnClientClicking = function(sender, args) {  FnButton_ClientClicking(sender, args, event) };
 
JavaScript
function FnButton_ClientClicking(sender, args, e)
{
}

but in the function e will be undefined on firefox.

Whats wrong here? How can I parse the dom event to the function. If I try the same with an ImageButton and the OnClientClick Event the Browesers parse by using (this, event) all what I need!

Thanks for help,

Kind regards,
Christian
Slav
Telerik team
 answered on 26 Jun 2012
5 answers
643 views
Hi,

I have a grid in which I have to restrict the user from selecting few rows based on some column value.
I am allowing the users to select the rows by clicking on them currently.

How can I make some rows unselectable on click?


Brindavan
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jun 2012
4 answers
82 views
I need change row image while is droping



by other icon or image, for example:




How I can do this??

regards
Eyup
Telerik team
 answered on 26 Jun 2012
5 answers
174 views
I created this little prototype to illustrate the problem I'm having.

Basically, the 'UnitsInStock' column is not displaying the tooltip.

Notice that if you set AllowSorting=True for the column or set AllowColumnsReorder=False in ClientSettings, then the tooltip will work.

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="HowToDisplayHdrTooltipsInTelerikRadgrid._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManager runat="server" />
    <telerik:RadGrid ID="grid" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowSorting="true"
        GridLines="None">
        <ClientSettings AllowColumnsReorder="True">
        </ClientSettings>
        <MasterTableView DataKeyNames="ProductID" DataSourceID="SqlDataSource1">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <Columns>
                <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32" HeaderText="ProductID"
                    ReadOnly="True" AllowSorting="true" SortExpression="ProductID" UniqueName="ProductID" HeaderTooltip="product id tooltip">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" AllowSorting="true" SortExpression="ProductName"
                    UniqueName="ProductName" HeaderTooltip="product name tooltip">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CategoryName" HeaderText="CategoryName" SortExpression="CategoryName"
                    UniqueName="CategoryName" HeaderTooltip="category name tooltip">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" HeaderText="UnitPrice"
                    SortExpression="UnitPrice" UniqueName="UnitPrice" HeaderTooltip="unit price tooltip">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitsInStock" DataType="System.Int16" HeaderText="UnitsInStock" AllowSorting="false"
                    UniqueName="UnitsInStock" HeaderTooltip="units in stock tooltip">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT [ProductID], [ProductName], [CategoryName], [UnitPrice], [UnitsInStock] FROM [Alphabetical list of products]">
    </asp:SqlDataSource>
</asp:Content>

PS - I'm using version 2010.2.929.40
Eyup
Telerik team
 answered on 26 Jun 2012
1 answer
95 views

describe the steps to replicate the error
Fatal error,
1. Add an RadRibbonBar Control and add a button and add an event handler onButtonClick

<telerik:RadRibbonBar runat=server ID="rb" 
        onbuttonclick="kg111_ButtonClick">
            <Tabs>
                <telerik:RibbonBarTab>
                    <telerik:RibbonBarGroup>
                        <Items>
                            <telerik:RibbonBarButton Text="Hola" Value="111"  />
                        </Items>
                    </telerik:RibbonBarGroup>
                </telerik:RibbonBarTab>
            </Tabs>
        </telerik:RadRibbonBar>

2. Add an RadDatePicker Control 
  

<telerik:RadDatePicker ID="RadDatePicker1" runat="server">
        </telerik:RadDatePicker>

3. compile and Run.
4. Select a date
5. place the cursor in the text box RadDatePicker control, or rather, place the focus on the control RadDatePicker
6. Immediately after the button click of RadRibbonBar (skip the error here)
Telerik Asp.net Version : Q1 2012
Test Browser: IE 9, Opera 11.64, Chrome, Etc

ERROR

Text property cannot be set. String was not recognized as a valid DateTime.
 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
 Exception Details: System.InvalidCastException: Text property cannot be set. String was not recognized as a valid DateTime.
 
Source Error:
 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
 
Stack Trace:
 
[InvalidCastException: Text property cannot be set. String was not recognized as a valid DateTime.]
   Telerik.Web.UI.RadDateInput.RangeTextProperty(String value) +181
   Telerik.Web.UI.RadDateInput.set_Text(String value) +17
   Telerik.Web.UI.DatePickingInput.LoadPostData(String postDataKey, NameValueCollection postCollection) +554
   Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +327
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878

is necessary to comment that the control radribbonbar has many problems ... Telerik team, why they launched a control with too many errors and incomplete?

Princy
Top achievements
Rank 2
 answered on 26 Jun 2012
9 answers
131 views
Hi, we've been looking at upgrading our version of the RadEditor for Sharepoint to version 5.8.15 (although now version 5.8.16 has been released we've moved to evaluating that version on our development platform.

We are having problems using the 'ImageManager' button. When it is used to select an image the HTML for the <img> is not returned to the page.  If we use the 'MOSSImageManager' the HTML is returned to the page.

In our opinion the functionality of the 'ImageManager' is more suitable as it has a better interface for the content authors to use (particularly the upload function but also the image editor features) so we would like to continue using that version of the button.

In the ToolsFile.xml the tool we want to use is specified as
    <tool name="ImageManager" shortcut="CTRL+G" />

Is there any issue with the ImageManager button with the latest version of the RadEditor for Sharepoint?

Thanks
Peter
Rumen
Telerik team
 answered on 26 Jun 2012
1 answer
139 views
I need to be able to drag a node to an empty tree, I notice in the demo if you drag all nodes from a tree you can't drag them back. Any suggestions?
Princy
Top achievements
Rank 2
 answered on 26 Jun 2012
3 answers
69 views
When scrolling through an opened combo box with the keyboard, the high lighted row doesn't scroll into view.

You can see this behaviour in your demo.

Is there anyway to make the high lighted item scroll into view?

Thx.
Rob
Top achievements
Rank 1
 answered on 26 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?