Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
202 views
Hi,

My RadGrid has three layers of nested grids. I'm using EditForms with templates throughout.
I want not more than one edit/insert form being shown in the whole grid at the same time. How can I achieve that?

I tried several ways, but the behaviour is never really how I want it. E.g. when the insert form is displayed in the the MasterTableView, it will stay open no matter which insert/edit button I click.

If an edit form is displayed in the MasterTableView, and I click any other insert or edit button, the form is not shown, but nonetheless the Item stays in edit mode.
Maybe I need to rebind the Grid at some point?

Does anybody know the best practise?

Thank for your help,
Jens
Johan
Top achievements
Rank 1
 answered on 13 Nov 2012
2 answers
221 views
Hi,

 i have used scrolling in Bar chart.
i got an loading panel image in regions.
Find the Attachment for image and give me the solution. it's urgent.

Theo
Top achievements
Rank 1
 answered on 13 Nov 2012
1 answer
78 views

Hi all,
        I'm trying to freeze the first two columns of the grid. I'm not able to freeze it. Below is the code that I've used. Any help on this would be highly appreciated.

<

 

telerik:RadGrid ID="rgSupervisorDataEntry" runat="server" AllowMultiRowSelection="True"

 

 

SkinID="grdDynamic" ClientSettings-Scrolling-ScrollHeight="40%" AllowPaging="True"

 

 

PageSize="15" OnNeedDataSource="rgSupervisorDataEntry_NeedDataSource" Width="100%">

 

 

<headerstyle wrap="true" Width="10%" />

 

 

<mastertableview headerstyle-wrap="true" width="150%" TableLayout="Auto">

 

 

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Width="100%" />

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn UniqueName="CheckSelected" HeaderStyle-Width="10">

 

 

</telerik:GridClientSelectColumn >

 

 

</Columns>

 

 

</mastertableview>

 

 

<clientsettings allowkeyboardnavigation="true" allowcolumnsreorder="false" reordercolumnsonclient="false">

 

 

<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />

 

 

<Scrolling AllowScroll="true" FrozenColumnsCount="2" UseStaticHeaders="true" ScrollHeight="300px" />

 

 

<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="true"

 

 

ClipCellContentOnResize="true" EnableRealTimeResize="true" />

 

 

<ClientEvents OnRowSelecting="RadGrid_RowSelecting" OnRowDeselecting="RadGrid_RowDeselecting" />

 

 

</clientsettings>

 

 

</telerik:RadGrid>

Thanks in advance!!

 

Pavlina
Telerik team
 answered on 12 Nov 2012
1 answer
117 views
Hi,

I have Rad Grid with 13 columns so i have set 

If I change the page size everything is working fine. but if i move to the last column using horizontal scroll bar and by changing the page size the columns are getting mixed.

say my page size is 5..on page load the visible columns are C1, C2, C3, C4. if i move to last columns C10, C11, C12, C13 and changing the page size to 10, the first 5 rows display C10, C11, C12, C13 where as last 5 rows display C1, C2, C3, C4.

html of my grid

<telerik:RadGrid ID="grdLineManagement" runat="server" AllowFilteringByColumn="true" AllowCustomPaging = "true"
                    EnableEmbeddedSkins="false"  Skin="eMod"
                        AllowPaging="true" PageSize="10" Width="926" GridLines="None" AllowSorting="true" OnInit="grdLineManagement_Init">
                         
                        <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="true">
                            <DataBinding Location="../Services/ManageLinesService.asmx" SelectMethod="GetChassisPoolLines" />
                            <Resizing AllowResizeToFit="true" AllowColumnResize="true" />
                            <ClientEvents OnCommand="grdLineManagement_Command" OnRowDataBound="grdLineManagement_RowDataBound"/>                           
                            <Scrolling AllowScroll="true" ScrollHeight=""  UseStaticHeaders="true" FrozenColumnsCount="1" />                           
                        </ClientSettings>
                        <PagerStyle AlwaysVisible="True" PageButtonCount="5" />
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        <MasterTableView TableLayout="Fixed" CommandItemDisplay="Top"
                            HierarchyLoadMode="Client" ExpandCollapseColumn-Visible="false" >
                             <CommandItemTemplate>
                                <div class='fr tm10 bm10'>Export: <asp:ImageButton ID="btnExcel" runat="server"   ImageUrl="~/IMAGES/CONTROLS/ExcelExport.jpg"  onclick="btnExcel_Click"/>
                                 <asp:ImageButton ID="btnPdf" runat="server"  ImageUrl="~/IMAGES/CONTROLS/ExportPDF.jpg" onclick="btnPdf_Click"  /></div>
                                                               
                                </CommandItemTemplate>
                            <Columns>
                        <telerik:GridButtonColumn UniqueName="Edit" HeaderStyle-Width="50" Text="Edit" CommandName="Edit">
                        </telerik:GridButtonColumn>                         
                                <telerik:GridBoundColumn HeaderStyle-Width="180" FilterControlWidth="68px" DataField="ChassisPoolLineId"
                                            HeaderText="ChassisPoolLineId" UniqueName="ChassisPoolLineId"
                                            FilterListOptions="VaryByDataType" Visible="false">
                                </telerik:GridBoundColumn>                                                      
