Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
224 views
I really love RadGrid, but we have a scenario where we have 4 grids on a page and need to use WCF to populate them or risk severe performance problems (which in fact my client rejected an approach using AjaxPanels for performance reasons).

I am having several problems with even the simplest of grids in this scenario.
I start by binding the grid with an Empty List(Of Items) on Page_Load. Then the WCF binding happens asynchronously from Client-side events.

A) nothing gets formatted properly when binding unless you have bound Server-side with a populated datasource first. (for example, numbers are 0 for GridNumericColumn.)
B) it is impossible without writing a ton of script to conditionally format using OnRowDataBound beacue it doesn't have an EditMode to find.
C) .editAllItems() causes a postback and destroys the grid (unless it's rebound on pageload which completely defeats the purpose of WCF binding).
D) .editItem() does not work (probably because the edit controls don't exist).
E) I tried even extreme samples like: RadGridClientSideEditWithTemplates and the code makes no sense, and actually does not work unless you bind from the server first, just llok at the code for toggleEdit(), this is rediculous to have to do.
F) no editing is allowed at all without first binding on the server, then refreshing with WCF. Inspecting the MasterTableView shows there are no edit controls present to show or hide, did I completely miss something to enable this?
G) there is no reasonable way to access the footers from the client (for totals).

When it does populate, it is superfast, which is good andf why we need this approach instead of AjaxPanels and throwing away 80% of the page.

I can't produce a sample at this time, but just look at the WCF and Webservice samples in the blogs and try to change one to do any of these scenarios and they fail.

So I now have an application that has been in production for several years with Telerik controls that I now am going to remove the grid and start over because of these significant limitations.  I have been fighting with this for 2 weeks to get it working and everytime I try anything other than displaying raw data, it falls flat.

Seriously guys, all your blog demos of MVC and WCF are cool, but try doing something other than rudimentary binding  (and not rebind AFTER you bind on the server first...) and you will see how incredibly difficult it is to use RadGrid.

As we move further into using WCF and MVC, we really need to have most of the features on the server-side that makes RadGrid so great.

Prove me wrong and show me that this is possible, even in a new release!
Hopefully this will provide some direction for the next set of releases.

Steele Price
NetDeveloper1107
Top achievements
Rank 1
 answered on 23 Apr 2010
1 answer
138 views
Hi. I'm following the demo here. Everything is working okay but instead of using a html image tag, I'm using a span tag and using the title element as the text that the tooltip should display. As you can imagine the default browser tooltip is showing too when mousing over the span tag. Is there any way around this? I can't think of any other tag to use as it's just text on a page. Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 23 Apr 2010
1 answer
113 views
Hi,
I have a radPanel menu followed by a radRotator showing images.  I'd like the radPanel to overlay the radRotator images when the panel expands, but am unable to figure it out.  I have tried css styles for position relative and absolute; z-indexes; etc.  but the radRotator always appears on top of the expanded Panel when expanded.  Note, that when the Panel is collapsed, the Rotator is positioned below it, so there would be no overlap anyway.  How can I get the Panel expanded to cover-up and hide the Rotator?

Thank you,

Greg
greg brown
Top achievements
Rank 1
 answered on 22 Apr 2010
1 answer
188 views
Hi,

