Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
244 views
I have been able to get the parent child to work using the DetailTableDataBind event and having HierarchyLoadMode="Client".  I am moving from Infragistics and using there controls I was able to bind the grid to a dataset that contained two tables with a data relationship defined using this method: Dim dr As DataRelation = New DataRelation("OrderTable", dc1, dc2, False) .  How or can I do this for a RadGrid wihout using the DetaiTableDataBind event?

Thanks

John


John
Top achievements
Rank 1
 answered on 27 Dec 2010
5 answers
269 views
Hi,

I am using the grid's built in drag and drop functionality and have observed a strange issue.
When dropping a grid item onto a html control within the grid, the "e.HtmlElement" is empty. It is only not empty when dropping on items outside of the grid. Is there any way around this? I would really like to be able to drop a grid item onto a specific row to trigger some functionality.

Thank you
Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
223 views
Hi,

I am new to Telrik and using RadGrid with Virtual Scrolling feature.
When I scroll down, last page of Grid is selected automatically, it happens when there is some empty space below the records in Grid. I can not fix the height of Grid for some reason.

Has anybody faced this issue before. Please help me in resolving this issue.
Below is the Code used for virtual scrolling: 

<telerik:RadGrid ID="radGridItem" AllowPaging="True" runat="server" AutoGenerateColumns="False" PageSize="5"

 

<MasterTableView TableLayout="Fixed"> 
<PagerTemplate
<asp:Panel ID="PagerPanel" Style="padding: 6px; line-height: 24px" runat="server"> 
<div style="margin: 0px; float: right;">
Displaying page
<%
# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>of
<%
# DataBinder.Eval(Container, "Paging.PageCount")%>
, items
<%
# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1 %>
to
<%
# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1 %>
of
<%
# DataBinder.Eval(Container, "Paging.DataSourceCount")%>
</div>
<div style="width:260px; margin: 0px; padding: 0px; float: left; margin-right: 10px; white-space: nowrap;">
<asp:LinkButton ID="Button1" runat="server" OnClientClick="changePage('first'); return false;"
CommandName="Page" CommandArgument="First" Text="&lt;&lt;" CssClass="PagerButton FirstPage" />
<asp:LinkButton ID="Button2" runat="server" OnClientClick="changePage('prev'); return false;"
CommandName="Page" CommandArgument="Prev" Text="&lt;" CssClass="PagerButton PrevPage" />
<span style="vertical-align: middle;">Page:</span>
<telerik:RadNumericTextBox ID="RadNumericTextBox1" Width="25px"
Value='<%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>'
runat="server">
<ClientEvents OnValueChanged="RadNumericTextBox1_ValueChanged" />
<NumberFormat DecimalDigits="0" />
</telerik:RadNumericTextBox>
<span style="vertical-align: middle;">of
<%
# DataBinder.Eval(Container, "Paging.PageCount")%>
</span>
<asp:LinkButton ID="Button3" runat="server" OnClientClick="changePage('next'); return false;"
CommandName="Page" CommandArgument="Next" Text="&gt;" CssClass="PagerButton NextPage" />
<asp:LinkButton ID="Button4" runat="server" OnClientClick="changePage('last'); return false;"CommandName="Page" CommandArgument="Last" Text="&gt;&gt;" CssClass="PagerButton LastPage" />
</div>
<asp:Panel runat="server" ID="NumericPagerPlaceHolder" />
</asp:Panel>
</PagerTemplate>
<PagerStyle Mode="NumericPages" PageButtonCount="10" AlwaysVisible="true" />
<Columns>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True">
</Scrolling>
<ClientEvents/>
</ClientSettings>
</telerik:RadGrid>


Thanks
Gaurav Jain

Iana Tsolova
Telerik team
 answered on 27 Dec 2010
11 answers
181 views
I am using RAD Controls for AJAX Q2 2009 SP1 with master pages in VS 2005 VB.NET.

The RAD Menu is located in the master page; the RAD AJAX manager is also located in the master page. 

