Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
66 views
<telerik:RadNumericTextBox Width="95%" ID="TelphoneNo" AutoCompleteType="Disabled" runat="server"
FocusedStyle-BackColor="Lavender" MaxLength="8" Text='<%# Bind("telephoneno") %>' onkeydown = "return (event.keyCode!=13);">
 <NumberFormat AllowRounding="false" DecimalDigits="0"  GroupSeparator="" GroupSizes="3"   />                                                        </telerik:RadNumericTextBox>

how to check minimum size length=8

Thanks
Tamim Ansa
Tamim
Top achievements
Rank 1
 asked on 10 May 2012
1 answer
123 views
I am using the Web Mail Demo as example to build a simialr type of UI for web app.  I downloaded the source code and built a similar page.  With one exception, the rightPane for loading the main content references CssClass="right-pane".  I have looked through the style sheet and there is no style defined for right-pane.  Am I looking in the wrong place, or am I missing something?

Bryan
Tsvetina
Telerik team
 answered on 10 May 2012
1 answer
99 views
I'm trying to format numbers in the Y axis to 1 decimal.  If I do:
 RadChart1.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.None;
 RadChart1.PlotArea.YAxis.Appearance.CustomFormat = "##.0";
it works(it shows a label with a value of 39.00 as 39.0)

 If I do:
 RadChart1.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Number;
RadChart1.PlotArea.YAxis.Appearance.CustomFormat = "##.0";
it doesn't work (it shows a label with a value of 39.00 as 39.00)

but in the X axis this special custom format works fine (2 lines with the right custom format):
 RadChart1.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.LongDate;
RadChart1.PlotArea.YAxis.Appearance.CustomFormat = "HH:mm\nM/dd";
is the ChartvalueFormat.None required for CustomFormats in the Y axis?
Thanks


Ves
Telerik team
 answered on 10 May 2012
1 answer
364 views
Hi,

I want to use this style for one particular radcombobox.

 div.RadComboBox table td.rcbInputCell { padding-left: 0; padding-right: 4px; }

        div.RadComboBox table td.rcbInputCell .rcbInput { text-align: right; }

        div.RadComboBoxDropDown .rcbItem,
        div.RadComboBoxDropDown .rcbHovered,
        div.RadComboBoxDropDown .rcbDisabled,
        div.RadComboBoxDropDown .rcbLoading
        {
            padding: 4px 4px 4px 20px;
            text-align: right;
        }

but this code affect all the combobox in a page. let me know if you have any solutions,

Thanks in advance,
Dhamu.
Kate
Telerik team
 answered on 10 May 2012
1 answer
261 views
Hello,

I am having rad numeric textbox in a Radgrid.
I dont want to allow more than 2 digits after decimal. Below is numeric textbox. It is not working.

  <telerik:GridTemplateColumn HeaderText="Price" UniqueName="Price">
                     <ItemTemplate>
                        <telerik:RadNumericTextBox  ID="txtNewPrice" runat="server" MaxLength="10" AutoCompleteType="None"  CssClass="CurPriceTxtbox" 
                                  Width="50px"     Type="Number" ShowSpinButtons="false" AllowOutOfRangeAutoCorrect="false" InvalidStyle-Font-Bold="true">
                                      <NumberFormat AllowRounding="false" DecimalDigits="2"  KeepNotRoundedValue="true" GroupSizes="3"/>
                                      <ClientEvents OnValueChanging="ValueChanged" OnError="HandleError"/>
                                  </telerik:RadNumericTextBox> 
                     </ItemTemplate>
                 </telerik:GridTemplateColumn> 
Eyup
Telerik team
 answered on 10 May 2012
0 answers
161 views
Dear Telerik,

I'm experiencing a small problem regarding the radgrid in combination with filtering, paging and using a custom aggregate function.

The scenario is as following:

We have a grid with 1 mastertableview. The columns are not auto generated, but are either bound or a template.
The grid supports filtering (both textbox and combobox filering in the column headers). Also paging is enabled.

In the grid we have 3 columns, named ColumnA, ColumnB, ColumnC.
ColumnC is the calculated result of ColumnA x ColumnB.
Below ColumnA and ColumnC we show 2 total footers. For this we used the aggregate function SUM. This works like a charm, and the totals are shown in the footer of the grid.This is the total of ALL items currently available in the grid. In other words, the total does both respect the filter and the paging. (say my datasource has 100 items, my filter reduces it to 70, and my page shows 50 items, the sum is calculated over 70 items, this is what we want).

