Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
343 views
Hi,
      I have grid with the pagging settings . as below

<

 

telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="10" AllowSorting="true" ......

I bounded this grid with custom data source  (from my business object) Which has god more than 10 rows.   for ex. 15 rows.

Now I can see the grid has pagging. and on the first page I can view 10 records and in the second page I can see 5 records.  

And in my page I have button "Read Grid Data". on this button click event I am trying to read all the 15 rows by using the foreach

ON BUTTON CLICK EVENT ....

 

 

foreach (GridDataItem item in RadGrid1.Items)

 

{
  .... my business calculation... 
 

 



But this RadGrid1.Items retirn only 10 rows. But I need all 15 rows. I don;t know whether this is Telerik control issue or the way I am trying to read each rows using foreach. 

Please help me on this issue.  

Thanks 
Anand    

xis xix
Top achievements
Rank 1
 answered on 27 Jan 2012
4 answers
1.0K+ views
Hi,

when I copy the telerik demo of treeview to my web project, it thrown an error with the configurator panel, it doesn't recognize this tag:

<qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Expanded="true">

this is the error:
Protected WithEvents ConfigurationPanel1 As Global.Telerik.QuickStart.ConfiguratorPanel

Error 7 Type 'Telerik.QuickStart.ConfiguratorPanel' is not defined

Any hints?

Thanks.
Plamen
Telerik team
 answered on 27 Jan 2012
2 answers
75 views
Hi guys,

I would like to report a bug reelated with image manager inside of RadEditor.
When image file name is too long 'Insert' and 'Cancel' buttons are became outside the popup. You can reproduce this problem on your demos pages.

See attachment.

--
Ernesto.
Ernesto
Top achievements
Rank 1
 answered on 27 Jan 2012
2 answers
266 views
Hello
I have a problem since version Q3 2011  the following script does not work: 

radgrid loses all data see picture 

function updateGrid(result) 
{       
var tableView = $find("<%= rgInventaires.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}

Rimani
Top achievements
Rank 1
 answered on 27 Jan 2012
4 answers
202 views
Hi everybody!

I've searched a bit but so far wasn't able to determine if Radcontrols for SharePoint 2010 will be supported on SharePoint Online.
I tried to upload the solution but it dosen't comply with the sandbox mechanism.

Does someone know if it will be supported in a near future?

thanks a lot!

Stéphan.
Iana Tsolova
Telerik team
 answered on 27 Jan 2012
2 answers
171 views
Hi,

I have a user control edit form hooked to a RadGrid, like this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

I have a dropdownbox in the edit form, with a SelectIndexChanged event handler. When the event fires, the DataItem is null.

In my EditForm.ascx.cs:
protected void Page_Load(object sender, EventArgs e)
 {
    var x = this._dataItem; //x is not null, as expected
 }
  
protected void Product_SelectedIndexChanged(object sender, System.EventArgs e)
{
   var x = this._dataItem; //x is null
}

How would I get DataItem inside the event handler?
Any help with this unexpected behaviour would be appreciated,
Donald
Iana Tsolova
Telerik team
 answered on 27 Jan 2012
10 answers
177 views
Hello,

After installing the IE8 patch MS11-081-IE8-WindowsXP-KB2586448-x86-ENU.exe the autocomplete no longer works.
Ravi
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
100 views
Where can I find the name for those standard toolbar groups?
Richard
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
135 views
Hi,

I've been looking at http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx but I can't get it to work for my scenario. Is there an example of how to implement a radtooltip from a scheduler appointment item where:

- The Scheduler is generated entirely from the codebehind and implements a custom Appointment template
- The markup uses an AjaxManager and not UpdatePanels

Also, why do the examples not separate Client Side and Server side creation? I eventually found a good client side example (http://www.telerik.com/community/code-library/aspnet-ajax/scheduler/show-radtooltip-on-appointment-click-entirely-client-side-implementation.aspx) but it uses UpdatePanels and I couldn't get it to work because the javascript

var apt = $find("<%=RadScheduler.ClientID %>").getAppointmentFromDomElement(element);

causes an error.

I'm happy to use Client side or Server Side - but I don't want code for both in my project.

Thanks

Mark
Marin Bratanov
Telerik team
 answered on 27 Jan 2012
1 answer
207 views
Hello,

I am trying to get async refresh (on button click) for an radgrid, but im getting the following error: 

"Microsoft JScript runtime error: Sys.InvalidOperationException: No se pudo encontrar UpdatePanel con el id. 'ctl00_ContentPlaceHolder1_ctl00_ContentPlaceHolder1_RadGrid0Panel'. Si se está actualizando dinámicamente, debe estar dentro de otro UpdatePanel."

The RagGrid ID is "RadGrid0".

The page i'm using is based on a MaterPage, so my aspx code looks like this:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ajaxsettings>
            <telerik:AjaxSetting AjaxControlID="btnBuscar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid0" />                   
                 </UpdatedControls>
            </telerik:AjaxSetting>
        </ajaxsettings>
    </telerik:RadAjaxManager>
    <!-- content start -->
    <table>
        <tr>           
            <td>
                <asp:Button ID="btnBuscar" runat="server" Text="Buscar" OnClick="btnBuscar_Click"
                    ValidationGroup="buscar" />
            </td>
        </tr>
    </table>
         
    <table runat="server" id="PrincipalContainer" visible="False">
        <tr>
            <td valign="top">               
                <telerik:RadGrid ID="RadGrid0" runat="server" AllowFilteringByColumn="false" GridLines="None"
                    AllowPaging="false" AllowSorting="true" BorderStyle="None" ShowHeader="True"
                    AutoGenerateColumns="False" onitemdatabound="RadGrid0_ItemDataBound">
                    <mastertableview>
                    <Columns>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column1" HeaderText="Cedula">
                            <ItemTemplate>
                                <asp:Label ID="lblCedula" runat="server" Text='<%# Eval("UserId")%> '></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column2" HeaderText="Nombre">
                            <ItemTemplate>
                                <asp:Label ID="lblNombre" runat="server" Text='<%# Eval("UserName")%> '></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column3" HeaderText="Bloque">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cbBloque" Runat="server" OnSelectedIndexChanged="cbBloque_SelectedIndexChanged" AutoPostBack="True">
                                </telerik:RadComboBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column4" HeaderText="Habitacion">
                            <ItemTemplate>
                                <telerik:RadComboBox ID="cbHabitacion" Runat="server" Width="30">
                                </telerik:RadComboBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn runat="server" UniqueName="column5" HeaderText="">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnAsignarHabitacion" runat="server" OnClick="btnAsignarHabitacion_Click">Asignar</asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </mastertableview>
                </telerik:RadGrid>
</td>
</tr>
</table>
</asp:Content>

Thanks :)
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?