.
.
.
.
.
.
                                 
 <telerik:GridBoundColumn HeaderStyle-Width="125" HeaderStyle-Font-Bold="true" FilterControlWidth="85px" DataField="SalesTaxRate" DataType="System.Decimal"
                                    HeaderText="Sales Tax Rate" UniqueName="SalesTaxRate"  FilterListOptions="VaryByDataType" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <NestedViewTemplate>
                            </NestedViewTemplate>
                        <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" ShowExportToExcelButton="true" />
                        </MasterTableView>
                                
                    </telerik:RadGrid>

Can anyone syggest me on this issue
Pavlina
Telerik team
 answered on 12 Nov 2012
1 answer
79 views
Hi, all.

I have a question regarding the RadGrid, RadDock and Javascript.  I have a page that creates dynamic docks upon the user's request.  The docks the users select will have their own separate .ascx controls loaded into them.  One of these is a RadGrid and the other is the RadScheduler (both may or may not be loaded, depending on the user's configuration).  I've seen the demo where a grid row is dragged to the scheduler, but I'm having some trouble replicating it since I can't use '<%= FindControl("schedCtrl").ClientID %>'; the page errors out since that control doesn't exist on the .aspx page at first. I've also tried to use eventArgs.get_destinationHtmlElement, but that only gives me the rendered div tag and not the actual control ID. 

Is there something that I've missed or is there another way to get to the control's ClientID inside of another dynamic control?
Pavlina
Telerik team
 answered on 12 Nov 2012
3 answers
110 views
I have a very tricky task that I must perform. What I need to be able to do is allow a user to Past a section of Excel cells into a radeditor then on the C# side read those cells into an XMLDocument. I see that the radeditor has a HTML content view and I was hoping that I could read the html, parse it after reading it into xml format. If this is possible could you give me some guidance as to the best way to do this. I know that this is non-standard but any help would be great!!!!

Thanks,

Steve Holdorf
Steve Holdorf
Top achievements
Rank 1
 answered on 12 Nov 2012
1 answer
223 views
Hi

I am using quite an old version of radgrid (q3 2009). The grid is not grouping my data. I have tried to group the data programmatically and declaratively and i get the same error. I am trying to group the data by a field called Reg which definitely exists in the underlying data as it displays fine in the grid if i remove any attempt to group the data

Here is the code
Dim expression As GridGroupByExpression = New GridGroupByExpression
     Dim gridGroupByField As GridGroupByField = New GridGroupByField
     'SelectFields values (appear in header)
     gridGroupByField = New GridGroupByField
     gridGroupByField.FieldName = "Reg"
     gridGroupByField.HeaderText = "Reg"
     expression.SelectFields.Add(gridGroupByField)
     expression.GroupByFields.Add(gridGroupByField)
     gridJourneys.MasterTableView.GroupByExpressions.Add(expression)

Here is the aspx
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="Reg" HeaderText="Reg" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="reg" HeaderText="reg" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
Here is the error
Field Reg not found in the source table. Please check the expression syntax. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: Telerik.Web.UI.GridGroupByException: Field Reg not found in the source table. Please check the expression syntax.
  
