Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
I have developed a screen similar to http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx. I want to make it work in such a way that the cell value is saved  when a click is made anywhere on the page.I am able to edit the cell by double cliking the cell. I am able to save the edited value when i click on a grid row. When i click on any area apart from the grid, the value is not getting saved. I want to make it work in such a way that the cell captures value when a click s made anywhere on the page. Please help me asap.

Awaiting your reply,
Baarat
Mira
Telerik team
 answered on 04 Nov 2010
3 answers
136 views
Hi,

after adding the RadFormDecorator to my project MasterPage, I've noticed this strange behavior: in every DropDownList that doesn't have any element, the word 'undefined' is displayed.

Here's a simple page that shows this behavior:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DropDownList_undefined._Default" %>
<%@ 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>Untitled Page</title>
</head>
<body>
    <form action="Default.aspx" runat="server">
        <telerik:RadScriptManager runat="server" id="sm1"></telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="all" />
         
        <asp:DropDownList runat="server" ID="ddlEmpty" Width="150px"></asp:DropDownList>
        <asp:DropDownList runat="server" ID="ddlPopulated" Width="150px">
            <asp:ListItem Text="Item1" Value="Item1"></asp:ListItem>
            <asp:ListItem Text="Item2" Value="Item2"></asp:ListItem>
        </asp:DropDownList>       
    </form>
</body>
</html>

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 
 
namespace DropDownList_undefined
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
    }
}

Is there any way to avoid this?

Thanks
Georgi Tunev
Telerik team
 answered on 04 Nov 2010
1 answer
240 views
Dear Support,

