Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
98 views
I have a LinqDataSource and a RadComboBox set up, so that the combobox shows the query results on demand. The table has 1000 or so rows and it takes a lot of time to load that page because for some reason RadComboBox keeps loading everything.

So what is wrong with the code below? I have nothing regarding cbAuto in the code-behind file
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="Webshop.Entities" EntityTypeName="" OrderBy="Name, FromDate, TillDate" Select="new (AutoID, Name, FromDate, TillDate, Comment)" TableName="Autos"></asp:LinqDataSource>
 
 
<telerik:RadComboBox ID="cbAutos" runat="server" Width="900px"
                            DropDownWidth="900px" EmptyMessage="Chosse an autotype" HighlightTemplatedItems="True"
                            Filter="Contains" LoadingMessage="Loading..." DataTextField="Name" MaxHeight="300px" DataValueField="AutoID" ShowDropDownOnTextboxClick="False" DataSourceID="LinqDataSource1" EnableLoadOnDemand="True" EnableVirtualScrolling="True" ItemsPerRequest="100">
                            <HeaderTemplate>
                                <table style="width: 850px;">
                                    <tr>
                                        <td style="width: 300px;">Autotype</td>
                                        <td style="width: 100px;">Date (from)</td>
                                        <td style="width: 100px;">Date (till)</td>
                                        <td style="width: 150px;">Comment</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 850px;">
                                    <tr>
                                        <td style="width: 300px;">
                                            <%# DataBinder.Eval(Container.DataItem, "Name")%>
                                        </td>
                                        <td style="width: 100px;">
                                            <%# DataBinder.Eval(Container.DataItem, "FromDate")%>
                                        </td>
                                        <td style="width: 100px;">
                                            <%# DataBinder.Eval(Container.DataItem, "TillDate")%>
                                        </td>
                                        <td style="width: 150px;">
                                            <%# DataBinder.Eval(Container.DataItem, "Comment")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>
Nencho
Telerik team
 answered on 04 Feb 2013
1 answer
114 views
Do the values of MaxFileSize and MaxRequestLength have to match for RadUpload?

Does the value set for MaxRequestLength supersede MaxFileSize to support uploading of large files?

Also does anyone know where the temp files are stored upon upload? Some have said Windows\Temp\.  Are files just stored in the root of that or in a specific folder?  What permissions should it have?
Kate
Telerik team
 answered on 04 Feb 2013
1 answer
158 views
Hi,
i load a image asp into radlistview, this is code:
<asp:Image ID="Image1" runat="server" ImageUrl='<%# CType(Container.DataItem, PropertyUtente).imageprofile%>' Height="125px" Width="110px"/>

now i would to load the value

CType(Container.DataItem, PropertyUtente).imageprofile

into div so i can to create to div the round edges with css.
But i dont know to load this code "CType(Container.DataItem, PropertyUtente).imageprofile" into div.

i load the records into radlistview from code behind with this code:

Dim lista As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
RadListView1.DataSource = lista
RadListView1.DataBind()


Please help me


Marin
Telerik team
 answered on 04 Feb 2013
5 answers
351 views
Hi,

I am running telerik asp.net ajax 2012.2.912.40 for VS 2012.
I see lots of documentation for RadTreeView that does not apply to the version I
am working with.

I need to either use ImageURL to show a line or a method call to show
this line.
Have already tried .Toggle(). Don't wan't to show a '-' image.

Where are the /TreeView images located and/or what method can I call
to show the line?
Kate
Telerik team
 answered on 04 Feb 2013
4 answers
238 views
Hello,
Would you please tell me why the arrow icons before the nodes in right to left mode are reversed.
for example in this page :
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/righttoleft/defaultcs.aspx
If my expectations are wrong please tell me :) because I expect a reverse arrow in right to left mode.

and another question why don't you let the user set those images in RadTreeView level and not in Node level.
for example Microsoft TreeView control can be customized by setting ExpandImageUrl, CollapseImageUrl, NoExpandImageUrl properties ( as described here) . Its very clear and easy to understand. Why haven't you implemented something like that.

Excuse me for being direct and frank.

Thank you.

MahMah
Top achievements
Rank 1
 answered on 04 Feb 2013
2 answers
466 views
Hi,

I have a grid with auto generated columns like this .
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" ShowFooter="True"
               DataSourceID="SqlDataSource1" GridLines="None">
               <headercontextmenu>
               </headercontextmenu>
               <clientsettings>
                   <Scrolling AllowScroll="True" UseStaticHeaders="True" />
               </clientsettings>
               <mastertableview datasourceid="SqlDataSource1">
                   <CommandItemSettings ExportToPdfText="Export to PDF" />
                   <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                       <HeaderStyle Width="20px" />
                   </RowIndicatorColumn>
                   <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                       <HeaderStyle Width="20px" />
                   </ExpandCollapseColumn>
                   <EditFormSettings>
                       <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                       </EditColumn>
                   </EditFormSettings>
               </mastertableview>
               <filtermenu enableimagesprites="False">
               </filtermenu>
           </telerik:RadGrid>

I have total 20 columns in display. I would like to change 18  boundcolumns to hyperlink columns ..


I know how to change one boundcolumn  to hyperlink column like this ..

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
        Try
             If TypeOf e.Item Is GridDataItem Then
                Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
                Dim hl As New HyperLink()
                hl.NavigateUrl = "Default.aspx?id=1"
                hl.Text = item("TaskReasonCategory").Text
                item("TaskReasonCategory").Controls.Add(hl)
            End If
 
        Catch ex As Exception
            Throw ex
        End Try
    End Sub


From above code is only for one column "TaskReasonCategory",i,.e hard coded.. But how to change 18 columns without mentioning item("ColumnName").

Please help me on this ...

Thank you in advance..
Madhu Palakurthi
Top achievements
Rank 1
 answered on 04 Feb 2013
2 answers
145 views

how to find treelist nestedlevel count in
See the image that example have four level that i want to find in itemdatabound

protected void RadTreeListWork_ItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
        {
            if (e.Item is TreeListDataItem)
            {
                TreeListDataItem item = (TreeListDataItem)e.Item;


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 04 Feb 2013
1 answer
114 views
Hi, how do I remove the border around the root items on the MetroTouch skin? Also, I can't seem to change the forecolor of the menu. The white font is not visible on my custom gradient background.
Shinu
Top achievements
Rank 2
 answered on 04 Feb 2013
10 answers
353 views
Hello,
       I am using radgrid and it is ajaxified by RadAjaxManager.I am using the exporttoexcel command item for exporting selected records from grid.After exporting the selected records I want to delete them from the grid.They are getting deleted from the DB but the grid is not getting refreshed.The grid.Rebind() is not working.Please guide me regarding this.

Thanks & Regards,
Manaswinee
Daniel
Telerik team
 answered on 04 Feb 2013
1 answer
74 views
Dear Reader,

Thanks for the reply. One more question.

I have HTML tags in my cell of RadGrid along with other data in my RadGrid

For eg. My one of the cell in radgrid contains this value "<html><tr><td>1 row</td></tr>\r\n<tr><td>1 row</td></tr> \r\n</html>".

Now when I call RadGrid.ExportToExcel() method. This data is not getting exported to Excel. All the rows above this cell are getting exported but this row and the rows following this row is not getting exported.

Please help !!!
Daniel
Telerik team
 answered on 04 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?