The content page contains two RAD Calendar controls and a RAD combo box.  Everything is working in the page except for the RAD Combo box.  If I have the RAD Combo box on the page without the calendar, it works fine; but just says "loading" when all controls are present.

We are transitioning to a new version of our Intranet that utilizes master pages; our previous version did not use master pages and these controls did not conflict with one another.  Please advise.

Simon
Telerik team
 answered on 27 Dec 2010
1 answer
73 views

Hi,

I have hierarchical grid on which i have included the column resize functionality. Column re-sizing done by user on Parent grid is maintained even after the post back but column re-sizing done by user on child grid is not maintained after the postback. I am using telerik verison "2010.1.519.35". Below i have pasted my sample code where ----//Some Code---- is for some code which i have not pasted here.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="Mygrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Mygrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                   </AjaxSettings>
            </telerik:RadAjaxManager>
                <telerik:RadGrid ID="Mygrid" runat="server" AllowCustomPaging="True" AllowPaging="True" PageSize="5" EnableEmbeddedSkins="false" Skin="MySkin" AllowSorting="True" AllowMultiRowSelection="true" AllowFilteringByColumn="true" EnableViewState="true" GridLines="None" Width="100%" ----//Some Code---->
                    <ClientSettings AllowExpandCollapse="true"><Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="true" EnableRealTimeResize="true" /><Selecting AllowRowSelect="true" EnableDragToSelectRows="false" /></ClientSettings>
                    <PagerStyle Position="TopAndBottom" Mode="NumericPages" PageButtonCount="5" />
                    <SortingSettings EnableSkinSortStyles="false" />
                    <MasterTableView AllowSorting="true" AllowMultiColumnSorting="false" HierarchyLoadMode="ServerOnDemand" Width="100%" TableLayout="Fixed">
                        <PagerTemplate>
                             ----//Some Code----
                        </PagerTemplate>
                        <ExpandCollapseColumn ButtonType="ImageButton" CollapseImageUrl="~/Skin/Grid/SingleMinus.gif"  ExpandImageUrl="~/Skin/Grid/SinglePlus.gif" ></ExpandCollapseColumn>
                        <RowIndicatorColumn Visible="False"><HeaderStyle /></RowIndicatorColumn>
                        <DetailTables>
                            <telerik:GridTableView HierarchyLoadMode="Client" Width="100%" GridLines="None"  runat="server" CellPadding="0" CellSpacing="0" BorderWidth="1" BorderColor="#cccccc" AllowMultiColumnSorting="false" AllowPaging="false" AllowSorting="false" HierarchyDefaultExpanded="true" EnableViewState="true" AllowFilteringByColumn="false" TableLayout="Fixed"  ----//Some Code---->
                                <ParentTableRelation><telerik:GridRelationFields  ----//Some Code---- /></ParentTableRelation>
                                <Columns>
                                    <telerik:GridClientSelectColumn UniqueName="colselectjob" Resizable="false"><HeaderStyle Width="25" /></telerik:GridClientSelectColumn>
                                     ----//Some Code----
                                </Columns>
                            </telerik:GridTableView>
                            
                        </DetailTables>
                        
                        <Columns>
                            <telerik:GridClientSelectColumn Resizable="false" UniqueName="colselectjob"><HeaderStyle Width="25" /></telerik:GridClientSelectColumn>
                            ----//Some Code----
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>


Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
191 views
Good evening
use Sitefinity 3.7 sp3, we would like to create a banner for our website similar to the homepage of Telerik.
There is a control that allows you to achieve this effect?
I searched but found nothing.

:)
Fiko
Telerik team
 answered on 27 Dec 2010
1 answer
117 views
Hi
i try to using the RadRotator with WebServiceSettings and is look fine.
But when the user click on the next button, the control dont know that is can be the lsat item, even i set the WrapFrames property to true and the application crash with OutOfRange.

So my question is, How can i configure for the RadRotator where is the last item if i use the WebServiceSettings ?

thanks (and sorry about my english)
Fiko
Telerik team
 answered on 27 Dec 2010
