Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
184 views
Hi,

I'm looking for a way to hide the year (everywhere) in a RadDatePicker. My intention is to just hide it, so it wil seem to the user that he only has to select a date and month, and that he doesn't has to mind selecting a year. So far I have:
  RadDatePicker1.DateInput.DateFormat = "dd/MM"
RadDatePicker1.Calendar.TitleFormat = "MMMM"
What I believe is left over is the year-selection-part in the month/year popup in RadCalendar.
Besides "RadDatePicker1.Calendar.EnableMonthYearFastnavigation = false", I'd like it if there was some way to just hide the year-selection-part. 
Is there a way for this?

Thanks!
Laurens
Top achievements
Rank 1
 answered on 25 Sep 2013
1 answer
62 views
Hello:

I have a RadGrid with a Template Column that contains a button. When I click it, displays another RadGrid with a radnumeric control in template column (like a DropDownList). I made an example like this link in an empty aspx page, and it worked perfect. The problem is that I want to replicate this in each radgrid who is shown by the button in the first RadGrid. Any suggestions?

PD: I attached an image to have a better idea.

Thanks.
Angel Petrov
Telerik team
 answered on 25 Sep 2013
1 answer
77 views
bfbg
Danail Vasilev
Telerik team
 answered on 25 Sep 2013
3 answers
119 views
Hi,

Our site is using https, when users click on Hyperlink Manager, warning pops up (see screenshot). It seems like something inside editor tries to access some resource using http instead of https. Can you advice how this can be solved?

Thanks!
Stanimir
Telerik team
 answered on 25 Sep 2013
3 answers
77 views
Hi,

I am using FixEnclosingP content filter, so that content of editor is wrapped in <p> tags automatically. It works in Chrome, but has no effect in IE8. How this can be solved?

Thanks!
Stanimir
Telerik team
 answered on 25 Sep 2013
15 answers
481 views
Hi

I am getting the recurrence rule as a string .So only one row is inserted in the database table for recurring appointments also.
My requirement is quite different.
I need to insert each row for each appointment.For eg : An appointment saved with 10 recurring appointments, results in one row insertion in usual case.For me i need to insert 10 rows to the database table for the 10 appointments.I mean I have to treat it as individual appointments.So how can I acheive that.

And one more thing,the recurrence rule is like a string given below.

"

 

DTSTART:20120201T090000Z DTEND:20120201T092000Z RRULE:FREQ=WEEKLY;UNTIL=20120301T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,SA,SU

 

"

I need to get it as an array or a collection.Is there any built in funtion in rad scheduler for that?..Please help...
Plamen
Telerik team
 answered on 25 Sep 2013
1 answer
299 views
Hi,

My web page have a lot of grid controls. When I move my mouse over a grid, Process of IE (iexplore.exe) takes a lot of CPU (around 50% my CPU or over). If my page have a lot of grid controls, it causes some delay when I scroll the webpage.

You can reproduce the issue by doing the following steps:
1. Navigate to http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx
2. Open Task Manager
3. Move your mouse over the grid, move, move, move and take a lot at iexplore.exe in Window Task Manager, It increases taking % CPU.

My environment:
- IE 8
- Window 7 64 bit. CPU Core 2 Duo E6550.
Deyan Enchev
Telerik team
 answered on 25 Sep 2013
3 answers
179 views
Hey Telerik Community,

I have a problem with how the RadNumericTextBox does its range validation. It does too much, and I am afraid that my users will end up with bad data values.

The Scenario:
When you assign a value to MaxValue, and the user exceeds that maximum value, the textbox auto-corrects the value to the max.

Ex: I set the max value to 9999.9 and allow the user to type in 6 digits using the MaxLength attribute.

The Problem:
The user accidentally types in 123456 and on blur the textbox validates and when validation fails the RadNumericTextBox auto-corrects the value to 9999.9. NOT GOOD for my customer. The values we are saving could put actual lives in harms way if they are not correct.

The Solution:
We would prefer that it simply fail validation, display its fail message, and not allow the user to save the record.

How can this be accomplished?

Thanks!

Snehal
Top achievements
Rank 1
 answered on 25 Sep 2013
1 answer
108 views
I have implemented my combo box easily and it is serving me greatly. below is my combo box code

<telerik:RadComboBox runat="server" ID="ddlProjectTaskSubtask" Filter="Contains" ShowToggleImage="false"
                        DropDownWidth="130px" Style="background: none" Width="130px" MinFilterLength="2" ></telerik:RadComboBox>
All my combo box items are displayed in drop down on page load... now what i want is that those items shouldn't appear on page load and drop down list should be empty until user enters some characters in combo box... after user enter characters, only filtered items should be displayed in drop down.

EDIT: I appologize for the wrong title of this post, i am not finding any option to edit it.
Shinu
Top achievements
Rank 2
 answered on 25 Sep 2013
