Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
258 views
Im having three tables with schema

Category ( CategoryID , CategoryName )
SubCategory ( SubCategoryID, CatgoryID_Fk , SubCategoryName)    (Foreign Key to Category Table )
Items (ItemID , SubCategoryID_Fk , ItemName) ( Foreign Key to Sub Cat table )

here is the database diagram .. if i didnt make myself clear..

http://img122.imageshack.us/img122/149/imagezp3.jpg

So what i want is in the tree view to show the
Categories first and once expanded show the subcategories that fall under the sub categories

and for example if a category exists with the name "GAMES"

it should show the number of items that is under GAMES

for example

+ GAMES (11)
+ Electronix ( 23 )

Thanks in advance...





Aleksandar
Top achievements
Rank 1
 answered on 09 Oct 2008
2 answers
91 views
Hi,
Nice example in http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/LectureSeries/DefaultCS.aspx

Can you fill in some more info why and how it works (the role of the repeater, etc)

...then I will look again (and understand).

Best Regards,
Petter.
btw. Nice job of all of you!
pf
Top achievements
Rank 1
 answered on 09 Oct 2008
3 answers
200 views
Hello all

I've got a really strange problem with the RadCalendar control  (v. 2008.1.415.20) and  was hoping somebody could help me.

When a date is selected from a drop-down menu, there is an autopostback that sets the minimum date to equal the date in my drop-down.

i.e:     rcSelect.RangeMinDate = DateTime.Parse(lstDate.SelectedValue);

If I select January 2009, I can then select February 2009 and so on, but I can't select a date from an earlier date - i.e. November 2008.

Does anyone have an idea why this is?   All I want to do is make the month on the calendar match the month in the dropdown.

You can see what I mean here:

http://www.freedhome.co.uk/availability/

Best regards

Darren
Daniel
Telerik team
 answered on 09 Oct 2008
5 answers
81 views
Hello All
Can i place pager out of the rad grid ?

if yes , please guide me

All the best
Davari
Daniel
Telerik team
 answered on 09 Oct 2008
6 answers
155 views
I recently purchased the full developer version of RadControls for ASP.NET AJAX and followed all the directions to get my site working with no avail.

I uninstalled the old version;
Installed the new one;
Updated references to new dll's;

Also, the RAD controls don't show up on the toolbox anymore.
I ran the Register utility again, but no luck.
I can manually create a tab and add them by pointing to the dll, but I get an error when I try to use them.

The error I'm getting on the page is

Could not load file or assembly 'Telerik.Web.UI, Version=2008.2.723.35

Thanks,

Rod Liberal
Svetlina Anati
Telerik team
 answered on 09 Oct 2008
1 answer
108 views

When I add grouping to a radGrid in our application a NullRefrenceException is thrown in grid related code.  The grid is using custom skins and css files and the exception isn't thrown when the custom skins aren't used.  The skins are just adapted versions of the Office 2007 skin and work fine when grouping isn't used.  

Thanks

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridGroupSplitterColumn.PrepareCell(TableCell cell, GridItem item) +201
   Telerik.Web.UI.GridGroupHeaderDecorator.DecorateItem(GridTableView owner, GridColumn[] columnArray) +233
   Telerik.Web.UI.GridItem.PrepareItemStyle() +261
   Telerik.Web.UI.GridGroupHeaderItem.PrepareItemStyle() +121
   Telerik.Web.UI.RadGrid.PrepareRows(GridTableView view) +132
   Telerik.Web.UI.RadGrid.Render(HtmlTextWriter writer) +92
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

Dimo
Telerik team
 answered on 09 Oct 2008
3 answers
60 views
I'm using Radgrid 2007-Q3. Are groupfooters not available in this version?
Vlad
Telerik team
 answered on 09 Oct 2008
3 answers
97 views
Hi guys,

I'm having a problem using the RAD Editor. The scenario is like this:

I type texts in the body of the RAD Editor, highlighted it and upon clicking the right click on the mouse, a small window will appear showing cut, copy and paste, I selected copy then right click again. This time I think there is a problem in the small window, there are boxes that appears in the copy and cut area.

Thanks...
Jhobs
Rumen
Telerik team
 answered on 09 Oct 2008
1 answer
97 views
How the make the radgrid column width extendable on client side so that user can adjust it according to his will?
Daniel
Telerik team
 answered on 09 Oct 2008
5 answers
167 views
really I tryed several times to create hierarcial tree using the following properties

  • DataFiledID
  • DataFieldParentID

 but fails

here is the sample code

class
SiteDataItem
{
private string _text;

 

 

private string _url;

 

 

private int _id;

 

 

private int? _parentId;

 

 

public string Text

 

{

 

get { return _text; }

 

 

set { _text = value; }

 

}

 

public string Url

 

{

 

get { return _url; }

 

 

set { _url = value; }

 

}

 

public int ID

 

{

 

get { return _id; }

 

 

set { _id = value; }

 

}

 

public int? ParentID

 

{

 

get { return _parentId; }

 

 

set { _parentId = value; }

 

}

 

public SiteDataItem(int id, int? parentId, string text, string url)

 

{

_id = id;

_parentId = parentId;

_text = text;

_url = url;

}

}

 

 

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

List

<SiteDataItem> siteData = new List<SiteDataItem>();

 

siteData.Add(

new SiteDataItem(1, null, "All Sites", ""));

 

siteData.Add(

new SiteDataItem(2, 1, "Search Engines", ""));

 

siteData.Add(

new SiteDataItem(3, 1, "News Sites", ""));

 

siteData.Add(

new SiteDataItem(4, 2, "Yahoo", "http://www.yahoo.com"));

 

siteData.Add(

new SiteDataItem(5, 2, "MSN", "http://www.msn.com"));

 

siteData.Add(

new SiteDataItem(6, 2, "Google", "http://www.google.com"));

 

siteData.Add(

new SiteDataItem(7, 3, "CNN", "http://www.cnn.com"));

 

siteData.Add(

new SiteDataItem(8, 3, "BBC", "http://www.bbc.co.uk"));

 

siteData.Add(

new SiteDataItem(9, 3, "FOX", "http://www.foxnews.com"));

 

RadTreeView1.DataTextField =

"Text";

 

RadTreeView1.DataNavigateUrlField =

"Url";

 

RadTreeView1.DataFieldID =

"ID";

 

RadTreeView1.DataFieldParentID =

"ParentID";

 

RadTreeView1.DataSource = siteData;

RadTreeView1.DataBind();

}

here is the output:

Note:

  • I'm using Rad controls for asp.net ajax.
  • the sample code copied from the online example.
Atanas Korchev
Telerik team
 answered on 09 Oct 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?