Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
71 views
Good morning,
I used this example
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

After entry, the panel with usercontrol remains visible.
Is possible hide this panel after confirm opeeration ?
lupotana
Top achievements
Rank 1
 answered on 12 Aug 2013
3 answers
86 views
I have a grid with merged headers and the Office2007 skin, and its all fine. However...

I like to copy the skin files and rename them so I can tweak as required, and this worked fine up til now.

If I copy the office2007 skin files into my app and rename the declaration section of the grid to use them, the gradient fill only fills the height of a single header row, meaning that where I have merged the header cells I see the background colour for the bottom part of the header. Obviously the single rows display fine.

I'm using 2013.2.611.4 which I know it's not the latest version, Upgrading will require a full regression test which I don't want to do for a simple colour change.

Andy Ideas.

Andy
Venelin
Telerik team
 answered on 12 Aug 2013
1 answer
210 views

I need to enhance the application and the table structure cannot be amend.

Table structure:

ID      StaffID     Type
========================
1       1           1
2       1           2  
3       1           3
4       2           2
5       2           3
6       3           1

 

 

I want to group same StaffID into one gridview row and then databind the checkbox (Type 1, Type 2, Type3) based on the value of "Type" column.

Proposed Gridview :

StaffID     StaffName   Type 1  Type 2  Type 3
==============================================
1           Amy         [X]     [X]     [X]
2           John        [ ]     [X]     [X]
3           Chris       [X]     [ ]     [ ]

Moreover, How can i insert/delete record if user check/uncheck the checkbox in gridview ?
Thanks.
 

Vasil
Telerik team
 answered on 12 Aug 2013
1 answer
139 views
I have a drop down where user can select the skin of their choice. The problem i am having is when user select the skin type to default then it won't display me a scheduler(See image.) but every other skins works fine with scheduler. 
Please help me

Thank you 
Ashesh 
Magdalena
Telerik team
 answered on 12 Aug 2013
1 answer
187 views
I have a vertical menu on a RadTabStrip. Is there a way to wrap text displayed on a RadTab?

Here is a sample of the code. I am trying to wrap the text on the third RadTab.

<telerik:RadTabStrip runat="server" ID="RadTabStrip3" MultiPageID="RadMultiPage2"
    Orientation="VerticalLeft" Skin="Windows7" Width="200px" SelectedIndex="0" Align="Left"  >
    <Tabs>
        <telerik:RadTab Height="30px"  Text="Funding Opportunity Announcements"  ></telerik:RadTab>
        <telerik:RadTab Height="30px"  Text="Application Requirements" ></telerik:RadTab>
        <telerik:RadTab Height="60px"  Text="Objective Review of Grant Applications, Selections, and Award" ></telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
I am using ASP.NET 2013 Q1. A previous post suggested modifying the CSS Style sheet but that only worked for horizontal tabs.

Thanks for any help.

Chris 

Magdalena
Telerik team
 answered on 12 Aug 2013
2 answers
116 views
  I want x axis summary text as in the attachment, it is possible, I am using rad chart
  and how can i achieve this.
 Thanks
Irfan
Top achievements
Rank 1
 answered on 12 Aug 2013
1 answer
224 views
Hi

I am using an old version of RadGrid (2008 Q3) but I hope you will still be able to help.

None of the styles in the grid's skin are applied when I export to excel. They are not applied if i use an embedded skin or a custom skin.
I tried adding styles manually as shown in the documentation like so:

Protected Sub gridJourneys_ExcelMLExportStylesCreated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLStyleCreatedArgs) Handles gridJourneys.ExcelMLExportStylesCreated
       For Each style As Telerik.Web.UI.GridExcelBuilder.StyleElement In e.Styles
           If style.Id = "headerStyle" Then
               style.FontStyle.Bold = True
               style.FontStyle.Color = System.Drawing.Color.Gainsboro
               style.InteriorStyle.Color = System.Drawing.Color.Wheat
               style.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
           ElseIf style.Id = "itemStyle" Then
               style.InteriorStyle.Color = System.Drawing.Color.WhiteSmoke
               style.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
           ElseIf style.Id = "alternatingItemStyle" Then
               style.InteriorStyle.Color = System.Drawing.Color.LightGray
               style.InteriorStyle.Pattern = Telerik.Web.UI.GridExcelBuilder.InteriorPatternType.Solid
           End If
       Next
      
   End Sub

