Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
279 views
Hi,
I am using rad grid
and i am having one doubt

and below is my code:
 
foreach (GridDataItem item in rgShowAvailable.MasterTableView.Items)
{str += item[
"TagNumber"].Text + ",";} 

in the above code if paging is there i am able to get only the first page index items and in the page index 2 i am not able to add to the database.

So i need help under the above scenario that to get the all items even if the paging is there?
 
if i give
How to get all the items for the above code

Thanks in advance
Vara Prasad.M
Princy
Top achievements
Rank 2
 answered on 23 Apr 2010
1 answer
118 views
Hi,
I have radscheduler wired up to a custom data provider. The scheduler is driven by an external form which populates a filter and then updates the scheduler. This all work perfectly without AJAX but as soon as I wire it all up to a RadAjaxManager/RadAjaxManagerProxy I am gettting an error when debugging with Firebug. The application hangs in both IE and Firefox. Using the latest build of RadControls.

The line that it hangs on is:
d.each(l.rows,function(){Array.add(n,this.cells[0].offsetHeight);

with this error:
this.cells[0] is undefined
http://localhost/Spacesv3/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager_Master_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.415.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a3223ab34-72bf-4a9d-8a77-14f0f5e9365d%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3ab7778d6c%3ae085fe68%3a4c8be21a%3a874f8ea2%3a650fdad%3ad40f7d5c%3a431f16a4%3ae91ff703%3a7666c7ed%3a4a6fe137%3a59462f1%3aa51ee93e
Line 7644

Is this abug or is it me? I can provide the code if that will be of any use.

Thanks.



Jacob
Top achievements
Rank 1
 answered on 23 Apr 2010
1 answer
116 views
hi all,

the rad window i'm trying to use is displaying weird behavior as can be seen in the attachment.
fyi,
i removed all css and formatting just to test. i use system.web.routing and that gave a lot of problem with the ajax framework etc in the beginning, but after i get the global asax to ignore routing for "Telerik.Web.UI.WebResource.axd", there are no more javascript errors.

just curious as to what might be causing this?

Afendi Hamat
Top achievements
Rank 1
 answered on 23 Apr 2010
1 answer
168 views
Editing radgrid row on doubleclick in client side function will postback twice.  Can anyone tell me how to avoid postback on double click.
Shinu
Top achievements
Rank 2
 answered on 23 Apr 2010
6 answers
239 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
144 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
124 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
195 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
210 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
116 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?