Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
182 views
I have a radgrid and  I am populating the grid using data returned from a web service call (after massaging the data returned by WS)  A lot of records are returned from this web service calls. I would like to paginate it ,but paginating in the server side makes another call to WS, which I do not want.

On top of it, during post backs the gridItemCount is  set to the page size, though there are more records than the page size.

I would like to do some sort of pagination in the client side, where clicking on next/prev would just hide/show relevant pages. And when the page does a postback, I would like to "post" the entire grid instead of a portion of it. Is it possible ?
Nikolay Rusev
Telerik team
 answered on 14 Dec 2009
12 answers
557 views
Hello
I have a RadGrid with only one MasterTable.
The user can Update, Edit or Insert in this Grid.
When the user Edit a record, I would like to display a upload control to be able to upload the logo of the company and then save it to my table. Is it possible to have this as a gridbound column as I would like also that when the user click on Edit, it display the value that is already in the table..
Thanks in advance

And does it has a property where I could set the width of my controls in the edit part?
Thanks again

Sebastian
Telerik team
 answered on 14 Dec 2009
1 answer
86 views
Hello

We have a particular grid in our system where a user can say where the data comes from, they can choose a database or excel spreadsheet.

When the grid is bound they can choose which column they want to filter from a drop down and enter the filter in a textbox.
 string filterExpression; 
 filterExpression = "(" + list.SelectedItem.Value + " Like '%" + txt.Text + "%'" + ")"

Grid.MasterTableView.FilterExpression = filterExpression;

The grid is then rebound as usual.

This all works well when they choose a database as their datasource, but when an excel spread sheet is used it does not work.

Should the filter work on excel datasources? or from my code extract above can you see an obvious reason why it would not work?

Thanks
Daniel
Telerik team
 answered on 14 Dec 2009
1 answer
100 views
Is there any way to achieve a staic header within a RadWindow, so that I could put a menu or toolbar there that would not scroll with the page data?
Georgi Tunev
Telerik team
 answered on 14 Dec 2009
1 answer
107 views
I am working on a hack to allow for fixed width appointments, but i am having problems determining for a resource the max number of appointments that are side by side. So here is the way I am trying to get it to work.

I am using the ColumnWidth property set to 110 so i want each appointment to be approximently 100px. Now if I can determin the max number of appointments that are side by side for a resource, I can, with jquery i am planning on over writing the percentages in the header and content with fixed widths based on the max number of appointments.

This should allow the appointments to stay with a % and work as normal.

I have seen quite a bit of complaining on here about this so if you have a better solution please let me know.
Peter
Telerik team
 answered on 14 Dec 2009
1 answer
117 views
I like the presentation capabilities of using ExcelML  with export to excel.

However, I have a column that has html formatting ... when I use the ExcelML option, then just the code shows up.
If I use the HTML option, then is displays correctly but then I lose funcitionality of the ExcelML such as the sorting capabilities in the header cells.

Is there a way to get the HTML formatting to show in the ExcelML option?

thanks
Daniel
Telerik team
 answered on 14 Dec 2009
3 answers
76 views
Hi support,

I am attempting to reproduce the nested view templates demo; seen here: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx.  However, I want to use Reporting Services 2005's report viewer control to show a report inside the NestedViewTemplate.  My problem is the report is being pushed together and bunched up when inside the NestedViewTemplate area of the hierarchical grid.  My question is: Is Reporting Services 2005's report viewer control compatible with the RadGrid and inparticular the NestedViewTemplate?

Thanks,
Josh 
Yavor
Telerik team
 answered on 14 Dec 2009
2 answers
124 views
I have a grid with a templated column and a checkbox within it
I have bound a database column to it, so it shows up in the checkbox ie. when the value is 1 the checkbox is checked

now on the oncheckchanged event I want to change that value to which the checkbox refers what code can I write in the oncheckchanged event?
Thanks,

Sneha
Sneha Gokarn
Top achievements
Rank 1
 answered on 14 Dec 2009
1 answer
236 views
Hello,

I've been playing around with RadGrid in a financial application that retrieves its data every second. In order to reduce server load I did some data caching and utilized RadGrid's client data-binding capabilities. Data is retrieved from an ASMX web service. Unfortunately I couldn't find a good demo implementing web server data-binding and NestedViewTemplate's/DetailTables'...

Consider a markup like this one:

        <telerik:RadGrid ID="Grid1" runat="server"
            <MasterTableView HierarchyLoadMode="ServerOnDemand"
                <Columns> 
                    <telerik:GridBoundColumn DataField="Date" HeaderText="Date" DataFormatString="{0:D}" /> 
                    <telerik:GridBoundColumn DataField="Source" HeaderText="Source" /> 
                    <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" /> 
                </Columns> 
                <NestedViewTemplate> 
                    <asp:Label ID="LblBody" runat="server" Text='<%# Bind("Body") %>' meta:localize="false" /> 
                </NestedViewTemplate> 
                <NestedViewSettings> 
                    <ParentTableRelation> 
                        <telerik:GridRelationFields MasterKeyField="NewsID" DetailKeyField="NewsID" /> 
                    </ParentTableRelation> 
                </NestedViewSettings> 
            </MasterTableView> 
            <ClientSettings> 
                <DataBinding Location="~/GridFeeder.asmx" SelectMethod="GetNews" SelectCountMethod="GetNewsCount" /> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 

It would be nice if I could somehow attach a select method to the NestedViewTemplate in order to retrieve a news by NewsID and still use a web service for that.

I've got an almost identical issue with DetailTables - I can't set a web service method to retrieve the appropriate data filtered by NewsID.

I know I can achieve this by using ObjectDataSource but I can not (correct me if I am wrong) point it to an arbitrary web service.

Any help would be greatly appreciated.
Thank you.
Sebastian
Telerik team
 answered on 14 Dec 2009
1 answer
81 views
I am using a POPUP edit form for my grid and I set focus to a control in the ItemCreated event. This works fine for textboxes but when I try to set focus to a RadComboBox it does not work.  I do not receive an error, focus is just never set.

Anyone know how to make this work or explain what I may be missing here?


Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated

        If (TypeOf e.Item Is GridEditFormItem AndAlso _
            e.Item.IsInEditMode) Then

            Dim cboOrg As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("cboOrgId"), Telerik.Web.UI.RadComboBox)
            cboOrg.Focus()

        End If

end sub

Pavlina
Telerik team
 answered on 14 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?