Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
125 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
171 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
722 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
120 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
207 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
121 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
173 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
174 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
90 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
2 answers
133 views
I have a situation where I am dragging a list box item to one of two scheduler controls on the page.  How would I determine which of the two schedulers was the destination location.  I have followed the Drag and Drop example with the scheduler and datagrid controls.
Andy
Top achievements
Rank 1
Iron
 answered on 26 Jun 2012
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?