Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
111 views
Hi,

I am using telerik:RadGrid with one master table and 2 detail table in it. On load of the grid if no detail table exists for the row then also it is displaying > symbol. If we click on that then the symbol will go off becuase no details table exists for that row. This was not the problem in the earlier versions of telerik. But now I have upgraded the telerik version to Version=2010.1.413.40. In this version I am getting problem like this.

Is it version problem or can i fix it in my code?

Yavor
Telerik team
 answered on 12 May 2010
2 answers
243 views
I have created a RadlistView with the an InsertItemTemplate but when the Insert is carried out the values in the textboxes do not insert into the database. the insert process seems to be working, its just not taking the values from the textboxes.
The delete and edit templates are working great, its just the insert that doesn't seem to work. Would there be any reason for this?
Here is the insert code:

<telerik:RadListView ID="radListView1" DataSourceID="sqlDataSource1" runat="server" 
ItemPlaceholderID="Container" DataKeyNames="ID" AllowPaging="true" 
OnItemCommand="RadListView1_ItemCommand">  
<InsertItemTemplate>  
<fieldset style="float: left; width: 370px; height: 200px;">  
<legend>Name:<asp:TextBox ID="txtBoxName" runat="server" /></legend>  
<table cellpadding="0" cellspacing="0" style="width: 370px;">  
   <tr>  
     <td>  
       <table cellpadding="0" cellspacing="5">  
         <tr>  
           <td style="width: 25%">type:</td>  
           <td style="width: 75%">  
              <asp:TextBox ID="txtBoxType" runat="server" />  
           </td>  
         </tr>  
         <tr>  
          <td></td>  
          <td>  
             <asp:TextBox runat="server" ID="txtBoxTitle"></asp:TextBox>  
          </td>  
         </tr>  
       </table>  
      </td>  
      <td align="right" style="width: 25%; padding-left: 10px;"></td>  
    </tr>  
    <tr>  
      <td colspan="2">  
      <div style="float: left; width: 160px;">  
      <asp:Button ID="btnPerformInsert" runat="server" Text="Insert" CommandName="PerformInsert"/>  
     <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" />  
     </div>  
     </td>  
   </tr>  
   </table>  
   </fieldset>  
</InsertItemTemplate>  
 <asp:SqlDataSource ID="sqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
InsertCommand="INSERT INTO Names (name, type, title) VALUES (@name, @type, @title)">  
 
<InsertParameters>  
                            <asp:Parameter Name="name" Type="String" />  
                            <asp:Parameter Name="type" Type="String" />  
                            <asp:Parameter Name="title" Type="String" />  
                        </InsertParameters> 


K W
Top achievements
Rank 1
 answered on 12 May 2010
0 answers
65 views
Good Day All

In the Viewer of the RadScheduler, at the far left hand side there is time. Sometimes my application will allow a user not to enter time, but the date will be there , so in that case i want to display a Number of Periods. If the Timetable has 12 Periods a Day i want to display this

http://www.vuyiswamaseko.com/images/Time_want.JPG

not this one

http://www.vuyiswamaseko.com/images/Time_Time.JPG

Thanks
Vuyiswa
Top achievements
Rank 2
 asked on 12 May 2010
4 answers
135 views
Hi

I've developed a web application which relies heavily on the radGrid. Now I've encountered a very serious issue, which I consider a serious bug really.
So ... I've got a grid bound to a datatable (using needDataSource event).
I've got a DateTime column in the grid, which shows a column from the datatable, which is fine up until this point.
Then I've got filtering enabled, which is where my problem lies. If I try to filter on a value (equals), it works like a charm. However if I try 'isNull' or 'isNotNull' things go haywire.
Basically 'isNull' shows everything and the other way around. Basically nothing is null. Why is this?
Well ... I'd say it's because it's not 'null', but 'DBNull'. After all, a datatable built using dataAdapter.fill contains dbnull values instead of regular .net null values.
Of course this is not just limited to this type of column, even a regular bound column with a string value has the same issue. Neither 'isEmpty' nor 'isNull' works.

