Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
1.1K+ views
In the attached page, the button set not to display with style="display:none", displays the rounded right side of the button when FormDecorator is applied.

Any ideas?  Currently i just bumped it off the page, but I would like to get it fixed properly.


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="nobutton.aspx.vb" Inherits="Junk_nobutton" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> 
<%@ Register Assembly="System.Web.Ajax" Namespace="System.Web.UI" TagPrefix="asp" %> 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
     
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true" CombineScripts="false">        </asp:ToolkitScriptManager> 
<telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" EnableEmbeddedSkins="true" Skin="Forest" DecoratedControls="All"/> 
       
     
<asp:Table runat="server" ID="tblbtn" HorizontalAlign="Left" > 
    <asp:TableRow> 
        <asp:TableCell> 
            <asp:Button ID="buttonOpen" runat="server" CausesValidation="false" style="display:none"   OnClientClick="javascript:popUp('help/cmj.aspx?lt=3')" />   
        </asp:TableCell> 
    </asp:TableRow> 
</asp:Table> 
  
 <asp:PopupControlExtender ID="PopupControlExtender1" runat="server" PopupControlID="buttonOpen" TargetControlID="buttonOpen"></asp:PopupControlExtender> 
     
     
  <script type="text/javascript" language="javascript"
      function popup2(checkbox) { 
          if (checkbox.checked) 
              $get('<%= buttonOpen.ClientID %>').click(); 
          return true; 
      }   
  </script>  
    
    </div> 
    </form> 
</body> 
</html> 
 

Mohammed
Top achievements
Rank 2
 answered on 17 Aug 2012
3 answers
196 views

 

Good day,

