Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views
When you export to Excel, or Word, even on your web site demo, all you get is HTML?

Word and Excel can, poorly, deal with this, but it is ugly.
 
In Word you get the non-functioning page links,

In Excel you get a warning about "...different format than specified by file extension..." and "...Verify that the file is not corrupted..."

On our web page, we have check box, edit, delete, hidden ID, etc. columns and these come across as columns
Vlad
Telerik team
 answered on 26 May 2008
1 answer
87 views
I have a custom column header template for my RadGrid. Does anyone know how to make the header look like the native column headers? This is what my header template looks like:

            <Columns>
                <telerik:GridTemplateColumn>
                    <HeaderTemplate>
                        <center>
                        <table id="ColumnSortHeader" cellspacing="1" cellpadding="1" border="0">
                            <tr align="center">
                                <td>
                                    <a href="#">Price Low to High</a>
                                </td>
                                <td>
                                    <a href="#">Price High to Low</a>
                                </td>
                                <td>
                                    <a href="#">Name A-Z</a>
                                </td>
                                <td>
                                    <a href="#">Name Z-A</a>
                                </td>
                            </tr>
                        </table>
                        </center>
                    </HeaderTemplate>
                </telerik:GridTemplateColumn>  
            </Columns>   

What I wanted to do is make the cells look like the skin set for the RadGrid. Is this possible?

Shinu
Top achievements
Rank 2
 answered on 26 May 2008
2 answers
132 views
Hi all,
I have a RadGrid inside a RadMultiPage (part of a RadTab), I got it ajaxified by adding RadAjaxManagerProxy (with RadAjaxManager in my Master page) to it, and set the AjaxUpdatedControl' ControlID to be my RadGrid. Ajax is working for paging, sorting, etc... But for filtering, it causes postback. Any idea why?

Thanks,
Kenny.
Konstantin Petkov
Telerik team
 answered on 26 May 2008
1 answer
159 views
i have a grid with 2- level  hierarchy. and i set 

CommandItemDisplay

="Top".

now problem is, for one of my columns i have to select the values of that column from a list control that will get the data from another sqldatasource.  how do i do that. because when i click on add new record, it shows me just the name of  those columns that appear in the grid with a textbox.

Shinu
Top achievements
Rank 2
 answered on 26 May 2008
5 answers
238 views
Hello all,

I want to have a label to display the grid row count and the columns sorts. I have multi sorting in the grid and by default it is sorted with 3 colmns and the user can still sort other column but I want the label to keep changing everytime the user is sorting the grid with the sequence the grid is sorted with.

Thank you for your help,
Shehab
Shinu
Top achievements
Rank 2
 answered on 26 May 2008
1 answer
103 views
How can i make a web page containing a "FORUM" using rad grid?
Is it possible?

If yes,
can you show me how,
and can you give me some codes to make this web page work properly.

thanks.,
Shinu
Top achievements
Rank 2
 answered on 26 May 2008
8 answers
190 views
I have problem with using the RadContextMenu with Rad Grid. I was using the Radgrid before with the Export Facility but after adding the Rad Menu it killed the export functionality . Now when i hit Export it shows the same grid with now buttons and does not ask to open or save the excel file.

Thanks
 
Ricky
Top achievements
Rank 2
 answered on 25 May 2008
1 answer
74 views
Hi,

I've got a panel and on postback (callback actually) I clear the panel, create a new RadChart and add it to the panel.

This works great on the first callback but on every subsequent callback the chart does not change.  Its as if its cached?  Is there anyway that I can 'invalidate' the chart?

Thanks

Guido Tapia

Guido Tapia
Top achievements
Rank 1
 answered on 25 May 2008
1 answer
72 views
Hi there,

Just a quick question about the image manager in the rad editor control. We have added around 20 images but the images at the bottom of the list are inaccessible because there are no scrollbars. Am I missing something? Is there a way to re-size the image manager window or get scroll bars in the image list?

Cheers,
Jane.
Rumen
Telerik team
 answered on 25 May 2008
1 answer
161 views

I have a dropdownlist in my EditFormTemplate. In the code for OnItemCreated  I have the following:

If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then
    'create oDataTable
    Dim ddl As DropDownList = TryCast(e.Item.FindControl("ddOfficeID"), DropDownList)
    ddl.DataSource = oDataTable
    ddl.DataTextField = "OfficeName"
    ddl.DataValueField = "OfficeID"
    ddl.DataBind()
End If

In the code for OnUpdateCommand I have the following:

Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim PersonnelID As String = editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("PersonnelID").ToString()
'get other values...
Dim OfficeID As String = (TryCast(editedItem.FindControl("ddOfficeID"), DropDownList)).Text
strSQL = "UPDATE tPersonnel SET [OtherValues] = '" & OtherValues& "', [OfficeID] = " & OfficeID & " WHERE ([PersonnelID] = " & PersonnelID & ")"
'update database...

So far my dropdownlist is bound when the grid goes into edit mode and the database is updated when the Update button is clicked. 

My only problem is that when the edit form is loaded the dropdownlist does not reflect the original selected value. When I tried adding  SelectedValue='<%# Eval("OfficeID")%>'  to my dropdownlist, it generates the following error:

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

Since the dropdown is being bound on ItemCreated, I'm confused by that error. I've seen some other threads about this, but frankly they were over my head. Can someone explain in super simple terms how to set the selectedvalue? 
 
Thanks! 

Missing User
 answered on 25 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?