Anyway, this should really be built into the grid as a grid is used to bind data from a database in 99% of the cases it's used.

The client of course is not happy with this. Can anyone come to my aid here and propose a proper way to make this filter work?
Sebastian
Telerik team
 answered on 12 May 2010
1 answer
369 views
I have a 3-level RadGrid. In the MasterTable (ParentGrid), there's a template column with a label (LocationID). The detailtable(ChildGrid) has a commandItemTemplate "Add Contact". EditMode = popup. The popup is a usercontrol having a RadGrid(radGrid_CompanyContactDetails).

Suppose there are 3 rows in the MasterTable.  I click on a row. Then I click on "Add Contact" of the detail table, it opens the popup. Here I want to access the parent Grid's LocationID value for that particular row from the usercontrol's RadGrid's ItemDataBound event. I am able to access the RadGrid if I have the following code:

 
 protected void radGrid_CompanyContactDetails_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem item = (GridDataItem)e.Item; 
            radGrid rGrid = (Telerik.Web.UI.RadGrid)(item.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent); 
            Label location = (Label)rGrid.FindControl("LocationID") // Returns null
     }  

But if I give rGrid.FindControl("LocationID"), it returns null.

Please give some pointers on how to access the parent RadGrid's column values (or controls)
Shinu
Top achievements
Rank 2
 answered on 12 May 2010
18 answers
274 views
Hi.
I need to trigger serverside when the user clears the combobox input field.
Is this possible?

We have version 2008.2.723.35

Best regards
Kalina
Telerik team
 answered on 12 May 2010
5 answers
172 views
Hi,
I have made a custom Skin for nested splitters that works OK when I put the splitter code directly in the .aspx page.
When I attempt to create the splitters in C# code-behind with a Link to the skin's css in the .aspx header, the css is not used.
Do I have to dynamically change the skins after the client-side onload event?
Is there another way to specify the Skins css-path in the code-behind?
If so, how would I go about doing so. All your demo's have a "change skin" dropdown (openSkinChooser), but I can't find any info on this.

All this was based in your nested splitters demo and splitters\DynamicObjectCreation (which defaults to the Vista built-in skin)
Here is the code for the .aspx:

<%@ Page Language="c#" CodeFile="DefaultCS4.aspx.cs" AutoEventWireup="false" Inherits="Telerik.Web.Examples.Splitter.DynamicObjectCreation.DefaultCS4" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <style type="text/css"
    html, body, form 
    { 
       height: 100%; 
       width: 100%; 
       margin: 0px; 
       padding: 0px; 
       overflow: hidden; 
    } 
    </style> 
    <link href="../../../Skins/Foobar/Foobar/Splitter.Foobar.css" rel="Stylesheet" type="text/css" /> 
</head> 
<body > 
    <form id="Form1" method="post" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <asp:Panel runat="server" ID="SplitterHolder" Width="100%" Height="100%"
        <%-- here will be added dynamically the splitter --%> 
    </asp:Panel> 
    </form> 
    <script type="text/javascript" src="JScript.js"></script> 
</body> 
</html> 

Here is the code for the Splitters:

using System; 
using System.Collections; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Web; 
using System.Web.SessionState; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
namespace Telerik.Web.Examples.Splitter.DynamicObjectCreation 
    /// <summary> 
    /// Summary description for DefaultCS. 
    /// </summary> 
    public partial class DefaultCS4 : Page 
    { 
        //protected Telerik.Web.UI.RadPane pane1; 
        //protected Telerik.Web.UI.RadSplitter splitter1; 
        //protected System.Web.UI.WebControls.Button Button1; 
             
        private void Page_Load(object sender, System.EventArgs e) 
        { 
            /* Splitter1: Two panes, horizontal, NO Splitbar 
               BottomPane contains two other nested splitters*/ 
                RadSplitter Splitter1 = new RadSplitter(); 
                Splitter1.ID="RadSplitter1"
                Splitter1.Orientation = Orientation.Horizontal; 
                Splitter1.BackColor = ColorTranslator.FromHtml("#00137F");  
                Splitter1.Width = Unit.Percentage(100.0); 
                Splitter1.Height = Unit.Percentage(100.0); 
                    RadPane TopPane = new RadPane(); //Fixed top pane 
                    TopPane.ID="TopPane"
                    TopPane.Height = Unit.Pixel(50); 
                    TopPane.Scrolling = SplitterPaneScrolling.None;  
                        Label label0 = new Label(); 
                        label0.Text = "<span style='color:White'>Top Pane</span>"
                        "<a href='javascript:togglenav('tree')' ><span style='color:White'>TOC</span></a><br />"
                        "<a href='javascript:togglenav('idx')' >Index</a><br />"
                        "<a href='javascript:togglenav('search')' >Search</a><br/>"
                    TopPane.Controls.Add(label0); 
                    RadPane BottomPane = new RadPane(); 
                    BottomPane.ID="BottomPane"
                Splitter1.Items.Add(TopPane); 
                //vertical splitter goes in BottomPane 
                    RadSplitter Splitter2 = new RadSplitter(); 
                    Splitter2.ID="RadSplitter2"
                    Splitter2.Width = Unit.Percentage(100.0); 
                    Splitter2.Height = Unit.Percentage(100.0); 
                    Splitter2.BackColor = System.Drawing.Color.White; 
                    Splitter2.EnableEmbeddedSkins=false
                    Splitter2.Skin="Foobar"
                // LeftPane of Splitter2 
                        RadPane LeftPane = new RadPane(); 
                        LeftPane.ID="LeftPane"
                        LeftPane.Width = Unit.Percentage(25.0); 
                        LeftPane.Height= Unit.Percentage(100.0); 
                        // add content to LeftPane 
                            Label label1 = new Label(); 
                            label1.Text =   "<div id='tree' style='padding-left:10px;padding-top:10px;'>"
                            "left NAV content Tree"
                            "<br /><a href='http://google.com' target= TopContentPane>Open google.com</a><br />"
                            "<a href='http://flickr.com' target=TopContentPane>Open flickr.com</a>"
                            "</div>"
                            "<div id='idx' style='padding-left:10px;padding-top:10px;display: none;'>"
                            "left NAV content Index  </div>"
                            "<div id='search' style='padding-left:10px;padding-top:10px;display: none;'>"
                            "left NAV content Search </div>"
                        LeftPane.Controls.Add(label1); 
                 
                // add the pane in to Splitter2 
                    Splitter2.Items.Add(LeftPane); 
 
                // now create Splitter2 SplitBar 
                    RadSplitBar SplitBar2 = new RadSplitBar(); 
                    SplitBar2.ID="RadSplitbar2"
                    SplitBar2.CollapseMode = SplitBarCollapseMode.Forward; 
                 
                // add the SplitBar2 to Splitter2 
                    Splitter2.Items.Add(SplitBar2); 
                 
                // create Splitter2 right pane       
                        RadPane RightPane = new RadPane(); 
                        RightPane.ID="RightPane"
                        RightPane.Scrolling = SplitterPaneScrolling.None; //to avoid double scroll bars 
                //create horizontal splitter in RightPane 
                            RadSplitter Splitter3 = new RadSplitter(); 
                            Splitter3.ID="RadSplitter3"
                            Splitter3.Orientation = Orientation.Horizontal; 
                            Splitter3.Width = Unit.Percentage(100.0); 
                            Splitter3.Height = Unit.Percentage(100.0); 
                            Splitter3.BackColor = System.Drawing.Color.White; 
                            Splitter3.EnableEmbeddedSkins=false
                            Splitter3.Skin="Foobar"
                //Create top pane in Splitter3:  
                            RadPane TopContentPane = new RadPane(); 
                            TopContentPane.ID="TopContentPane"
                            TopContentPane.ContentUrl = "default.html"
                            Splitter3.Items.Add(TopContentPane); 
                //Create SplitBar3 in Splitter3:  
                            RadSplitBar SplitBar3 = new RadSplitBar(); 
                            SplitBar3.ID="RadSplitBar3"
                            SplitBar3.CollapseMode = SplitBarCollapseMode.Backward; 
                            Splitter3.Items.Add(SplitBar3); 
                //Create bottom pane in Splitter3: 
                            RadPane BottomContentPane = new RadPane(); 
                            BottomContentPane.ID="BottomContentPane"
                            BottomContentPane.Collapsed=true
                            BottomContentPane.Height=Unit.Pixel(330); 
                            BottomContentPane.MaxHeight=330; 
                            BottomContentPane.Scrolling = SplitterPaneScrolling.None; //Prevents double scrollbar 
                            BottomContentPane.MinHeight=0; 
                //Add Preview <div> 
                                Label label2 = new Label(); 
                                label2.Text="<div style='width:100%; height:100%' id='preview'></div>"
                            BottomContentPane.Controls.Add(label2); 
                            Splitter3.Items.Add(BottomContentPane); 
                //Add Content (Splitter3) to RightPane of Splitter2 
                        RightPane.Controls.Add(Splitter3); 
                //Add RightPane to Splitter2 
                    Splitter2.Items.Add(RightPane); 
                //Splitter2 to BottomPane of Splitter1 
                BottomPane.Controls.Add(Splitter2); 
                //BottomPane to Splitter1 
                Splitter1.Items.Add(BottomPane); 
                //Add Splitter1 to Placeholder 
                SplitterHolder.Controls.Add(Splitter1); 
        } 
        override protected void OnInit(EventArgs e) 
        { 
            // 
            // CODEGEN: This call is required by the ASP.NET Web Form Designer. 
            // 
            InitializeComponent(); 
            base.OnInit(e); 
        } 
         
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor. 
        /// </summary> 
        private void InitializeComponent() 
        {     
            this.Load += new System.EventHandler(this.Page_Load); 
 
        } 
    } 
 