In the footer of the ColumnB we want to show an average in the form of SUM(ColumnC) / SUM(ColumnA). For this we can't simply use the aggregate function AVG on ColumnB as it would give a different result than the one we need.

Whats the best approach to get the desired functionality?

I've tried to use the item databound event, but then it ignores the filter and i get to many items.
I've tried to use the custom aggregate function, but when i access the items from the masterviewtable, it only returns me the items of the current page i am in.

Atm i solved it in the pre render method. There i accesed the footer items for ColumnA and ColumnC, parsed the text properties back to values and calculated the result, and then set it to the footer of ColumnB.

But i am sure there must be some other approach.

Thanks in advance,

Ramon
RR SoftSol
Top achievements
Rank 1
 asked on 10 May 2012
0 answers
126 views

hi, 
when I export my radGrid which contain French character in column title , titles appears in chine character in excel result . 

This is my export config and event code .

Thank’s 



public void ConfigureExport()
  {
      try
      {
 
          
          GridPJ.ExportSettings.FileName = getExcelFileName((CImport)Session["CImport"]);
          GridPJ.ExportSettings.IgnorePaging = true;
          GridPJ.ExportSettings.OpenInNewWindow = true;
           
          GridPJ.ExportSettings.ExportOnlyData = true;
          GridPJ.DataBind();
          foreach (GridColumn col in GridPJ.MasterTableView.RenderColumns)
          {
              col.Visible = true;
              col.Display = true;
 
          }
 
          GridPJ.Rebind();
      }
      catch (Exception e)
      {
 
      }
 
 
 
  }
 
  protected void GridPJ_ItemCommand(object source, GridCommandEventArgs e)
  {
      if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
         e.CommandName == Telerik.Web.UI.RadGrid.ExportToPdfCommandName ||
         e.CommandName == Telerik.Web.UI.RadGrid.ExportToCsvCommandName)
              {
                  ConfigureExport();               
              }
   }
Sofiene
Top achievements
Rank 1
 asked on 10 May 2012
3 answers
280 views
hi all,

well i have a question, i am using a telerik RadGrid to bind the data from the server end and i need the filter that data on the client end without hitting the server again i.e. without getting the data back from database.

i know it is possible with using columns and binding the data back with GridBoundColumn but my problem is that i am using ItemTemplate within which i am creating the table to make it look just like my client needs, so is it possible to filter the data in the ItemTemplate without columns(gridboundcolumns).

i hope i make sense out of it.

Thanks in advance, 

waiting for the possible solution asap.

Gaurav Sharma
Eyup
Telerik team
 answered on 10 May 2012
3 answers
236 views
Hello,

As I know it is not possible to upload the whole folder/directory using RadAsyncUpload control.
However, when I drag and drop folder, it is accepted, but upload fails of course.

Is there any way to cancel drop folder event?

I tried something like this:
function OnClientFileUploaded(sender, eventArgs) {
   if (eventArgs.get_fileInfo().ContentLength == 0 && eventArgs.get_fileInfo().ContentType == null) {
                $("#" + "<%= hfRemoveFileIndex.ClientID %>").val(eventArgs.get_fileInfo().Index);
                $("#" + "<%= btnRemoveFile.ClientID %>").click();          
            }
        }
And on server side
protected void btnRemoveFile_OnClick(object sender, EventArgs e)
{
    int indexID = int.Parse(hfRemoveFileIndex.Value);
    RadAsyncUpload1.UploadedFiles.RemoveAt(indexID);
}
But then all uploaded files are lost, not just the problematic folder.

Alternately I when process uploaded files I can ignore those where the ContentLength is 0, but this also makes problems when user wants to upload empty file.

Thanks
Marko
Plamen
Telerik team
 answered on 10 May 2012
9 answers
326 views
I am using the RadTabastrip on demand load example. I have one RadDatePicker in the first usercontrol, which works fine. I want to have 2 raddatepickers in second usercontrol, but when second user control loads by clicking on the second tab, javascript needed to show the popup calender for those 2 raddatepickers does not load, so the raddatepickers don't work.
Can you please suggest how can I make that work?

Thanks.
Om
Top achievements
Rank 1
 answered on 10 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?