I have a rad grid inside a repeater and all i want to do is get the row select to fire some server side code but I can not get the code to fire.

    <asp:Repeater ID="rptExaminations"
        runat="server"
        OnItemDataBound="rptExaminations_ItemDataBound"
        OnItemCommand="rptExaminations_ItemCommand"                
        EnableViewState="true">
        <ItemTemplate>
            <asp:Label ID="lblExaminationReference" runat="server" CssClass="summaryHeading"></asp:Label>
                      .......
            <atkins:RadGrid ID="grdExhibits"
                runat="server"
                AutoGenerateColumns="False"
                AllowSorting="False"
                AllowPaging="False"
                AllowMultiRowSelection="false"
                GridLines="None"
                ClientSettings-EnableRowHoverStyle="true"           
                >
                <ClientSettings>
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
                <MasterTableView NoMasterRecordsText="There are no exhbits">
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="25px" ItemStyle-Width="25px" CommandArgument="ExhibitSelected" />
                        <telerik:GridBoundColumn HeaderText="Witness Ref" UniqueName="WitnessReference" DataField="WitnessRef"
                            HeaderStyle-Width="150px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Barcode" UniqueName="BarCode" DataField="Barcode"
                            HeaderStyle-Width="150px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Short Description" UniqueName="ShortDescription"
                            DataField="ShortDescriptionId" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <atkins:GridExpandTextColumn HeaderText="Description" UniqueName="Description" DataField="Description">
                        </atkins:GridExpandTextColumn>
                        <telerik:GridBoundColumn HeaderText="Current Location" UniqueName="CurrentLocation"
                            DataField="Location" HeaderStyle-Width="100px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Seized By" UniqueName="ObtainedBy" DataField="ObtainedById"
                            ItemStyle-Width="100px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Date / Time Seized" UniqueName="SeizedDate"
                            DataField="DateTimeObtained" DataFormatString="{0:mm/dd/yyyy hh:mm}" HeaderStyle-Width="100px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Property Reference Number" UniqueName="PropertyReferenceNumber"
                            DataField="CPR" HeaderStyle-Width="150px">
                        </telerik:GridBoundColumn>
                        <atkins:GridExpandTextColumn HeaderText="Remarks" UniqueName="Remarks" DataField="AppendRemarks">
                        </atkins:GridExpandTextColumn>
                    </Columns>
                </MasterTableView>
            </atkins:RadGrid>
            <br class="clear" />
        </ItemTemplate>
    </asp:Repeater>

      #region examinations repeater
        protected void rptExaminations_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem)
            {
                return;
            }
            else
            {

                // populate the exhibits
                Atkins.Locard.Web.Controls.RadGrid grdExhibits = (Atkins.Locard.Web.Controls.RadGrid)e.Item.FindControl("grdExhibits");
                grdExhibits.DataSource = examination.Exhibits;
                grdExhibits.DataBind();

            }
        }

        protected void rptExaminations_ItemCommand(object sender, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "ExhibitSelected")
            {
                //todo
                int selectedIndex = rtsExaminations.SelectedIndex;
                RepeaterItem repeaterItem = rptExaminations.Items[selectedIndex];
                RadGrid grdExhibits = (RadGrid)repeaterItem.FindControl("grdExhibits");
                if (grdExhibits.SelectedItems.Count == 1)
                {
                    GridItem gridItem = grdExhibits.SelectedItems[0];
                    BarCode = gridItem.Attributes["BarCode"].ToString();
                }
                else
                {
                    BarCode = "";
                }
            }
        }

        #endregion

I'm sure its something simple i'm missing
robertw102
Top achievements
Rank 1
 answered on 22 Apr 2010
5 answers
193 views
Hello,

I have a RadGrid with 500 records per page and am trying to use the GridClientSelectColumn in conjuntion with the SelectedItems property on the server side.  Given the big page size, I have to have ViewState turned off.  This in turn results in 0 for the value of the SelectedItems property.  Can you please point me to a sample that provides a work around?

Thanks,
Chris
Basel Nimer
Top achievements
Rank 2
 answered on 22 Apr 2010
2 answers
108 views
Is there a way to limit the duplication of the data displayed?  Currently it shows every line that is returned on the first level and re-shows the line for every item it reports to in the sub-levels.  I used the self-referencing Hierarchy example in the demo to create it.
John
Top achievements
Rank 1
 answered on 22 Apr 2010
1 answer
174 views
Hi.

I'm exporting a grid to excel. GridGroupFooter items with totals exports the amounts as I expect (with  format), but with GridDataItems exports the amounts without format. Do I have to do anything special for exporting normal item data lines?

I append a screenshot with sample data.

Thx.
Daniel
Telerik team
 answered on 22 Apr 2010
2 answers
138 views
I have a master page which has navigation menu, content place holder and a radwindowmanager.  In my content page I have a radsplitter, from a page loaded into a pane I am able to execute a javascript that launches a rad window on the masterpage, when this window closes I need to execute a script on the original (pane content) page.  I cannot get the radsplitter using $find("<% =radsplitter.clientid %>" from the masterpage, the object only exists inside the content place holder.  I need the rad spliter to get the pane to get the iframe of the panes contenturl so that I can fire a java script that will then either reload the rad tree so new records or reload the rad tree runing a records search.

Master Page
    Content Page
        RadSplitter
               RadPane
                    Content Page    
                            RadTree

I can go up the train through javascripts, but I cannot go back down the train using javascript. 
Jim Gru
Top achievements
Rank 1
 answered on 22 Apr 2010
2 answers
194 views
After a successful insert I would like the new record to go into edit/update mode.  The reason is the update template contains a section that exist only if there is a parent record.  So after inserting the parent record exist now I can allow inserting of child records.

Thanks,
Khanh
Khanh
Top achievements
Rank 1
 answered on 22 Apr 2010
1 answer
69 views
Hello,
         I am doing computer engineering.I am currently making a project for my last semester. But I need a timeline control for my task part in project. Project title is Project tracking system. My query is that, can I use the trial for that or I need to buy the whole control. Or if any other control available, Please help me to solve my problem. My E-mail ID is raja199017@rediffmail.com.
T. Tsonev
Telerik team
 answered on 22 Apr 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?