I want to use Javascript Intellisense. On my master page I added the RadScriptManager (I'm using VS 2010) with the needed references. When I try to use the js intelisense everything works fine.

But how can I add this behaviour on content pages and embedded user controls? I can't add another RadScriptManager, becauce omly one is allowed. But there isn't a RadScriptManagerProxy.

How can I get out of this?

Thanks in advance.

Greetings
Christian

p.S: What means "Use ScriptManager CDN"? What's CDN?
T. Tsonev
Telerik team
 answered on 04 Nov 2010
1 answer
70 views
Hi,

Is there a way to cancel the edit command in gridCreateColumnEditorEvent? I have tried the following, but it is not working:

protected void grid_CreateColumnEditor(object sender,Telerik.Web.UI.GridCreateColumnEditorEventArgs e)
{
  
  if (//Some condition)
  {
    grid.MasterTableView.ClearEditItems();
  }
}


//HÃ¥kan
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2010
7 answers
381 views
Hi

How do I access DataKeyValues in a button click event handler if the button is outside the RadGrid?

<telerik:RadGrid ID="RadgridDestination" runat="server" 
     AllowSorting="True"  ShowGroupPanel="True" 
     AutoGenerateColumns="False"
          Skin="Sunset" AllowPaging="True" GridLines="None">
  
        <GroupingSettings ShowUnGroupButton="True"  />
        <ClientSettings AllowDragToGroup="True" allowcolumnsreorder="True" 
            columnsreordermethod="Reorder" reordercolumnsonclient="True" >
        </ClientSettings>
          
  
<MasterTableView EditMode="InPlace" DataKeyNames="Destination_ID" GroupLoadMode="Client" >
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
    <Columns>
<telerik:GridButtonColumn CommandName="Select" Text="Edit"  ButtonType="ImageButton"
            UniqueName="column1" 
            ImageUrl="Images/Edit.gif">
        </telerik:GridButtonColumn>
  
    </Columns>
           <EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
  
    </telerik:RadGrid>
  
  <asp:Button ID="btnPkNO" runat="server"  CausesValidation="false" Text="NO" />
Protected Sub btnPkNO_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnPkNO.Click
  
  DestID = RadgridDestination.SelectedValues("Destination_ID") 'I'm getting NullReferenceexception here
  
End Sub

Any help would be appreciated!!
Neelima


Marin
Telerik team
 answered on 04 Nov 2010
2 answers
239 views
Hello

I have a grid that i want to insert new rows into but i dont want the rows committing to the database. This is the top of my grid.
Is this possible?
<telerik:RadGrid runat="server" ID="grdInvoiceLines" AllowPaging="True" AutoGenerateColumns="false"
                GridLines="Both" ShowFooter="true" ShowHeader="true" AllowMultiRowSelection="false" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" OnItemUpdated="grdInvoiceLines_ItemUpdated"
            OnItemDeleted="grdInvoiceLines_ItemDeleted" OnItemInserted="grdInvoiceLines_ItemInserted" OnDataBound="grdInvoiceLines_DataBound">
                <MasterTableView DataKeyNames="InvoiceLineId" CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true"
                    EditMode="InPlace" AllowAutomaticUpdates="True">

I want to store the inserted values in viewstate. 

Thanks In advance

<telerik:RadGrid runat="server" ID="grdInvoiceLines" AllowPaging="True" AutoGenerateColumns="false"
                GridLines="Both" ShowFooter="true" ShowHeader="true" AllowMultiRowSelection="false" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" OnItemUpdated="grdInvoiceLines_ItemUpdated"
            OnItemDeleted="grdInvoiceLines_ItemDeleted" OnItemInserted="grdInvoiceLines_ItemInserted" OnDataBound="grdInvoiceLines_DataBound">
                <MasterTableView DataKeyNames="InvoiceLineId" CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true"
                    EditMode="InPlace" AllowAutomaticUpdates="True">
<telerik:RadGrid runat="server" ID="grdInvoiceLines" AllowPaging="True" AutoGenerateColumns="false"
                GridLines="Both" ShowFooter="true" ShowHeader="true" AllowMultiRowSelection="false" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" OnItemUpdated="grdInvoiceLines_ItemUpdated"
            OnItemDeleted="grdInvoiceLines_ItemDeleted" OnItemInserted="grdInvoiceLines_ItemInserted" OnDataBound="grdInvoiceLines_DataBound">
                <MasterTableView DataKeyNames="InvoiceLineId" CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true"
                    EditMode="InPlace" AllowAutomatic
<im<telerik:RadGrid runat="server" ID="grdInvoiceLines" AllowPaging="True" AutoGenerateColumns="false"
                GridLines="Both" ShowFooter="true" ShowHeader="true" AllowMultiRowSelection="false" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" OnItemUpdated="grdInvoiceLines_ItemUpdated"
            OnItemDeleted="grdInvoiceLines_ItemDeleted" OnItemInserted="grdInvoiceLines_ItemInserted" OnDataBound="grdInvoiceLines_DataBound">
                <MasterTableView DataKeyNames="InvoiceLineId" CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true"
                    EditMode="InPlace" AllowAutomaticUpdates="True">g src="http://www.telerik.com/Images/Forum/codeBlockV2.gif" img="" alt="">
Updates="True">
Marin
Telerik team
 answered on 04 Nov 2010
6 answers
309 views
Hello,

I'm looking for a way, but still didn't find, to get in javascript (client side) the current selected date of the scheduler.

Thank you.
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 Nov 2010
1 answer
207 views
hi all,

we have a date column in the grid and when we export to excel, excel is treating it as a Date column, i want it to be treated as a normal string (general), is this possible in telerik grids export to excel functionality

Thanks -Nen
Nen
Top achievements
Rank 1
 answered on 04 Nov 2010
1 answer
71 views
I dont see it in the Demos, but will the TreeList have any ClientSide functionality?

Plans for oData or asmx binding?
Sebastian
Telerik team
 answered on 04 Nov 2010
1 answer
93 views
Hi,
  i have a problem in telerik scheduler, that is i didn't get the recurrence option while i am inserting the appointment. It displays only the save and cancel button. I need recurrence option to be enable. Please help me to get out of this problem. I am using Telerik version: RadControls for ASP.NET AJAX Q2 2010 & Dot Net version 3.5.please let me know as soon as possible
Peter
Telerik team
 answered on 04 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?