Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
91 views
In EnableLoadOnDemand mode, there are some instances where the control fails to perform the dropdown refresh callback. This causes the posted data to be unpredictable when compared to what the user sees or things he has posted.

To reproduce the problem (must be done exactly in this order):
    - type something that pulls up some list items
    - select item from list
    - click on textbox (all text should now be selected)
    - press <End> then <BackSpace>; alternatively selecting a text subset with <Shift-Arrows> and then <Del>; or even <Ctrl-A> and the <Del> 

In all these instances the callback does not occur as it should. 
The problems resulting from this bug are different depending if the MarkFirstMatch is True.

If True, the selected item ID is cleared but the returned Text is different than what is shown.
If False, the ID and Text from a previous callback (before the one that was missed) are returned which is expecialy bad when you have just cleared the dropdown and one is under the impression that nothing is selected.

I think fixing the missed callbacks will fix all these issues.
Bort
Top achievements
Rank 1
 asked on 09 Mar 2011
1 answer
140 views
I am using the combobox in EnableLoadOnDemand mode. The data in the drop down has three collums (ID, Name, Address). I set my default selected item like this:
 
Me.RadComboBox.SelectedValue = "9238"
Me.RadComboBox.Text = "Smith, Jones"

I happen to have 3 "Smith, Jones"  in my database each with different IDs. When I click on the drop down, the control is smart enough to get the 3 smiths matching the text in the dropdown but the selected item in the list is always the first one. The item with the 9238 ID happens to be the third item in the list so the default selection is invalid pointing to the wrong customer confusion my users. Is there a way to get the selected item in the drop down list to match the ID that I have set as the default starting value? It seems to me this should be a default behavior.
Bort
Top achievements
Rank 1
 answered on 09 Mar 2011
1 answer
115 views
Hi,

I have export some data from Telerik Grid to Excel, it's working fine(data are available in excel sheet) but when i open the excel i got an error (Please see). while trying to import the same excel sheet i got an error (External table is not in the expected format.)

Note: The other excel sheet (Not exported from telerik) is working fine while importing

Advance Thanks & Regards,
Bala
Daniel
Telerik team
 answered on 09 Mar 2011
1 answer
80 views
Hello there

I am unable to render the tagcloud in a repeater; it generates the following exception:

Exception type: NullReferenceException

Exception message: Object reference not set to an instance of an object.

at Telerik.Web.UI.RadTagCloud.BindToEnumerableData

I have added some code below to replicate. In this example I have bound the repeater to a simple list.



<%@ Page Language="VB" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script runat="server">
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
  
        If Not IsPostBack Then
              
            Dim oDatasource As New List(Of String)
            oDatasource.Add("Item 1")
            oDatasource.Add("Item 2")
            oDatasource.Add("Item 3")
            oDatasource.Add("Item 4")
          
            rp.DataSource = oDatasource
            rp.DataBind()
  
        End If
    End Sub
      
</script>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Repeater ID="rp" runat="server">
            <ItemTemplate>
                <telerik:RadTagCloud ID="RadTagCloud1" runat="server" Width="400px">
                    <Items>
                        <telerik:RadTagCloudItem Text="ASP.NET" Weight="12" />
                        <telerik:RadTagCloudItem Text="AJAX" Weight="134" />
                    </Items>
                </telerik:RadTagCloud>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
Pero
Telerik team
 answered on 09 Mar 2011
1 answer
87 views
Is there anything in the clientside api for adding and removing items?
Pero
Telerik team
 answered on 09 Mar 2011
2 answers
68 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
86 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
84 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
69 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
138 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?