Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views
Hi,

I have a radcombobox which gets bind on the prerender event of the update panel which is its parent.

I have these properties set on the combobox
EnableLoadOnDemand="True"
ShowMoreResultsBox="True"
MarkFirstMatch="true"
EnableVirtualScrolling="true"
EmptyMessage="--- Choose ---"

After the initial load of the combobox the showmoreresultsbox does not show anything but just a dropdown arrow. After i type something in the combobox and when it filters it shows "Items 1-2 out of 2"

How can i get the text on the showmoreresultsbox on the initial load. I have these methods in my code behind file:

    Private Function GetData(ByVal test As String) As DataView
        Dim NewDataview As DataView

        NewDataview = DataViewTest

        NewDataview.RowFilter = "ElementName LIKE '" + test + "%'"

        Return NewDataview
    End Function

    Private Shared Function GetStatusMessage(ByVal offset As Integer, ByVal total As Integer) As String
        If total <= 0 Then
            Return "No matches"
        End If

        Return [String].Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", offset, total)
    End Function

    Protected Sub ddlElements_ItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles ddlElements.ItemsRequested

        Dim data As DataTable = GetData(e.Text).ToTable

        Dim itemOffset As Integer = e.NumberOfItems
        Dim endOffset As Integer = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count)
        e.EndOfItems = endOffset = data.Rows.Count

        ddlElements.Items.Clear()


        For i As Integer = itemOffset To endOffset - 1
            ddlElements.Items.Add(New RadComboBoxItem(data.Rows(i)("ElementName").ToString(), data.Rows(i)("GroupID").ToString()))
        Next

        e.Message = GetStatusMessage(endOffset, data.Rows.Count)
    End Sub
Ivana
Telerik team
 answered on 05 Jun 2012
2 answers
129 views
Hi,
I am using latest Telerik.Web.UI.dll (version 2012.1.501.40)
I have a RadScheduler and i set Height=100%
<telerik:RadScheduler ID="RadScheduler1" runat="server" Height="100%" OverflowBehavior="Scroll">
</telerik:RadScheduler>

the scroll bar is showing on IE8
but not showing on Chrome and Safari Browsers.
Am i missing anything?
Please find the screenshot attachments.

Ivana
Telerik team
 answered on 05 Jun 2012
5 answers
144 views
I have inserted a scheduler within a multipage which is associated with the radtabstrip.

Although the scheduler will come on to the screen when I click on the second tab, the scheduler is only showing approximatley 100px of height, even though I have manually set the scheduler to have a height of 500px .  Because my document background is formated in grey I can see a large portion of white space where the whole scheduler should be being displayed(which would make up the 500px).

 When I click on the "24 hour" / "day" / "Month" views the scheduler then fills in the white space.

If I drag and drop the calendar out of the Multipage it works fine so is there a problem with the UI or is there further configuration that I am missing?

Thanks,

JK
Justin
Top achievements
Rank 1
 answered on 05 Jun 2012
3 answers
568 views
Hi Telerik,

In my case, I want to show or hide any rows by clicking the link in template column in rad grid, click '+' to show the current row and '-' to hdie the current row.  And whatever the user chooses show or hide, keep the column that contians sign '+' and '-' to re-show and re-hide the current row. ( the UI is as shown below) How to achieve it? Look forward to your reply.

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 05 Jun 2012
3 answers
352 views
We have a rather peculiar issue going on with the ajax loading panel.

First, the changes we did:

  • We have upgraded from Telerik Q3 2010 to Q3 2011
  • We have updated the solution from VS 2008 to VS 2010
  • We have also updated the project to use the .Net Framework version 4.0 from 2.0
  • The project is being published to a separate machine running on IIS 7 (previously was on IIS 6 on the same separate machine)
  • We are using a 64 bit application pool with integrated mode (previously was 32 bit classic mode)

When we run the aspx site from within Visual Studio, it works fine and the loading panel shows up as expected.

However when we publish to the other machine, that's when it looks odd.  The loading panel doesn't show at all (although the processing of the aspx page still appears to work).  Checking with fiddler also shows that the loading panel doesn't work (nothing is sent/received).

We have the following code in the aspx page:

<telerik:RadAjaxManager id="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnValidate">
                             <UpdatedControls>
                                   <telerik:AjaxUpdatedControl ControlID="divAll" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                               </UpdatedControls>
                </telerik:AjaxSetting>
           </AjaxSettings>
