Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
254 views
Hiya,

I'm using a RadListView bound to a ObjectDataSource and using a RadDataPager to allow paging (its a simple forum application). One of the features I'm trying to have is to automatically jump to a specific page depending on the url i.e

/forum.aspx?topic=1  would jump to the first page where as
/forum.aspx?topic=1&reply=997 might jump to the 10th page.

To accomplish this, I've setup a RadListView_DataBound component which quite simply tries to jump to the correct page which holds the post id :-

protected void RadListView1_DataBound(object sender, EventArgs e)
   {
       if (!IsPostBack && (Request.QueryString["post_id"] != null))
       {
           //First get the page size
           int pageSize = RadListView1.PageSize;
 
           //Then get the reply_id
           int replyID = int.Parse(Request.QueryString["post_id"]);
 
           int iPage = 1;
           int iPageElementCount = pageSize;
 
           foreach(forumPost oPost in odsForumPosts.Select())
           {
               if(oPost.ID == replyID)
               {
                   RadListView1.CurrentPageIndex = iPage;
                   return;
               }
               iPageElementCount--;
               if(iPageElementCount == 0)
               {
                   iPage++;
                   iPageElementCount = pageSize;
               }
           }
       }
   }

The problem I seem to have is that even after setting CurrentPageIndex, the page doesn't change.

Any ideas?

Thanks!
mitch
Pavlina
Telerik team
 answered on 28 Feb 2013
1 answer
101 views
Hi,

I am trying to create a Org Chart Webpart in Sharepoint 2010 using RadOrgchart, I am not getting errors but it doesnt display anything in teh page. I just see a bank Page. Can someone please help me with this?

Here is the code.

  protected override void CreateChildControls()
        {
            base.CreateChildControls();
        }

        protected override void OnInit(EventArgs e)
        {
            Page.Init += delegate(object sender, EventArgs e_Init)
            {
                if (ScriptManager.GetCurrent(Page) != null)
                {
                    Page.Items.Remove(typeof(ScriptManager));
                    scriptManager = new RadScriptManager();
                    scriptManager.ID = "ScriptManager";
                    this.Page.Items.Add(scriptManager.GetType(), scriptManager);
                    this.Page.Form.Controls.Add(scriptManager);
                }
            };

            CreateOrgChart();       
            base.OnInit(e);
        }


        private void CreateOrgChart()
        {
            DataTable oData = GetOrgData();
            RadOrgChart oOrgChart = new RadOrgChart();
            oOrgChart.DataSource = oData;
            oOrgChart.DataFieldID = "NetworkID";
            oOrgChart.DataFieldParentID = "ManagerID";
            oOrgChart.DataTextField = "FullName";
            oOrgChart.DataBind();
            this.Page.Items.Add(oOrgChart);
        }
Plamen
Telerik team
 answered on 28 Feb 2013
14 answers
317 views
Hi telerik team,

while exporting telerik grid to excel, i m getting internet explorer can't download Filename from the sitename alert box is coming if prefix contains https://.   but for  http:// it's exporting fine , hope i need to configure some setting in IE browser please give those steps.

Thanks for any help.
Pavlina
Telerik team
 answered on 28 Feb 2013
4 answers
162 views
Hi,

I was wondering if it's possible to do something like this using the TriState checkboxes.

Let's say I have this specific tree, no more than these two levels :
(_) Group 1
   +------- [_] Item 1 
   +------- [_] Item 2
   +------- [_] Item 3
   +------- [_] Item 4
(_) Group 2
   +------- [_] Item 5
   +------- [_] Item 6
   +------- [_] Item 7
   +------- [_] Item 8

Case:
A user could chose one to many items from group 1, or one to many items from group 2. But when they check the group 2 or the items 5 to 8, all the items from group 1 get unckecked.  Or when they check group 1 or any item from 1 to 4, all items from group 2 gets unchecked.

Can this be done easely or I have to catch some client event and program all the JavaScript manually ?

Also, is it possible to have a multi-column items ?

Kind regards,

Michel

Miky
Top achievements
Rank 1
 answered on 28 Feb 2013
2 answers
106 views
Hello,

How can we check if the currently selected view of Radscheduler is Day view using JavaScript? Can anyone provide the JS code to check this condition?

Thanks,
Teena
Princy
Top achievements
Rank 2
 answered on 28 Feb 2013
2 answers
1.1K+ views
I have a old project (from 2010) which is having "Telerik.Web.UI.dll" in the bin folder.  Is there any way to identify if that dll is from licensed version of product or it is a trial version ?

Thanks,
Bhimraj
Bhimraj Ghadge
Top achievements
Rank 1
 answered on 28 Feb 2013
1 answer
45 views
Hello, I was having a strange problem in which RadAutoCompleteBoxes within a FormTemplate within a RadGrid were not rendering properly on first load.  When clicking edit on a particular row and the edit popup came up, the autocomplete control would simply not appear (though I could see it in the rendered HTML).  Oddly, if I cancelled the edit modal and clicked edit again, the autocomplete appeared just fine.

I was able to fix this by adding a DOCTYPE specification on the page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Unfortunately, after applying this DOCTYPE setting my RadTextBox controls now resize on hover.  I removed and reapplied the DOCTYPE a few times to make sure that this was the cause of the resizing behavior.  Setting EnableSingleInputRendering="false" reduced the effect, but the height and width seem to increase by about a pixel or so on hover.  Removing the DOCTYPE fixes the resizing problem, but then my autocomplete is broken again.

Any help on this matter would be greatly appreciated.
Galin
Telerik team
 answered on 28 Feb 2013
1 answer
145 views
Hi,

Is it possible to access a Tab in cs page based on the URL to which its pointing? To make the requirement more clear, I have few tabs in my page which got different NavigateUrl values. Based on this value I want to access one particular tab at the server side?

Thanks,
JC.
Princy
Top achievements
Rank 2
 answered on 28 Feb 2013
10 answers
480 views
Hello,

I just had a look at the PivotGrid control - so far it looks quite good. My question is: How can I display data in the Grid that comes from a Sql Server Analysis Services cube?

Thanks for your reply!
Radoslav
Telerik team
 answered on 28 Feb 2013
3 answers
120 views
I need to implement RadGrid with GridAttachmentColumn that is using EntityDataSource. Database schema is like: DocumentID (PK, int), DocumentName(varchar(50)), DocumentDescription(varchar(255)), DocumentData(varbinary(max)). Now, is there an example apart from THIS one, that describes how to use GridAttachmentColumn? I was following this example and unfortunately couldn't get it to work. It seems a bit confusing. Is it possible to use one entity datasource for both file info and file binary data? Means, is it possible to use only one EntityDataSource for CRUD operations with table definition given above?

Thanx
asimptota
Top achievements
Rank 1
 answered on 28 Feb 2013
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?