Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
93 views
Hello,
I am using the RadDataPager to page thorugh what is essentially a home-grown control that does not support databinding. Everything works perfectly though and I am able to Page properly, except for changing the size of the page. If I change the size of the page I get the correct page size reflected on the server-side properties. However, the issues comes when I page forward or backwards. The datapager will default to the page size being 10. I understand that the pager uses the get method to move forwards and backwards so I am unable to persist the changed page size in the viewstate. Is there any way to force the pager into using a POST method or is there a way to have the control pass the page size as a querystring variable similar to the SEOPagingQueryPageKey?  Other than this the datapager works beautifully with my non-databound control. I could resort to re-writing the URL once the PageSizeChange event is captured, but am trying to avoid that if possible.

Best Regards,
Mark Fitzpatrick
Mark Fitzpatrick
Top achievements
Rank 1
 answered on 09 Mar 2011
0 answers
100 views
I'm adding  nodes to the treeview at page load. Also at the same time I am adding a Label and a DropDown control to the node.

I want to disable the DropDowns for certain nodes  based on what node was checked. The Error I'm getting is :
"Object reference not set to an instance of an object."

This is because the the TreeView1.Nodes(0).Nodes(i).Count is 0. But it shouldn't be.

Does anyone know what I'm doing wrong here?


Heres how I am creating the nodes:
            For i As Integer = 0 To DsStateDistrictID.Tables(0).Rows.Count - 1
                Dim treeNode As New Telerik.Web.UI.RadTreeNode(DsStateDistrictID.Tables(0).Rows(i).Item("DistrictName").ToString)
                treeNode.Value = DsStateDistrictID.Tables(0).Rows(i).Item("StateDistrictID").ToString
                treeNode.Checkable = True

                'Add Label with StateDistrict Name to Node
                Dim lbl As Label = New Label
                lbl.Text = DsStateDistrictID.Tables(0).Rows(i).Item("DistrictName").ToString
                lbl.ID = "lbl" & DsStateDistrictID.Tables(0).Rows(i).Item("StateDistrictID").ToString.Trim
                treeNode.Controls.Add(lbl)

                'Add Color DropDown to Node
                Dim ddColor As DropDownList = New DropDownList
                ddColor.ID = "dd" '& DsStateDistrictID.Tables(0).Rows(i).Item("StateDistrictID").ToString.Trim
                ddColor = BuildColorDropDown(ddColor)
                treeNode.Controls.Add(ddColor)
                TreeView1.Nodes(0).Nodes.Add(treeNode)


            Next


        End If


Heres how I am trying to disable the drop down list:
For i As Integer = 0 To TreeView1.Nodes(0).Nodes.Count - 1
                    Dim StateDistrictID As String = TreeView1.Nodes(0).Nodes(i).Value.ToString.Trim
                    Dim ddColor As New DropDownList
                    ddColor = CType(TreeView1.Nodes(0).Nodes(i).FindControl("dd" & StateDistrictID), DropDownList)
                    ddColor.Enabled = False
Next
Brad
Top achievements
Rank 1
 asked on 09 Mar 2011
1 answer
109 views
Hello,

I have a Horizontally split Splitter (header, content) and then the content is a vertically split Splitter (LeftNav, MainContent).
I have the MainContent RadPane set to scroll in both directions and I have followed the directions of setting the style of html, body,form to height:100% and height=100% down the hierarchy to the pane.

Inside the MainContent RadPane I have a RadGrid that is very long and therefore causes the RadPane scrollbars to show. Everything works until I scroll down and select a row in the RadGrid. Then, depending on how far down I have scrolled I get everything on the screen shifted upward. In the worst case, the screen appears to be completely blank (no content, no scrollbars). When I have scrolled just one page down and then select a row, then everything on the screen appears to have been painted off by the amount of the scroll down. For example, the header is missing and the scrollbar only goes down 2/3 of the screen.

Any ideas what is happening?

Anne
Anne Chinn
Top achievements
Rank 1
 answered on 09 Mar 2011
4 answers
88 views
I have been trying to get the RadRotator images to display in Mozilla Firefox 3.6 but it doesn't show anything, just the background color.  Is there any solution to this problem?
Brett
Top achievements
Rank 1
 answered on 09 Mar 2011
11 answers
158 views
I tried to mimic the example here:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx

However I am unable to get the tooltip to pull in the data from the event item. Can someone fill me in on how that info is passed to the class? Maybe I have a spelling error or something.