</telerik:RadAjaxManager>
 
 
<telerik:radAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" mindisplay="5000" ZIndex="10000">
     <asp:Image ID="Image2" runat="server" ImageUrl="../images/Loading3.gif" alt="loading..."  />
</telerik:radAjaxLoadingPanel>


We are not sure what else we might be missing?
Maria Ilieva
Telerik team
 answered on 05 Jun 2012
0 answers
57 views
I have an odd issue w/ my ajaxmanager - whenever it updates something, i get some odd text next to the controls I indicated that it updated  - attached is a screenshot.


what am I doing wrong?
Jeremy
Top achievements
Rank 1
 asked on 05 Jun 2012
1 answer
108 views
I have a page and clicking of a button opens a small RadWindow. Here the user makes some selections and clicks 'Generate' button. Now the server will start to stream a PDF file. Now radWindow.VisibleOnPageLoad = false does not work because the response stream is now PDF and not normal content type text/html

Is there a way to close the RadWindow in this case or is it a bug/limitation with Telerik RadWindow? 
Marin Bratanov
Telerik team
 answered on 05 Jun 2012
1 answer
107 views
Is the above possible ?

Essentially, i've got a collection of html anchor tags. I've set them to runat server and added their i'd to the target controls of the RadToolTipManager.

What i want to do is have each of these anchor tags cause an ajaxupdate request of the tooltipmanager and show the tooltip.
Each of the anchor tags has an id, which relates to an id in my database. I therefore want to query the database with this ID and pull out the appropiate information associated with the anchor tag.

The anchor tag enscapsulates an image, so if there's an easier way in which i should use a different control/element let me know.

Regards,

Alan
Marin Bratanov
Telerik team
 answered on 05 Jun 2012
3 answers
105 views
Hi,

I am trying to export the radgrid content to a pdf file. My grid has hierarchy data. In the PDF file, the header is getting attached in each page. How do i overcome this issue. I made the header not to show up for each level but irrespective of that i am seeing the header. Attached the file for reference. 

Regards,
Meenakshi Sekar. 
Andrey
Telerik team
 answered on 05 Jun 2012
5 answers
169 views
What I am trying to do is match the text of my grid field to my dropdownlsit field text, but it always gives me the follwoing error even though the text is in the item is in the dropdown list in the grid.  I am trying to match computer make and models that come up from and existing table to a new database.  for example.

Optiplex 755
Optiplex 760
Precision 2000
latitude 2400

In my dropdown inside my radgird these are all in there but when the match tries to happen it tells me they are not, it should nto be a case issue.

 <telerik:GridBoundColumn DataField="strSN" HeaderText="SN" />
                                <telerik:GridBoundColumn DataField="strComputername" HeaderText="NETWORK NAME" />
                                <telerik:GridBoundColumn DataField="strBrand" HeaderText="EXIST_MODEL" />
                                <telerik:GridTemplateColumn HeaderText="DB_Model">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlModel" runat="server" CausesValidation="false"></asp:DropDownList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>

Code to fill grid dropdown
Protected Sub myRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
       If (TypeOf e.Item Is GridDataItem) Then
           Dim item As GridDataItem = CType(e.Item, GridDataItem)
           Dim options As DropDownList = DirectCast(item.FindControl("ddlModel"), DropDownList)
           Dim field As String = e.Item.Cells(5).Text.ToString.ToLower
           sql = "Select dm.intModelId, m.strmake + ' ' + dm.strModel Model from Drat_Model dm INNER JOIN Drat_Make m on m.intMakeId = dm.intMakeId Order by strModel"
           buildDD(sql, options)
           'options.SelectedItem.Text = DirectCast(DataBinder.Eval(e.Item.DataItem, field).ToString(), String)
       End If
   End Sub



Error
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'optiplex 760'. 
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.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'optiplex 760'.
  
Source Error: 
  
  
Line 95: 
Line 96:             buildDD(sql, options)
Line 97:             options.SelectedItem.Text = DirectCast(DataBinder.Eval(e.Item.DataItem, field).ToString(), String)
Line 98:         End If
Line 99:     End Sub
  


but if I comment out and then populate it works and the Optiplex 760 is in the dropdownlist and is also the same as the field Exist_Model.
Shinu
Top achievements
Rank 2
 answered on 05 Jun 2012
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?