Thanks,
Mike





Tsvetie
Telerik team
 answered on 12 May 2010
5 answers
152 views
I have a problem with IE 8 ??

with my personnal skin the editor are explosed...see screenshoot.
but with firefox the same page are OK ?????


i have a same problem with a arrow on combobox ???


Rumen
Telerik team
 answered on 12 May 2010
1 answer
174 views
Hi,
  I'm using the RadEditor control to allow users to create emails on our website. The website is posted on a webserver, however I want the users to be able to upload images from their own pc's is this possible to do.

My settings are
  <telerik:RadEditor ID="RadEditor1" runat="server">
                <ImageManager UploadPaths="~\images" ViewPaths="~\images" />
                <Content>
</Content>
            </telerik:RadEditor>


Regards

Robert Smith
Rumen
Telerik team
 answered on 12 May 2010
1 answer
106 views
I have an application with two RadGrids on the page together.  I have drag/drop functionality for each grid, which works fine.  However when dragging from one grid to the other, It creates the Javascript errors copied below.  On some environments, depending on the version/settings of the browser, it can cause a 404 error.  I have tried to solve this issue by adding code to my RowDrop event handler that ignores all drops from other grids.  But these errors are happening before the RowDrop is called.

How can I prevent these errors without losing the ability to drag/drop within the same grid?

Message: Sys.WebForms.PageRequestManagerServerErrorException: Cannot find a cell bound to column name 'Tasks'
Line: 4723
Char: 21
Code: 0
URI: http://localhost/Portal/ScriptResource.axd?d=fUJMFujfF39B_MM1dA7T_Ma2RfpS-GNQI3ziev5S6xl4tV7mAyNoKGpas918t9DDxFFDHGrlJR32pG3inQwrxiDv0KhaA9jpi0IMUfn4-f01&t=ffffffffec2d9970

Dimo
Telerik team
 answered on 12 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?