1 answer
450 views
Hi there ,

i'd like (i guess) something easy but still enough hard for me :)

I'm looking for sorting a raadgrid by clicking on Header Columns.

This is my radgrid : 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TodoGrid.ascx.cs" Inherits="CSN.Phenix.UI.Web.Foundation.CommonControls.TodoList.TodoGrid" %>
<telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="false" GridLines="None"
    AllowSorting="true" AllowPaging="true" AllowCustomPaging="true"
    PagerStyle-Mode="NextPrevAndNumeric" PagerStyle-NextPageText="Next"
    PagerStyle-PrevPageText="Previous" PageSize="10" PagerStyle-Position="Bottom"
    OnNeedDataSource="rg_NeedDataSource" OnItemDataBound="rg_ItemDataBound"
    meta:resourcekey="resourceRgTodo" >
    <MasterTableView DataKeyNames="Id" DataMember="Id">
    </MasterTableView>
</telerik:RadGrid>

I'm generating DataColumn dynamically in code behind : 

private void CreateGridColumnsGeneric()
      {
          int hiddenColumnsCount = 0;
          this.specialColumns = new List<SpecialColumn>();
           
          foreach (DataColumn dataColumn in this.DataSourceObject.GetColumns(this.TabId))
          {
              if (dataColumn.ColumnName == PhxTools.TodoList.SPECIAL_DISPLAY_COLUMN_NAME)
              {
                   
                  // colonne qui permet de savoir si l'on doit afficher la ligne d'une certaine manière
                  // on conserve la colonne pour pouvoir gérer l'affichage de la ligne correctement
                  this.specialColumns.Add(new SpecialColumn()
                  {
                      ColumnName = PhxTools.TodoList.SPECIAL_DISPLAY_COLUMN_NAME,
                      ColumnType = "Special",
                      ColumnDisplayIndex = dataColumn.Ordinal - hiddenColumnsCount
                  });
              }
              else if (dataColumn.ExtendedProperties[PhxTools.TodoList.TODO_GRID_COLUMN_HIDDEN] == null)
              {
                  GridColumn column = null;
 
                  if (dataColumn.ExtendedProperties[PhxTools.TodoList.TODO_GRID_COLUMN_TYPE] != null)
                  {
                      string colType = dataColumn.ExtendedProperties[PhxTools.TodoList.TODO_GRID_COLUMN_TYPE].ToString();
 
                      // les colonnes "hyperliens"
                      if (colType == PhxTools.TodoList.TODO_GRID_COLUMN_HYPERLINK)
                          column = CreateHyperLinkColumn(dataColumn);
                      // les colonnes "images"
                      else if (colType == PhxTools.TodoList.TODO_GRID_COLUMN_IMAGE)
                      {
                          // on conserve la colonne pour pouvoir gérer l'affichage de la ligne correctement
                          this.specialColumns.Add(new SpecialColumn()
                          {
                              ColumnName = dataColumn.ColumnName,
                              ColumnType = PhxTools.TodoList.TODO_GRID_COLUMN_IMAGE,
                              ColumnDisplayIndex = dataColumn.Ordinal - hiddenColumnsCount
                          });
                          column = CreateImageColumn(dataColumn);
                      }
                  }
                  else
                  {
                      // les autres colonnes : on ne fait que du binding
                      column = CreateColumn(dataColumn);
                  }
 
                  if (dataColumn.ExtendedProperties[PhxTools.TodoList.COLUMN_SORT_EXPRESSION] != null)
                      column.SortExpression = dataColumn.ExtendedProperties[PhxTools.TodoList.COLUMN_SORT_EXPRESSION].ToString();
                  else
                      column.SortExpression = null;
 
                  column.HeaderText = dataColumn.ColumnName;
                  if (dataColumn.ExtendedProperties[PhxTools.TodoList.TODO_COLUMN_DISPLAY_NAME] != null)
                      column.HeaderText = dataColumn.ExtendedProperties[PhxTools.TodoList.TODO_COLUMN_DISPLAY_NAME].ToString();
 
                  if (column != null)
                      rg.Columns.Add(column);
              }
              else
              {
                  ++hiddenColumnsCount;
              }
          }
      }

What could i need to add for sorting them ?
Adding SortExpression? How could i do it in code behind ?


Thx in advance :)

J-Marie P. 


Edit : 

Its seems sorting work for the X rows already fill in datasource. ( excepted Imagecolumn and hyperlink colum )
I need to sort on All of my data ,i already have a GetData retriveing without sortedField.So i have to do a GetDataByField() to retrive X first rows then each time i click on header recall this method and give me the X good rows :)

How could i catch click on header ? 

 
Maria Ilieva
Telerik team
 answered on 25 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?