Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
694 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
112 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
191 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
105 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
158 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
155 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
86 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
118 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
1 answer
97 views

I've been stuck on this problem for a few hours now.
I need to save the value of a textbox on a form on ASPX Child Page which may contain html markup. The page also contains multiple Formviews bound to different datasources.
When I try and submit I get a "potentially dangerous request" error.  I tried setting ValidateRequest="false" in the page header, but to no avail.
I assume the answer would be to strip the tags from the value before posting back to the server in javascript, but I cannot figure out a way to make the form perform a submit operation.  I tried the page.submit() ; but it did nothing. And when I tried using the form control I get a javascript error stating submit is not a function.





<
asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
...
     <asp:FormView ID="TwoWeekForm" runat="server" DataSourceID="TwoWeekDataSource"
        DataKeyNames="ID" >
    <ItemTemplate>
 ...
    </ItemTemplate>
    <EditItemTemplate>
 ...
                <asp:TextBox ID="TwoWeekText" runat="server" Text='<%# Bind("Extended") %>' TextMode="MultiLine" CssClass="KeyEvent" style="color:Black"></asp:TextBox>
 ...   
    </table>
    </EditItemTemplate>
...  
    </asp:FormView>

 
<telerik:OpenAccessDataSource ID="TwoWeekDataSource" runat="server"
       EnableDelete="False" EnableInsert="False"
       ObjectContextProvider="CNTracker.OpenAccess.EntitiesModel, CNTracker.OpenAccess"
       TypeName="CNTracker.OpenAccess.Interaction"
       Where="this.Project == @Project AND this.Type == 17">
       <WhereParameters>
           <asp:SessionParameter DefaultValue="1" Name="Project"
               SessionField="CurrentProject" />
          
       </WhereParameters>
   </telerik:OpenAccessDataSource>
Ady
Telerik team
 answered on 26 Jun 2012
1 answer
105 views
using 2012 Q1 trial
for AutoGenerated column, if I have column name UserName, header automatically converted to User Name. how can I stop that doing automatically. If I have IPManagement  as column name, it is converting to I P Management . very annoying.

Please help me to fix this.
Arijit Chatterjee
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?