Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
249 views
Hello,

I'm using the rad controls radial gauge and have 4 ranges of various colors in the gauge.  My issue is that the color bands appear very thin.  Is it possible to adjust the thickness of these bands so they are more easily visible?  Thanks.

Greg
Danail Vasilev
Telerik team
 answered on 15 Apr 2015
1 answer
75 views

Hi

I have a Grid with batch edit mode .The user fill grid rows then press save button.Then a valdation occurs on server side for code duplication chek .How we can restore grid rows(items) after postback and validation fails?

 

Thanks very much.

 

Maria Ilieva
Telerik team
 answered on 15 Apr 2015
1 answer
481 views

i am trying to set the rowheight of RadGrid to eg. 20 px.

RadGrid provides a property: mastertableview.itemstyle.height

but this doesnt work :-)

Is there any possibility to set RadGrids rowheight to fixed heigth???

 

Thanks in advance.

Alexander
Top achievements
Rank 1
 answered on 14 Apr 2015
2 answers
176 views
I've got a TabStrip that is generated dynamically server side.  With this, all the tabs start out disabled and I have a Next/Previous button setup so that as you click Next, it enables the next tab and selects it.

As I click the Next button, it does not seem the show any contents for the tab which was odd.  But, as I go through, the selection of the tabs seems to work fine.  If I click on a tab to jump to it after it's been enabled, I see the contents just fine. ( TabClick Event ).

So, I took a look and during inspection, all of my content is on the page, but it looks like the server side selection ( tab.Selected = true ) isn't removing the class="rmpHiddenView" from the tab, so it's never visible.

Thoughts?

Guillermo
Top achievements
Rank 1
 answered on 14 Apr 2015
1 answer
89 views

The following code doesn't work - it doesn't cause the controls to fire their client-side events in edit mode - any thoughts?

 CS:

protected void rgRepricingApproval_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = (GridEditableItem)e.Item;
 
                GridEditManager editMan = item.EditManager;
                 
                GridNumericColumnEditor editorAgreedSellPrice = (GridNumericColumnEditor)editMan.GetColumnEditor("AgreedSellPrice");
                RadNumericTextBox txtAgreedSellPrice = editorAgreedSellPrice.NumericTextBox;
                txtAgreedSellPrice.ClientEvents.OnValueChanged += string.Format("return ToggleValues({0});", e.Item.ItemIndex);
 
                RadDropDownList rcbHibernate = (RadDropDownList)item.FindControl("ddlHibernateID");               
                rcbHibernate.OnClientSelectedIndexChanged += string.Format("return ToggleValues({0});", e.Item.ItemIndex);
 
                // ONLY THIS WORKS (non-Telerik)
                CheckBox chkIsError = (CheckBox)item.FindControl("chkIsError");
                chkIsError.Attributes["onchange"] += string.Format("return ToggleValues({0});", e.Item.ItemIndex);
            }           
        }

 

 ASPX:

 

<telerik:GridNumericColumn HeaderText="Agreed Sell Price" UniqueName="AgreedSellPrice" DataField="AgreedSellPrice" NumericType="Currency" DecimalDigits="3" ColumnEditorID="ceAgreedSellPrice">
                    <HeaderStyle Width="120px" />
                    <ItemStyle Width="120px" />
                </telerik:GridNumericColumn>               
                <telerik:GridTemplateColumn HeaderText="Hibernate Period" UniqueName="HibernateID" DataField="HibernateID" ConvertEmptyStringToNull="true">
                    <HeaderStyle Width="110px" CssClass="headerHibernate" />
                    <ItemStyle Width="110px" Height="50px" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblHibernate" Text='<%# Eval("Hibernate.HibernateText") %>' />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadDropDownList runat="server" ID="ddlHibernateID" AppendDataBoundItems="true" DataSourceID="edsHibernate" DataValueField="HibernateID" DataTextField="HibernateText">
                            <Items>
                                <telerik:DropDownListItem Value="" Text="" />
                            </Items>
                        </telerik:RadDropDownList>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Error?" UniqueName="Error" AllowSorting="false" AllowFiltering="false">
                    <HeaderStyle Width="60px" CssClass="headerError" />
                    <ItemStyle Width="60px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:CheckBox ID="chkIsError" runat="server" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Error Reason" UniqueName="ErrorReason" DataField="ErrorReason">
                    <HeaderStyle Width="200px" CssClass="headerError" />
                    <ItemStyle Width="200px" />
                    <ItemTemplate>
                        <asp:TextBox ID="txtErrorReason" runat="server" TextMode="MultiLine" Columns="20" Rows="2" Enabled="false" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

 All items are in edit mode:

 

protected void rgRepricingApproval_PreRender(object sender, EventArgs e)
        {
            for (int i = 0; i < rgRepricingApproval.MasterTableView.PageSize; i++)
            {
                rgRepricingApproval.EditIndexes.Add(i);
            }

            rgRepricingApproval.Rebind();
        }

Viktor Tachev
Telerik team
 answered on 14 Apr 2015
6 answers
99 views
I am using the 2014.2.724.40 version of the Telerik controls for ASP.NET AJAX.  When I upgraded from a 2009 version the functionality in my export code in my web application appears to have changed creating problems. ( I did also upgrade the application from VS 2008 to VS 2010.)  I have a user who takes the Excel spreadsheet of exported data and imports it into a MS Access db.  The first thing she noticed was that the field names changed from having no spaces in the names to having spaces, which interrupted her import process.  Next she noticed that the field data types were not matching either.  Prior to the upgrade all this had worked satisfactorily.  I have been able to replicate this myself and identified that date and Boolean fields are now coming across as short text data types.

