Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
297 views
I have column with values for example 7566503,51 and I want use thousand separator like 7 566 503,51 in view mode.

This is *.aspx code:

<telerik:GridNumericColumn DataField="G17 - WYKONANIE MC3" 
                    DataType="System.Decimal" DecimalDigits="2" DataFormatString="{0:N}"
                    FilterControlAltText="Filter G17 - WYKONANIE MC3 column" 
                    HeaderText="WYKONANIE MC3" SortExpression="G17 - WYKONANIE MC3" 
                    UniqueName="G17 - WYKONANIE MC3">
                </telerik:GridNumericColumn>

I set DataFormatString {0:N} and {0:# ### ###,##} and {0:#.###.###,##}, but doesn't work. Have anyone some idea to resolve my problem??
sebastian
Top achievements
Rank 1
 asked on 15 Jul 2011
0 answers
240 views
Here is a list of the known problems occurring in RadImageEditor in the Q2 2011 release. They will be fixed for the next service pack and will appear in the upcoming internal builds.

  • The undo operation in Internet Explorer, versions 6-8 is not functioning. In order to have it working, please, apply the following workaround:

    Telerik.Web.UI.ImageEditor.prototype._undo = function(depth)
    {
        if (depth > this._undoStack.length) depth = this._undoStack.length;
        var operationsToUndo = this._undoStack.splice(this._undoStack.length - depth, depth);
     
        if(this._getLastServerOperation(operationsToUndo))
            this._undoFromServerOperation(operationsToUndo);
        else
            this._simpleUndo(operationsToUndo);
         
        var lastOp = this._undoStack[this._undoStack.length - 1];
        this._statusBar.setValue((lastOp?lastOp.get_text():"None"),"lastAction");
        this._statusBar._updateSizeInternal();
        this.updateClientState();
     
        if(this._currentToolWidget){this._currentToolWidget.updateUI();}
        this._enableDisableUndoRedoTools();
    }
  • Another issue is related to the crop dialog in Internet explorer 7. When it is closed and a different dialog is being opened, a JavaScript error is raised. The fix for this issue will be available with the next internal build. There is no workaround for the Q2 2011 official build.

  • The icon of a custom button does not show correctly on hover. To fix the problem use the CSS code below where rieCustom is the class applied to each command with name Custom. rie stands for RadImageEditor and Custom is the command name:
    <style type="text/css">
    .RadImageEditor .rtbItemHovered a.rieCustom .rtbIcon,
    .RadImageEditor .rtbChecked a.rieCustom .rtbIcon
    {
         top: 3px;
    }
    </style>
    ...
    <telerik:RadImageEditor ID="RadImageEditor1" runat="server" ImageUrl="~/Images/m5_1.png"
                Width="960px" Height="450px">
    <Tools>
       <telerik:ImageEditorToolGroup>
            <telerik:ImageEditorTool CommandName="Custom" ImageUrl="Icons/tool.png"  />
       </telerik:ImageEditorToolGroup>
    </Tools>
    </telerik:RadImageEditor>
  • Resize and Crop dialog visual glitch in IE6 - IE8, which you can fix using the class below:

    <style type="text/css">
        /*IE6,7,8 problem in Resize and Crop dialogs*/
        .rieDialogsTable.RadForm .rfdRoundedWrapper input
        {
            width: 40px\9 !important;
        }
    </style>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 15 Jul 2011
1 answer
123 views
Telerik Grid Hierarchy: Details Grid Paging runs the paging of the main grid,

i.e, when I click on the page 2 in the details grid, the main grid show the second page

i want to keep the main grid as it's and show the second page of the detail grid.

This is my code

<telerik:RadGrid ID="gridPinHistory" runat="server" AllowFilteringByColumn="True"

AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"

CellSpacing="0" GridLines="None" Skin="Office2007" OnPageIndexChanged="gridPinHistory_PageIndexChanged"

AllowCustomPaging="false" OnNeedDataSource="gridPinHistory_NeedDataSource" OnDetailTableDataBind="gridPinHistory_DetailTableDataBind">

   <PagerStyle Mode="NextPrevNumericAndAdvanced" />

   <MasterTableView TableLayout="Auto" DataKeyNames="PIN">

     <Columns>

       <telerik:GridTemplateColumn HeaderText="PIN" DataField="PIN" AllowFiltering="true">

         <ItemTemplate>

           <asp:LinkButton ID="lbtnSearchCustomer2" runat="server" Text='<%# Eval("PIN") %>'

           OnClientClick="" />

         </ItemTemplate>

       </telerik:GridTemplateColumn>

       <telerik:GridBoundColumn DataField="OrderID" HeaderText="Order ID" DataType="System.Int32">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="OrderDate" HeaderText="Order Date" DataType="System.DateTime">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="Last_RCOrderID" HeaderText="Last Recharge Order ID"

       DataType="System.String">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="Last_RCDate" HeaderText="Last Recharge Date"

       DataType="System.DateTime">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="PhoneCardName" HeaderText="PhoneCard Name"                             DataType="System.String">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="FaceValue" HeaderText="Face Value" DataType="System.String">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="TollFree" HeaderText="Toll Free" DataType="System.String">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="SwitchAccountNumber" HeaderText=" Switch Account ID"

       DataType="System.String">

       </telerik:GridBoundColumn>

       <telerik:GridBoundColumn DataField="Provider" HeaderText="Provider" DataType="System.String">

       </telerik:GridBoundColumn>

     </Columns>

    <DetailTables>

   <telerik:GridTableView runat="server" AllowPaging="true" PageSize="10" Name="PinOrders"

    AllowCustomPaging="false" DataKeyNames="OrderID">

 <RowIndicatorColumn>

 <HeaderStyle Width="20px" />

 </RowIndicatorColumn>

 <ParentTableRelation>

 <telerik:GridRelationFields DetailKeyField="PIN" MasterKeyField="PIN" />

 </ParentTableRelation>

<Columns>

  <telerik:GridBoundColumn DataField="OrderID" HeaderText="Order ID" DataType="System.Int32">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="OrderDate" HeaderText="Order Date" DataType="System.DateTime">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="OrderType" HeaderText="Order Type" DataType="System.Double">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="SubTotal" HeaderText="Sub Total" DataType="System.Double">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="OrderDiscount" HeaderText="OrderDiscount" DataType="System.String">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="ProdDiscount" HeaderText="ProdDiscount" DataType="System.String">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="DiscountCode" HeaderText="DiscountCode" DataType="System.String">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="RefCredit" HeaderText="RefCredit" DataType="System.String">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="TransFee" HeaderText="TransFee" DataType="System.String">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="GrandTotal" HeaderText="Grand Total" DataType="System.Double">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="IP" HeaderText="IP" DataType="System.String">

  </telerik:GridBoundColumn>

  </Columns>

</telerik:GridTableView>

</DetailTables>

</MasterTableView>

<FilterMenu EnableImageSprites="False">

</FilterMenu>

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

</HeaderContextMenu>

</telerik:RadGrid>

protected void gridPinHistory_PageIndexChanged(object sender, Telerik.Web.UI.GridPageChangedEventArgs e)

{

 if (ViewState["PinHistory"] != null)

  {

     gridPinHistory.CurrentPageIndex = e.NewPageIndex;

     gridPinHistory.DataSource = ViewState["PinHistory"];

     gridPinHistory.DataBind();

  }

}

 

 

protected void gridPinHistory_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

{

 if (ViewState["PinHistory"] != null)

 {

    gridPinHistory.DataSource = ViewState["PinHistory"];

 }

}

Thanx

Iana Tsolova
Telerik team
 answered on 15 Jul 2011
2 answers
61 views
Hello.

When I have an appointment that crosses two days (from 2011-07-07 23:00:00 to 2011-07-08 2:00:00), for example, I see the appointment in the day it starts but not in the day it ends, in DayView. I see the appointment across the two days in WeekView and MonthView.
This behaviour is similar when an appointment crosses weeks, I see it in WeekView in the week it starts but not in the week it ends.

I appreciate any help on this subject.

Susana Magalhães
Susana
Top achievements
Rank 1
 answered on 15 Jul 2011
5 answers
124 views
Hi,

The data format string 'MMM' display a point (janv.) with culture 'fr-FR'.
But when whe export data in Excel, it is not recognize like a date and user can't change display for another date format.

Can you help me to display abreviate month without point like 'en-GB', for compatibility with Excel date format.
Anne

Precisions :

DataFormatString

 

="{0:dd-MMM-yy}" = 03-janv.-11 (fr-FR)

 

DataFormatString="{0:dd-MMM-yy}" = 03-jan-11 (en-GB)

 

Daniel
Telerik team
 answered on 15 Jul 2011
2 answers
73 views
I'm using pagination for my gridview but when I export gridddata to excel, only grid first page records are being exported.

I'm using below code to export which was suggested by you.
 

 

gviewTracker.ExportSettings.ExportOnlyData = true;
gviewTracker.HeaderStyle.Wrap = false; 
gviewTracker.MasterTableView.Width = 1800;
  
gviewTracker.ExportSettings.IgnorePaging = true;
  
gviewTracker.ExportSettings.OpenInNewWindow = true;
 gviewTracker.MasterTableView.ExporttoExcel();

I'm using Q32009sp1 version for above functionality.

 


Could you please help me out for above.

Advance Thanks,
Prasad.

 

Daniel
Telerik team
 answered on 15 Jul 2011
1 answer
109 views
I have tried for 3 days and still can't make it work.
As you know, by default, when exporting to MS Word, the page orientation is Portrait, and the column witdth is auto-resize according to the document size.

Is these two features above really available in lastest Telerik ASP.NET AJAX 2011?

Thanks

LamK.
Daniel
Telerik team
 answered on 15 Jul 2011
6 answers
315 views
Hi,
I need to change the fore color & background color of button on confirm dialog box on Radgrid delete command popup .
How can I change the CSS for pop.I have to make good look of pop window which is appear on click the delete button on RdGrid.
Please tell me how can i change the css for grid delete command popup.

Thanks
Jaichand
Top achievements
Rank 1
 answered on 15 Jul 2011
1 answer
173 views
Hello!

I add to my page dinamics RadCharts but when I redraw this RadCharts I can change tittle and I can do a invisible legend but I can't reset the series and also I can't change the skin of this RadChart.

Do you know how I can reset o remove this series? I have tried all of series.Remove() that I see but nothing do well.

Thanks!

This is the code that I call when I want to redraw my Radcharts:

 

 

Dim rcCuadro As New RadChart

 

 

 

Dim TablaFila As New HtmlTableRow()

 

 

 

Dim TablaCelda As New HtmlTableCell()

 

rcCuadro.Clear()

rcCuadro.Series.RemoveSeries()

rcCuadro.Chart.Series.RemoveSeries()

rcCuadro.Chart.Series.ClearItems()

rcCuadro.Chart.Series.ClearDataBoundState()

rcCuadro.PlotArea.SeriesCollection.RemoveSeries()

 

rcCuadro.RemoveAllSeries()

rcCuadro.Series.ClearDataBoundState()

rcCuadro.Series.ClearItems()

rcCuadro.Series.Clear()

rcCuadro.Series.RemoveSeries()

rcCuadro.ChartTitle.TextBlock.Text = dvCuadros(i).Item(

 

"NSERIE")

 

 

 

Dim FechaFinTemp As DateTime = FechaInicio.AddMonths(-11)

 

SetXAxis(FechaFinTemp, rcCuadro)

rcCuadro.PlotArea.XAxis.LayoutMode =

 

ChartAxisLayoutMode.Between

 

rcCuadro.PlotArea.YAxis.AutoScale =

 

False

 

SetYAxis(rcCuadro)

 

 


Dim
CollSerieRM As ChartSeriesCollection = New ChartSeriesCollection(rcCuadro.Chart)

 

 

 

Dim CollSerieF As ChartSeriesCollection = New ChartSeriesCollection(rcCuadro.Chart)

 

 

 

Dim SerieActivaRM As ChartSeries = New ChartSeries("RM A", ChartSeriesType.Bar, CollSerieRM)

 

 

 

Dim SerieActivaF As ChartSeries = New ChartSeries("F A", ChartSeriesType.Bar, CollSerieF)

 

 

 

Dim SerieReactivaRM As ChartSeries = New ChartSeries("RM A", ChartSeriesType.Bar, CollSerieRM)

 

 

 

Dim SerieReactivaF As ChartSeries = New ChartSeries("F R", ChartSeriesType.Bar, CollSerieF)

 

CollSerieRM.Add(SerieActivaRM)

CollSerieRM.Add(SerieReactivaRM)

CollSerieF.Add(SerieActivaF)

CollSerieF.Add(SerieReactivaF)

SerieActivaRM.Appearance.BarWidthPercent = 50

 

 


Dim
FechaTemp As DateTime = FechaInicio.AddMonths(-11)

 

 

 

While FechaTemp <= FechaInicio

 

 

 

Dim oTeleastros As New AFEI.afeiNegocio.clsTeleastros

 

 

 

Dim dvCuadrosMes As DataView

 

 

 


 

SerieActivaRM.AddItem(

 

Math.Round("55555,0", 2))

 

SerieActivaF.AddItem(

 

Math.Round("58895,6666",2))

 

SerieReactivaRM.AddItem(

 

Math.Round("99999,66",2))

 

SerieReactivaF.AddItem(

 

Math.Round("152255,888", 2))

 

rcCuadro.Series.Add(SerieActivaRM)

rcCuadro.Series.Add(SerieActivaF)

rcCuadro.Series.Add(SerieReactivaRM)

rcCuadro.Series.Add(SerieReactivaF)

rcCuadro.Skin =

 

"Telerik"

 

rcCuadro.Width =

 

"1000"

 

rcCuadro.Height =

 

"250"

 

rcCuadro.Legend.Appearance.Visible =

 

False

 

rcCuadro.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Right

 

rcCuadro.Chart.PlotArea.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.BottomRight

 

rcCuadro.ID =

 

"rc_" & dvCuadros(i).Item("NSERIE")

 

 

 

'rcCuadro.DataBind()

 

 

 

 

Me.Page.Form.Controls.Add(rcCuadro)

 

TablaCelda.Controls.Add(rcCuadro)

TablaFila.Cells.Add(TablaCelda)

TableChart.Rows.Add(TablaFila)

 

SerieActivaRM =

 

Nothing

 

SerieActivaF =

 

Nothing

 

SerieReactivaF =

 

Nothing

 

SerieReactivaRM =

 

Nothing

 

Yavor
Telerik team
 answered on 15 Jul 2011
1 answer
746 views
Hi,

In my applicationn i had a RadDatePicker with the following syntax:

<telerik:RadDatePicker ID="txtDate" Runat="server" Skin="Sunset" 
                 FocusedDate="" MinDate="01/01/2006" ShowPopupOnFocus="True" TabIndex="20" 
                 Width="155px" MaxDate="01/01/2020">
                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" 
                                         ViewSelectorText="x" Skin="Sunset"></Calendar>
                                       <DatePopupButton ImageUrl="" HoverImageUrl="" TabIndex="20"></DatePopupButton>
                    <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="MM/dd/yyyy" TabIndex="20"></DateInput>
             </telerik:RadDatePicker>

My requirement is i need to bind 10 days back date from today's date to RadDatePicker with the following syntax:

txtDate.SelectedDate =DateTime.Now.Date.AddDays(-10);

Here i am getting the following error:

Value of '7/2/2011 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

Any one please suggest me the solution for this?

It's very urgent...

Thanks in advance...
Vasil
Telerik team
 answered on 15 Jul 2011
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
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
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?