It works if I hard code the text as such:

protected

 

 

override void OnPreRender(EventArgs e)

 

 

{

 

 

 

base.OnPreRender(e);

 

 

StartingOn.Text =

 

"Start Date HERE"; //apt.Owner.UtcToDisplay(apt.Start).ToString();

 

FullText.Text =

 

"Description Here<br /><br /><br />"; //apt.Subject;

 

}

Otherwise I get a JS error.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; BRI/1; .NET4.0C; .NET4.0E)
Timestamp: Tue, 22 Feb 2011 23:02:54 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/calendar/ScriptResource.axd?d=PeJmTGtbo6emTCMAFGjoVIZNSw0D1j6wp348ikmvclZFjWaJlpExLMpCLhd9-V5RTYDkwGS4vY5sCHAddiMlIhhTtgF_xtflgwD7pz3oq-dsmru87Akfq0gE17iRhBAnYH6LVvCzb_t115UFLRqJSGUkW2V_nRmPubJqQpIByqJPzK9K0&t=5c2f384e

 

Veronica
Telerik team
 answered on 09 Mar 2011
3 answers
160 views
Hello,
I'm using a WebUserControl to edit/insert data into my radgrid. I experience some inconsistent behavior when I tried to access the data inside my WebUserControl. The way I access the data  is

GridEditFormItem editedItem = (GridEditFormItem)_radgNiv3.MasterTableView.GetItems(GridItemType.EditFormItem)[0];
 
if (editedItem.CanExtractValues)
{
       UserControl userControl = (UserControl)editedItem.FindControl(GridEditFormItem.EditFormUserControlID);
...

The update/insert operation can be initiate from different control in the page, so it doesn't always go through the ItemCommand event of my radgrid. Every control that can initiate an update/insert is using ajax. Here's a part to illustrate the situation

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="_lbtnAdd">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="_radgrig"
                    LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
...

_lbtnAdd is a LinkButton. If _radgrig is in edit mode and the user click on _lbtnAdd, I'm suppose to check for modification than act accordingly. But, code that work in other situation, doesn't work here, editedItem.CanExtractValues = false. Of course, if I tried to find my form, it stays null. Looking inside of editedItem, I can see that there is an exception inside the object:
EditManager   'editedItem.EditManager' threw an exception of type 'Telerik.Web.UI.GridBindingException'   Telerik.Web.UI.GridEditManager {Telerik.Web.UI.GridBindingException}

Going deeper, reveal:
base   {"The current EditFormType does not support the requested editing capabilities."}   System.Exception {Telerik.Web.UI.GridBindingException}

This one is driving me nuts since it come and go. How can I make sure to always be able to access the data? What can cause the exception? Is it related to event order? Please help!!!

Thank you for your time,
Louis-Philippe
Louis-Philippe
Top achievements
Rank 1
 answered on 09 Mar 2011
1 answer
58 views
I have the FileExplorer working perfectly in IE 8, but in both Chrome and Firefox the folders display fine, but the files do not display at all. Can anyone give me a work around for this? Thanks.
Dobromir
Telerik team
 answered on 09 Mar 2011
1 answer
119 views
I have the Image Manager ViewPaths set to a Virtual directory.  When I load the Rad Editor I can see the contents of that folder, however, if I select an image I can not see that image in the right most panel.  Further, if is insert that image into my document.  It fails to render.  When I check the html I can see that an image was inserted, and that the path is correct.  However, the image fails to appear.  If I navigate directly to the image in my browsers address bar it appears. 

What could be the issue?

See attached screenshots.
Rumen
Telerik team
 answered on 09 Mar 2011
1 answer
133 views
Hi There,

Is is possible to use the RadRotator in LoadOnDemand mode when the data comes from an XML file? I have an xml file with approx 200 images listed. I want users to be able to scroll one image at a time but naturally I don't want to have to load 200 images when the rotator loads, I want to be able to load images one at a time.

Any pointers to pull this off, preferably without having to write a web service, would be greatly appreciated.

Regards,
Phill
Niko
Telerik team
 answered on 09 Mar 2011
1 answer
80 views

Hi i am creating Radeditor dynamically (on the fly) in codebehind. Which is working fine in IE. But i am facing a strange issue in firefox, where only the first radeditor is loaded correctly rest of the Radeditors are not allow to edit but it;s not giving any javascript error and all the tool menu items are loaded.

 

Kindly help..

 

Thanks in advance.

Rumen
Telerik team
 answered on 09 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?