This is a summary of the process:  When the user selects "Export All Fields" and clicks the Export button (see attached screen print) the code calls a SP that retrieves about 80 fields of data from a SQL Server db. A hidden radgrid is then populated with these fields and data.  Next, this data is then exported to an Excel spreadsheet.  I think I have been able to determine that at least part of the 'problem' is in the population of the radgrid, as I have discovered in stepping through the code that the 'date fields' in the grid have a DataTypeName of System.String.  Under MasterTableView I have set AutoGenerateColumns to True with no apparent positive result. 

Below is my hidden radgrid first and then the export code.
    <telerik:RadGrid ID="RadGridExport" runat="server" Visible="False" >
        <ExportSettings ExportOnlyData="True" IgnorePaging="True" Excel-Format="Biff" HideStructureColumns="True">
            <Excel Format="Biff" />
        </ExportSettings>
        <MasterTableView ShowHeader="False" AutoGenerateColumns="True">
 
            <RowIndicatorColumn Visible="False">
            </RowIndicatorColumn>
            <ExpandCollapseColumn Created="True">
            </ExpandCollapseColumn>
 
        </MasterTableView>
        <FilterMenu EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200">
            </CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>
 
--------------------------
Public Sub ExportRadGrid(ByRef radGrid As Telerik.Web.UI.RadGrid)
        '-- Export the specified grid to the specified format
        radGrid.Visible = True
        radGrid.Rebind()
        With radGrid.ExportSettings
            If radGrid.ID = "RadGrid1" Then
                .FileName = "DivisionTotals"
            ElseIf radGrid.ID = "RadGrid2" Then
                .FileName = "GrantorTotals"
            Else
                .FileName = "GrantList"
            End If
            .ExportOnlyData = True
            .IgnorePaging = True
            .OpenInNewWindow = True
        End With
 
        Select Case ddlExportFormat.SelectedValue
            Case "Microsoft Excel"
                If radGrid.ID = "RadGrid1" Then
                    For Each col As GridColumn In radGrid.MasterTableView.RenderColumns
                        col.HeaderStyle.Width = Unit.Pixel(175)
                    Next
                ElseIf radGrid.ID = "RadGrid2" Then
                    For Each col As GridColumn In radGrid.MasterTableView.RenderColumns
                        'For Each col1 As GridColumn In radGrid.
                        col.HeaderStyle.Width = Unit.Pixel(275)
                    Next
                ElseIf radGrid.ID = "RadGridExport" Then    'RadGridGrants on Grants.aspx
                    Debug.Print("START")
                    radGrid.ShowHeader = False
                    radGrid.ExportSettings.SuppressColumnDataFormatStrings = False
 
                    For Each col As GridColumn In radGrid.MasterTableView.RenderColumns
                        Debug.Print("DataTypeName: " + col.DataTypeName)
                        Debug.Print("ColumnType: " + col.ColumnType)
                        Debug.Print("HeaderText: " + col.HeaderText)
                        Debug.Print("UniqueName: " + col.UniqueName)
 
                        col.HeaderText = col.UniqueName
                        'For Each col1 As GridColumn In radGrid.
                        col.HeaderStyle.Width = Unit.Pixel(275)
                    Next
                    Debug.Print("END")
                End If
 
                radGrid.MasterTableView.ExportToExcel()
            Case "Microsoft Word"
                radGrid.MasterTableView.ExportToWord()
            Case "Adobe PDF"
                radGrid.MasterTableView.ExportToPdf()
            Case "CSV"
                radGrid.MasterTableView.ExportToCSV()
        End Select
    End Sub





 Is there some other setting that will synchronize the columns to the SQL data types or would anyone have some other suggestion?

Daniel
Telerik team
 answered on 14 Apr 2015
5 answers
114 views
I'm using the clean sample of a CookieStateStorageProvider from http://demos.telerik.com/aspnet-ajax/persistence-framework/examples/custom-storage-provider/defaultcs.aspx

When the CookieStateStorageProvider tries is called upon a key it does not know, returning null leads to an exception in the PersistenceManager. The thing is that I don't want my view to have to check if this key is already existing or not. It makes more sense that only the CookieStateStorageProvider knows about how to store the state. But what should its method return when the key is not valid/existing?

I tried returning null or String.Empty but none is appreciated my the PersistenceManager.
Daniel
Telerik team
 answered on 14 Apr 2015
3 answers
276 views
I have created a TableCell dynamically in the code behind, then add a RadButton (Toggle ButtonType - CheckBox). But after I installed the latest Telerik AJAX Version 2012 Q3, the vertical alignment of it inside a TableCell suddenly gone wrong.

Attached, please find:

1. Before.png: This is how RadButton is like in Telerik AJAX 2012 Q2
2. After.png    : This is how RadButton is like in Telerik AJAX 2012 Q3.

Thanks

Lamk.
Slav
Telerik team
 answered on 14 Apr 2015
3 answers
169 views
Hello,

I have a web application that we started trying out some of the controls on so they were using a trial version.  We went on to buy a license.  I updated the controls and I believe the project was updated as well.  However, we are continually being prompted that we need to buy a license.  Here is the message we receive:

Thank you for using the Trial Version of RadControls for ASP.NET AJAX to build slicker and better performing applications faster. Purchase the Commercial Version now to get access to the latest updates across the suite and Telerik’s legendary support

How do i get rid of this message? 

Thanks.
Pavlina
Telerik team
 answered on 14 Apr 2015
0 answers
76 views

Hi,

in my web application I use RichTextBox control to load docx template (created in Word 2013), which fill with data and then save this file to local destination.

Problem is, when I save file to local destination, Word 2013 open them in compatibility mode. 

whether richtextbox supports office 2013 files?

 

Thans

 

Dzenisan
Top achievements
Rank 1
 asked on 14 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?