i have tried this with an embedded skin and a custom skin and the styles are not applied to the excel doc

This does work though

Protected Sub gridJourneys_ExcelExportCellFormatting(ByVal source As Object, ByVal e As Telerik.Web.UI.ExcelExportCellFormattingEventArgs) Handles gridJourneys.ExcelExportCellFormatting
     If e.FormattedColumn.UniqueName = "StartLocation" Then
         
         e.Cell.Style("color") = "red"
 
 
 
     End If
     If e.FormattedColumn.UniqueName = "ExpandColumn" Then
         e.Cell.Controls.Clear()
     End If
  
 End Sub


How do i get the styles from the stylesheet to be applied in the excel document

thanks a lot
Kostadin
Telerik team
 answered on 12 Aug 2013
1 answer
115 views
Hi

I have placed a label inside the item template of item of a radpanelbar. How do I access it in javascript?

Thanks
Robert
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2013
1 answer
115 views
I used the telerik radgrid.  Not sure how to tell which version it is?  In Telerik.Web.UI property "version" the value is 2011.3.1115.35.  Runtime version is v2.0.50727.

I am using just the default delete (not my own code) against an entity framework datasource see below, but the delete gives an exception in my entity framework code..

Here is the code

 <asp:EntityDataSource ID="EntityDataSourceProducts" runat="server" ConnectionString="name=ApogeeCentralEntities" DefaultContainerName="ApogeeCentralEntities" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="Products" >
    </asp:EntityDataSource>


<telerik:RadGrid ID="gridSPCs"
                                  runat="server"
                                  AutoGenerateColumns="True"
                                  ShowGroupPanel="True"
                                  GridLines="None"
                                  AllowSorting="True"
     DataSourceID="EntityDataSourceProducts"
       AllowAutomaticDeletes="True"
       AllowAutomaticUpdates="True"
       AllowAutomaticInserts="True"
      
                                  AllowScroll = "True"
                                  Width="99.9%"
                                  AllowFilteringByColumn="True"
                                  AllowMultiRowSelection="True"
                                  EnableLinqExpressions="false"
                                  ItemStyle-VerticalAlign="Top"
                                  PageSize="25"
                                  AutoGenerateEditColumn="true"
                                  AutoGenerateDeleteColumn="true"
                                
                                  MasterTableView-ClientDataKeyNames="Id"
                                  GroupPanel-ForeColor="#cccccc"
                                  >
    
                                
                                <ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder" ReorderColumnsOnClient="true">
                                    <Animation AllowColumnReorderAnimation="true" ColumnReorderAnimationDuration="300" AllowColumnRevertAnimation="true" />
                                    <Selecting AllowRowSelect="true" />
                                    <Scrolling UseStaticHeaders="true" AllowScroll="true" ScrollHeight="400px" />
                                    <Resizing AllowColumnResize="true" ClipCellContentOnResize="false" EnableRealTimeResize="true" />
                                </ClientSettings>

                                <GroupingSettings ShowUnGroupButton="true" />
                                
                </telerik:RadGrid>


When I try to delete one of the rows, I get an exception in the entity designer code

The exception is..

The property 'Name' cannot be set to a null value.

Here is the code where the exception happens

[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, false, "Name");//this line gives exception
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }

Edits are working fine, this is just on DELETE that I am getting this error!!  Any ideas?

Thanks for your help in advance!


By the way I just realized it only gives this error if the name is null in the data being deleted but still not sure why?  Why does it matter if the name is null if the row is just being deleted?
Andrey
Telerik team
 answered on 12 Aug 2013
4 answers
480 views
Hello:

 I need help to display Telerik grid controls to display data from SQL Server using a REST web service as a data source. Can anyone help me please.

Thanks
Tsvetoslav
Telerik team
 answered on 12 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?