Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
134 views
Hi,

I am using same datatable to show self hierarchy as shown in this example http://www.telerik.com/help/aspnet-ajax/grdselfreferencinghierarchy.html
but the records are not shown in parent-child manner.

But when I set allowcustompaging property to false it works fine.

Please let me know why its happening. What am i doing wrong?

Thanks,
Nis
Prangadj
Top achievements
Rank 1
 answered on 04 Sep 2008
9 answers
317 views
Hi,

I am using RadMaskedTextBox i know if i do this  (###) ###-#### it will take numeric values but what if i want something like this. ______@yahoo.com. i tried using aaaa@yahoo.com in the custom mask but it will show something like this on the screen @yah.@yahoo.com. what should i do let user enter any input but with a mask @yahoo.com.

ramya
Missing User
 answered on 04 Sep 2008
1 answer
83 views
V5.2.0.0 does not contain a list of changes in the Readme file.


Lini
Telerik team
 answered on 04 Sep 2008
2 answers
222 views
Hello,

in my chart i have 2 series. One bar series, one line serie. This line is a horizontal line cause it's a fixed value. The position of the line starts from the middle of the first bar and ends in the middle of the last bar.
However i would like to start this line from the left y - axis till the right of the chart (basically it would look like an extra x-axis).

Is this possible and if so, how can i achieve this? Any suggestions are appreciated,

John



Sorin
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
85 views
Hi telerik team

Please read the following scenario carefully then find a solution for this problem:
  • I have a grid with 5 rows.
  • If two users access the same grid at the same time from different machines.
  • the first user delete the 3rd record.
  • the second user click the edit button to edit the 3rd record.
  • the problem is that the grid put the 4th row in edit mode because the 3rd one  really deleted.
  • This is a great  problem that may make users confused as the edit form open the next row not the clicked row.
My comment .. when command issued the grid make databind so new rows added or removed from the grid , so grid must not rebind data when edit or delete command issued to solve this problem .

Is there any way (from telerik) to overcome the problem ??

Remark:

I'm using  telerik controls for asp.net ajax with framework 3.5


Veli
Telerik team
 answered on 04 Sep 2008
1 answer
135 views

I want to expand all Master Table View Items from code behind (server side). To do this, I use Page_PreRenderComplete() event and expanding each MasterTableView Items.
It works fine, however for some reason the Paging Footer section is always visible. I want the Paging Footer to only appear if the number of records are bigger than the Page Size.
If you manually expand an item from UI, the Grid behaves correctly.

Telerik version used: Version=2008.2.826.35
Environment: Visual Studi0 2008 with .NET Framework 3.5


<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadGridTest.aspx.cs" Inherits="SlidingPaneTest.RadGridTest" %>

<%

@ 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">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title></title>

</

head>

<

body>

<form id="form1" runat="server">

<div>

<asp:CheckBox ID="chkShowAll" runat="server" AutoPostBack="true" Text="Expand All"

OnCheckedChanged="chkShowAll_CheckedChanged" />

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" AllowPaging="true"

ShowGroupFooter="false" AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource"

Skin="Office2007" OnDetailTableDataBind="RadGrid1_DetailTableDataBind" PageSize="20">

<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>

<MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="MasterID"

Name="MasterTable">

<DetailTables>

<telerik:GridTableView Width="1000" runat="server" AutoGenerateColumns="False" Name="DetailView"

ShowStatusBar="False" PageSize="10" EditMode="EditForms">

<PagerStyle Mode="NumericPages" AlwaysVisible="false" />

<Columns>

<telerik:GridBoundColumn SortExpression="Hobby" DataField="Hobby" UniqueName="Hobby"

HeaderText="Hobby" HeaderButtonType="TextButton" />

</Columns>

</telerik:GridTableView>

</DetailTables>

<Columns>

<telerik:GridBoundColumn SortExpression="Name" DataField="Name" HeaderText="Name"

UniqueName="Name" HeaderButtonType="TextButton">

</telerik:GridBoundColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

</div>

</form>

</

body>

</

html>


using

System;

using

System.Collections.Generic;

using

System.Linq;

using

System.Web;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Data;

using

Telerik.Web.UI;

namespace

SlidingPaneTest

{

public partial class RadGridTest : System.Web.UI.Page

{

protected void Page_PreRenderComplete(object sender, EventArgs e)

{

if (chkShowAll.Checked)

{

foreach (GridItem item in RadGrid1.MasterTableView.GetItems(GridItemType.Item))

{

item.Expanded = true;

}

foreach (GridItem item in RadGrid1.MasterTableView.GetItems(GridItemType.AlternatingItem))

{

item.Expanded = true;

}

}

}

protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{

RadGrid1.DataBind();

}

}

private DataTable CreateMasterTable()

{

DataTable dt = new DataTable();

dt.Columns.Add("MasterID");

dt.Columns.Add("Name");

DataRow dr;

dr = dt.NewRow();

dr[0] = "1";

dr[1] = "John Smith";

dt.Rows.Add(dr);

dr = dt.NewRow();

dr[0] = "2";

dr[1] = "William Bush";

dt.Rows.Add(dr);

 

dr = dt.NewRow();

dr[0] = "3";

dr[1] = "Andrew Connection";

dt.Rows.Add(dr);

return dt;

}

private DataTable GetHobby()

{

DataTable dt = new DataTable();

dt.Columns.Add("Hobby");

DataRow dr;

dr = dt.NewRow();

dr[0] = "Swimming";

dt.Rows.Add(dr);

dr = dt.NewRow();

dr[0] = "Reading";

dt.Rows.Add(dr);

return dt;

}

private void SetDataSource()

{

if (Session["MasterData"] == null)

{

Session["MasterData"] = CreateMasterTable();

}

RadGrid1.DataSource = Session["MasterData"];

}

protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

{

if (!e.IsFromDetailTable)

{

SetDataSource();

}

}

 

 

protected void RadGrid1_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)

{

GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;

switch (e.DetailTableView.Name)

{

case "DetailView":

{

string id = dataItem.GetDataKeyValue("MasterID").ToString();

e.DetailTableView.DataSource = GetHobby();

break;

}

}

}

protected void chkShowAll_CheckedChanged(object sender, EventArgs e)

{

RadGrid1.Rebind();

}

}

}

