Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
<telerik:RadComboBox ID="ddlFolders" runat="server">
                            <Items>
                            <telerik:RadComboBoxItem  />
                            </Items>
                            <ItemTemplate >
                               <uc1:PhotoMove ID="PhotoMove1" PhotoID='<%# ((GridItem)Container).ItemIndex.ToString() %>' runat="server" />
                            </ItemTemplate>
                            </telerik:RadComboBox>

I am trying to load a user control inside the itemtemplate of a combobox. The combox is inside a radGrid. The user control needs the PhotoID:
'<%# ((GridItem)Container).ItemIndex.ToString() %>'

However, this is not allowed and throws this error:
error CS0030: Cannot convert type 'Telerik.Web.UI.RadComboBoxItem' to 'Telerik.Web.UI.GridItem' ---> System.Web.HttpParseException:

What is an alternative way to pass a dynamic id to a nested user control that is inside a combobox which is inside a radgrid?

Thanks!
Yana
Telerik team
 answered on 03 Aug 2010
3 answers
117 views
Is there a way of firing a query that will look at the recurrence rule and return an item based on a point of time.

Basically We have an online radio schedule which we use radscheduler for, but the broadcast software needs to be able to execute a query on the hour to find out what to air next. At present we are having to maintain 2 tables, it would be great if we could just ask the radschedueler db what now.

Please help

David
Gabe Silvarajoo
Top achievements
Rank 2
 answered on 03 Aug 2010
7 answers
306 views

I am trying to bind a rotator control to an xml document (type=System.Xml.XmlDocument) returned by a method using the rotator’s datasource property:

RadRotator1.DataSource = object.GetXML()
RadRotator1.DataBind()



This is xml returned by the above method:

<Participants>
    <Participant>
        <FullName>John Smith</FullName>
        <PayAmount>4611.00</PayAmount>
    </Participant>
</Participants>


And this is the rotator:

                <telerik:RadRotator ID="RadRotator1" runat="server" RotatorType="AutomaticAdvance" FrameDuration="4000" ScrollDirection="Down" ScrollDuration="500" Height="120px" Width="300px">
                    <ItemTemplate>
                        <div>
                            <div><%# XPath("FullName") %></div>
                            <div><%# XPath("PayAmount") %></div>
                        </div>
                    </ItemTemplate>
                </telerik:RadRotator>


The code runs fine, but nothing displays on the page. What am I doing wrong?

Thanks for your help.

Ivan
Fiko
Telerik team
 answered on 03 Aug 2010
1 answer
60 views
Hi 

I have a standard scenario where I have a Tabstrip and Multipage on a page, the Tabstrip controls the navigation between the multipageviews - all working nicely great!

Inside one of my pageviews I have a RadChart, this chart has drilldown functionality wired up to onClick event of the chart bars, what should happen on clicking a bar it should hide the chart and display a panel (standard asp.net panel) with some more detailed information.

Simplified version of my event handler:

protected void RadChart1_OnClick(object sender, ChartClickEventArgs e)
{
   RadChart1.Visible = false;
   Panel1.Visible = true;
}

However Panel1 does not appear, despite being set to visible. I have tried changing the Multipageview property to RenderSelectedPageOnly="true" as I can see it may have something to do with how controls are being rendered but I get the same effect.

Any ideas?
Yana
Telerik team
 answered on 03 Aug 2010
1 answer
153 views
I have been asked by my Client to give him the ability to offer to his Customers the "Cool" DHTML feature of having the Column Headers for the RadGrid move down with the rows as the records are scrolled down the page. This will always make visible the Column names even when the records displayed exceed the page view.

Any ideas will help. He seams to believe the RadGrid has a setting that does this but I have been unable to find it by any name that I understand.

Thanks
Pavlina
Telerik team
 answered on 03 Aug 2010
1 answer
95 views
Hello Sir,

I have Grid in my project, as i have put grid in panel
and Both height is 100%,
as its display in IE Perfect,
but not display proper in firefox,
i am sending you Snapshot of Grid as it look in FireFox