0 answers
92 views
hi ,
does Scheduler support saka era calendar ?
how can I use it ?
rtech
Top achievements
Rank 1
 asked on 27 Dec 2010
1 answer
121 views
I have a Radgrid that uses an objectdatasource which is configured this way
<asp:ObjectDataSource runat="server" ID="reportObjectDataSource" SelectMethod="GetInfo"
    EnableViewState="false" TypeName="XXXX.ReportObjectDataSource" 
       onselecting="reportObjectDataSource_Selecting">
       <SelectParameters>
           <asp:FormParameter DbType="DateTimeOffset" 
               DefaultValue="" FormField="timeFrom" Name="frDate" />
           <asp:FormParameter DbType="DateTimeOffset" 
               DefaultValue="" FormField="timeTo" Name="tDate" />
               <asp:FormParameter DbType="Boolean"
               DefaultValue="" FormField="btnAllVer" Name="allVer" />
       </SelectParameters>
   </asp:ObjectDataSource>

The Radgrid is declared in the designer of the page with this code:
<telerik:RadGrid ID="gridReport" runat="server" GridLines="None"
                        Skin="WebBlue" Width="700px"  HeaderStyle-HorizontalAlign="Center" 
                            AllowSorting="True" AllowPaging="true" PageSize="50">
                        <MasterTableView AutoGenerateColumns="True">
                           <CommandItemSettings ShowExportToExcelButton="true"></CommandItemSettings>
  
                        </MasterTableView>
                        <ClientSettings>
                        <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" />
                        </ClientSettings>
                    </telerik:RadGrid>

I also added a button that will be used to export the datagrid once it is clicked. However, after generation of grid and clicking the export button the error: "RadGrid must be DataBound before exporting" is encountered. Here's the code behind for the page:

protected void btnGenerate_Click(object sender, EventArgs e)
        {
 gridReport.DataSourceID = "reportAdhocObjectDataSource";
}
 protected void btnExport_Click(object sender, EventArgs e)
        {
              
            gridReport.ExportSettings.FileName = "Report as of" + DateTime.Today.ToString();
            gridReport.ExportSettings.ExportOnlyData = false;
            gridReport.ExportSettings.IgnorePaging = true;
            gridReport.ExportSettings.OpenInNewWindow = true;
  
            gridReport.MasterTableView.ExportToExcel();
  
        }
  
protected void reportObjectDataSource_Selecting(object sender, System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs e)
        {
            DateTime timeFr = timeFrom.SelectedDate.Value;
            DateTimeOffset tFrom = timeFr;
            e.InputParameters["frDate"] = tFrom;
  
            DateTime timeT = timeTo.SelectedDate.Value;
            DateTimeOffset tTo = timeT;
            e.InputParameters["tDate"] = tTo;
  
            e.InputParameters["allVer"] = this.btnAllVer.Checked;
        }

This is urgent, so please, any help will be appreciated.

thanks
Daniel
Telerik team
 answered on 27 Dec 2010
1 answer
313 views
Hi,

I am using following source code for Editing & deleting the records.

<

 

telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Left" HeaderText="Edit"  ItemStyle-orizontalAlign="Left">
<HeaderStyle HorizontalAlign="Left" Width="30px" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridEditCommandColumn>

 

 


<
telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  ConfirmDialogHeight="100px" ConfirmDialogType="RadWindow" Visible="true" ConfirmDialogWidth="220px"  ConfirmText="Are you sure you want to delete this Material Issue Request?"  ConfirmTitle="Delete" HeaderStyle-HorizontalAlign="Left"  HeaderStyle-VerticalAlign="NotSet" HeaderText="Delete" ItemStyle-HorizontalAlign="Left">
<HeaderStyle HorizontalAlign="Left" Width="38px"/>
<ItemStyle HorizontalAlign="Left" />
</telerik:GridButtonColumn>

My requirement is that based on some status field from database i would like to enable/disable these Edit,Delete buttons.

How to get these control Id's & how to enable/disable these controls.


Thanks in advance...

 

Yeroon
Top achievements
Rank 2
 answered on 27 Dec 2010
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?