We would like to know if is there any way to apply style of a control to an another. We have table inside RadPanelBar. Its looks fine with Metro style. Text is gray (#767676) and also there is bigger space between rows. If table is outside RadPanelBar, text is black and row space is not so big.

Question is how to apply style from RadPanelBar to another object. We apply class rfdAspLabel. Text is good colored but that’s all. There is now style for table formatting.


Thank you in advance for your advice.

Tsvetina
Telerik team
 answered on 17 Aug 2012
1 answer
123 views
I'm using RadScheduler (2012.2.724.40) set to MonthView to display a series of Appointments. In our app, Appointments are actually scheduled events (sent to Quartz Scheduler) requiring a precise start time but no end time, so we set the duration for all of them to 30 minutes just for display purposes. I'd like to keep the MonthView active, as our app has events spread out over the course of a month or more within a given context.

However, when adding an Appointment from MonthView, the StartTime defaults to 12:00 AM on the day of the appointment (an all-day appt) and does not change despite unchecking All Day and setting StartTime in the advanced form. What is the best way to work around this behavior?
James
Top achievements
Rank 1
 answered on 17 Aug 2012
3 answers
162 views
Hi,

We have a situation where we need to restrict user to input only numbers and the limit should be 15 digits with 2 precision.
We tried using the below code and looks there is a restriction of using more than 9 digits:

<telerik:RadMaskedTextBox ID="tbQuantity" runat="server" SelectionOnFocus="SelectAll"                                                                 AutoPostBack="true" Mask="<0..9999999999999>.<0..99>" />

We also tried the below from Telerik demos but the "." comes end like "111111." even though we type "111.111"
 <telerik:RadMaskedTextBox ID="txtNewPrice" runat="server" DisplayFormatPosition="Right" HideOnBlur="true" EmptyMessage="" Mask="##############.##" DisplayMask="##############.##" />

Please help in this regard. 

Thanks.
Mohan
Top achievements
Rank 1
 answered on 17 Aug 2012
4 answers
546 views
I use standard filters for each grid column. The functionality works fine.
But we would like to fit the filter controls automatically when user resizes the columns.

Grid contains corresponding property "FilterControlWidth" and it is possible to set it to "100%". But, unfortunately, it doesn't work as we expected. The "100%" width can be specified only for the textbox and it means that corresponding filter icon always wraps.
The similar problem is for DateTime columns with textbox and 2 icons (date selection and filter).

The idea is to set "100%" for a wrapper on the textbox and filter icon in order to avoid the filter row wrapping.

Is it possible to fit the filter controls automatically?
Vamsi Kamal
Top achievements
Rank 1
 answered on 17 Aug 2012
8 answers
381 views
Is there a way to narrow this column? right now the range filter is quite wide is there a way to stack the datepickers instead of having them appear side by side, this takes up an enourmous amount of grid real estate.  I have tried filtercontrolwidth and it had no effect at all.  Please assist, thank you.
Pavlina
Telerik team
 answered on 17 Aug 2012
1 answer
70 views
Hello, 

I want to set the VirtualItemCount to the number of items within a SQL query. Following this example : http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx .

How would I set the Virtual item count whenever I do a query within the defaultcs.aspx NeedDataSource, and update the grid?

Thank you, Joe Nguyen
Andrey
Telerik team
 answered on 17 Aug 2012
1 answer
99 views
Hi everyone,

I have a "radtreeview" containing a contexmenu authorizing the user to create a new folder. I used th following example :
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx 

When we click on the "create folder" item, the treeview allow us to edit it, I would like to save the name of this new node in my db. So I tried to put my methods of saving in the treeview event "OnNodeEdit", but it does not pass by this event.

My question is thus the following one: on what server side event may I introduce my saving?

Thx a lot.
David
Top achievements
Rank 1
 answered on 17 Aug 2012
1 answer
51 views
I need to supress few charecters while copying text from MS Word to RadEditor control such as ' (single quote)  and " (Double quotes). Below is the example.
 

Below employees are requested me at HR’s desk in

“Chris”

“Jhon”


This is different from the radEditior text

Below employees are requested me at HR's desk in

"Chris"

"Jhon"


is there any way to replace\supress this type of data as well ?
I have used reEditor.StripFormattingOptions = Telerik.Web.UI.EditorStripFormattingOptions.MSWordRemoveAll;
but not helped.
Rumen
Telerik team
 answered on 17 Aug 2012
1 answer
93 views
Hi,
I use the TimeView with a custom collection according to http://demos.telerik.com/aspnet-ajax/calendar/examples/datetimepicker/customcollection/defaultcs.aspx

The custom collection is needed because the user should be able to select the time 23:59. But this does not work in other timezones: when not in the same timezone as UTC time, the picker "results" in another time than the selected. For example, if I pick 23:59, the time in the textbox results in 21:59 for my timezone. Every other time is ok - for example if I pick 12:00, it picks the right one. It seems that the property UseClientTimeOffset does not work for this particular time 23:59?

 

public static void SetA4DValidTimeView(this RadTimeView timeView)
{
    ArrayList arrayList = new ArrayList();
    arrayList.Add(new DateTime(DateTime.UtcNow.Year, DateTime.UtcNow.Month, DateTime.UtcNow.Day, 23, 59, 0));
    for (int hour = 1; hour < 24; hour++)
        arrayList.Add(DateTime.UtcNow.Date.AddHours(hour));
    timeView.DataList.DataSource = arrayList;
}

 

 

I created a class in order to use the UseClientTimeOffset property.

 

 

public class A4DRadTimeView: RadTimeView
   {
       public A4DRadTimeView()
       {
           this.SetA4DValidTimeView();
           base.UseClientTimeOffset = true;
       }
   }

Markup:
<MCN:A4DRadDateTimePicker runat="server" ID="dateTimePickerDepartureTime" Enabled="false"
    CssClass="labelregular" Calendar-CultureInfo="en-US" SharedTimeViewID="A4DSharedTimeView">
    <DateInput EmptyMessage="____-__-__ __:__">
        <ClientEvents OnValueChanged="inputValueChanged" />
    </DateInput>
                                     
</MCN:A4DRadDateTimePicker>
<MCN:A4DRadTimeView ID="A4DSharedTimeView" runat="server"></MCN:A4DRadTimeView>


Script:
function inputValueChanged(sender, args) {
    
    var newValue = args.get_newValue();
    var dateFormat = sender.get_dateFormat();
    var date = args.get_newDate();
    if (date != null) {
        if (newValue.indexOf(sender.get_dateFormatInfo().TimeSeparator) < 0 &&
                    date.getHours() == 0 &&
                        date.getMinutes() == 0 &&
                            date.getSeconds() == 0) {
            date.setHours(0);
            date.setMinutes(01);
              
            sender.set_value(date.format(dateFormat));
        }
    }
     
}


Lars Friede
Top achievements
Rank 1
 answered on 17 Aug 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?