So please tell me Solution of this problem
Thanks
Pavlina
Telerik team
 answered on 03 Aug 2010
1 answer
89 views
Hello!

I had an issue which would cause exceptions when I attempted to collapse a group within a RadGrid. (Clicking the little ^)
This issue seemed to stem from the fact I had set the RadGrid datasource to a DataTable. After setting the RadGrid DataSource to an SQLDataSource I had no more exceptions and everything collapsed nicely. :)

I was retrieving the innitial DataTable during Page_Init and then setting RadGrid datasource to the DataTable.
Once I switched to using an SQLDataSource I set the SelectCommand of the SQLDataSource during Page_Init.

Was I doing something wrong and managed to indirectly fix it by using an SQLDataSource? Or is this a possible bug within the Telerik software?

Thanks,
Ben.
Martin
Telerik team
 answered on 03 Aug 2010
1 answer
110 views
Hello:

I jsut updated a project that uses RadGrid to VS2010 and the latest version of the ASP.NET controls. For some reason the column headers are not lining up with the data columns on the new page. Search.png shows the old search page, and search2.png shows the new search page with the misaligned columns.

Has anyone seen this and/or know how to fix it?

John.
Pavlina
Telerik team
 answered on 03 Aug 2010
2 answers
121 views
Hello,
I have been binding the GridDropDownColumn like this:
on the aspx page
    <telerik:GridDropDownColumn DataField="FieldId" HeaderText="Field"
                                        UniqueName="Fieldld1"  ListTextField="FieldName"
                                        ListValueField="FieldId" >
                                            </telerik:GridDropDownColumn>

in the vb.net code behind

  Protected Sub rg_CreateColumnEditor(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCreateColumnEditorEventArgs) Handles rg.CreateColumnEditor
        If TypeOf e.ColumnEditor Is GridDropDownColumnEditor Then
        Dim dt As DataTable
       Select Case e.Column.UniqueName.Trim.ToLower
        Case "fieldid1"
       dt = SqlHelper.ExecuteDataTable('GET FieldId,FieldName from data" )
      End Select
       CType(e.ColumnEditor, GridDropDownColumnEditor).DataSource = dt    
End If
    End Sub        
     
With Q2 the dropdown columns of the grid are blank when viewed (not in edit mode), but the correct item is selected in the dropdown if the row is edited.
It worked (displayed text item from the dropdown) up until I upgraded the to 2010 Q2 and if I paste the 2010 Q1 sp2 dll back into the bin directory it works again.  The simple answer is to stay with 2010 Q1 SP2 but I don't like to fall too far behind with versions.
Any help would be greatly appreciated.
Thanks in advance,
Jeff

Jeff
Top achievements
Rank 2
 answered on 03 Aug 2010
4 answers
59 views
We're experiencing a significant increase in the CPU usage of our website when we upgrade from the 2090.3 version of the Telerik controls to the latest 2010.2 release.  Using a performance analysis tool (JetBrains' DotTrace) we were able to compare performance with these two versions of the Telerik controls and identified that the increase in CPU time is occuring down in the guts of the RadGrid control's DataBind method.

Has anyone else experienced a similar behavior on their websites?  Has there been a change in the default behavior for the Ajax RadGrid control in this latest release?   It looks like the great majority of the CPU increase is coming from the following function call:

         DataBind ->...->get_ResolvedDataSource->PrepareDataSource->get_FilterExpression->GetString()

We aren't configuring any type of explicit Filtering on our RadGrid controls.  In our code we are binding to a DataSet, with most of the data in the dataset being string values.   There haven't been any other changes to our code..  We are able to reproduce the problem simply by swapping out the referenced version of the Telerik controls.

Is this a bug in the Telerik controls?   Any ideas what might have changed between these releases that would account for this change in performance?

Any help would be greatly appreciated!!
     
Sandra McLeod
Top achievements
Rank 1
 answered on 03 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?