Veli
Telerik team
 answered on 04 Sep 2008
1 answer
116 views
Hello,

I'm using a RadEditor inside a custrom server control.
When I try to put that server control inside a panel which is used as a popup using the Ajax control toolkit's ModalPopupExtender  some of the javascript code of the RadEditor is being written on the screen and javascript error is being thrown.

Doe's anyone ever encountered a similar problem?

Tervel
Telerik team
 answered on 04 Sep 2008
1 answer
188 views
Hi,

I m using rad grid.here i set the editmode = editforms .
in the edit form there is a combobox means when i click the edit button this edit form template will be open with combobox.these all functionality in rad window.

now my first problem is that i need to redirect to another page with in that radwindow.
and that page have some functionality.
when i close this window it gave a unique no which i take into session.

now my second problem comes
i need my grid should open like when i click of selected index of  combobox and means it's edit template should be open with refresh data.
 
so pls guide me how to resolve it.
Prangadj
Top achievements
Rank 1
 answered on 04 Sep 2008
1 answer
51 views
Hello,

I use RadEditor, and in ceratian scenarios the RadEditor $create statement (which is called in the Sys.Application.add_init ) is being trimmed so that the javascript line is stopped in the middle.

That, naturally, causes a javascript error and other problems.

Sounds familiar? Anyone has a solution?  
Rumen
Telerik team
 answered on 04 Sep 2008
3 answers
135 views
can u help me to find out why the Events   

rtreeNavigation_NodeExpand  and  

rtreeNavigation_NodeCollapse
 
are not geting fired when i expand or collaspe the node.

Is there any specific propery to set ????


My Tree View:-

<radT:RadTreeView ID="rtreeNavigation" runat="server" Skin="Web20" TabIndex="2" SkinsPath="~/RadControls/RadTree/Skins/"
ShowLineImages="False" AutoPostBack="True" onnodeexpand="rtreeNavigation_NodeExpand" singleexpandpath="True" onnodeclick="rtreeNavigation_NodeClick" onnodecollapse="rtreeNavigation_NodeCollapse">
</
radT:RadTreeView>


Thanks n Regards
Rishi
(Gray Cell Technologies Exports)

Princy
Top achievements
Rank 2
 answered on 04 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?