Source Error: 
  
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  
Stack Trace: 
  
  
[GridGroupByException: Field Reg not found in the source table. Please check the expression syntax.]
   Telerik.Web.UI.GridDataSetHelper.CreateGroupByTable(DataTable SourceTable, GridTableView view) +376
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +2699
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +21
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +105
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +169
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +499
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +238
   Telerik.Web.UI.RadGrid.DataBind() +80
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2122
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +121
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
  
  

This column displays the reg data just fine
<telerik:GridBoundColumn DataField="Reg" HeaderText="Reg">

I get this error no matter what field in my underlying data I try and group by

thsnks for your help
Pavlina
Telerik team
 answered on 12 Nov 2012
1 answer
94 views
Hello
I am using a fairly old version of rad controls for asp.net ajax (Q3 2008).
I have a master detail grid. In the footer I am showing some basic aggregate details (which I am actually having to calculate manually as the built in aggregates aren't working properly but thats another story) and I am displaying them in the footer by adding literal controls to get a multiline display:

 

 

 

Protected Sub gridJourneys_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridJourneys.ItemDataBound
  
        If e.Item.OwnerTableView.Name = "Journeys" Then
            If TypeOf e.Item Is GridDataItem Then
  
  
                Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
                            
  
  
                Dim x As TimeSpan = TimeSpan.Parse(dataItem("IdlingTime").Text)
                idlingTime = (idlingTime + x)
                Dim y As Double = Double.Parse(dataItem("DistanceTravelled").Text)
                distanceTravelled = (distanceTravelled + y)
                Dim z As TimeSpan = TimeSpan.Parse(dataItem("TimeTaken").Text)
                timeTaken = (timeTaken + z)
  
  
  
  
            ElseIf TypeOf e.Item Is GridFooterItem Then
  
                Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem)
  
                footerItem("DistanceTravelled").Text = distanceTravelled.ToString("F2")
                'footerItem("TimeTaken").Text = timeTaken.ToString
  
  
  
  
                footerItem("TimeTaken").Controls.Add(New LiteralControl("Total: " & timeTaken.ToString & "<br/>"))
                footerItem("TimeTaken").Controls.Add(New LiteralControl("Idling: " & idlingTime.ToString))
  
  
            End If

The footer displays fine when the grid first loads but if I expand a row in the table to show the details table then the footer information for TimeTaken column (which was created using literal controls) is lost. The DistanceTravelled column is fine

thanks
Pavlina
Telerik team
 answered on 12 Nov 2012
4 answers
208 views

Hi,

 

I am using the FileExplorer and I have EnableAsyncUpload set to true. I have also applied these modifications so that the Open menu option will always force a download.

 

With the Telerik AsynchUpload control, I can use the OnClientValidationFailed to verify the status of an upload. I need to be able to do this when clicking the Upload toolbar button within FileExplorer. But I don’t want to validate a “failed” upload; I want to validate a “successful” upload.

 

And I’m not sure that either test can be preformed when forcing a download, since I am actually invoking my browser’s “Save As” feature, as opposed to a Telerik download feature.

 

Any suggestions?
Thanks,
Steven

Brian
Top achievements
Rank 1
 answered on 12 Nov 2012
5 answers
219 views
Hello

I use an Object DataSource to load in my RadAutoCompleteBox.

My table has 3 columns  : ID , TEXT1 , TEXT2

I would like the user can search on the TEXT1 and also the TEXT2 ,

i search in the City table, we have Zip code and City name , and if we can search on the third column
it'll be great.

Have you an solution ?

Thanks
Olivier,

<SFWeb:WebBusinessBindingSource runat="server" ID="WbAffaires" BusinessObjectName="oAffairesBo"></SFWeb:WebBusinessBindingSource>

 <telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox1" Width="340"  DataSourceID="WbAffaires" Filter="StartsWith" CssClass="RadAutoCompleteBox_Default"
                            DropDownWidth="300px" DataTextField="CityColumn" DataValueField="ZipCodeColumn" InputType="Token" Delimiter="," EmptyMessage="Ville, CP ou département.">
                            </telerik:RadAutoCompleteBox>
Olivier
Top achievements
Rank 2
 answered on 12 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?