Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
I changed my column type from GridBoundColumn to GridDateTimeColumn using the datepicker control. When I edit a row I don't see the textbox with the date in it (see image).  Also how to control the position of the calender control
<%--<telerik:GridBoundColumn SortExpression="EffectiveDate"
                               HeaderText="EffectiveDate" HeaderButtonType="TextButton"
                               DataField="EffectiveDate" UniqueName="EffectiveDate"
                               DataFormatString="{0:MM/dd/yyyy}" Visible="True">
                                <HeaderStyle Width="80px" />
                           </telerik:GridBoundColumn>--%>
                           <telerik:GridDateTimeColumn DataField="EffectiveDate" DataFormatString="{0:MM/dd/yyyy}" PickerType="DatePicker"
                               HeaderText="EffectiveDate" SortExpression="EffectiveDate" DataType="System.DateTime"
                               UniqueName="EffectiveDate" EditDataFormatString="MM/dd/yyyy" >
                               <HeaderStyle Width="170px" />
                           </telerik:GridDateTimeColumn>
.
Iana Tsolova
Telerik team
 answered on 28 Jun 2011
1 answer
83 views
Hi,

Is there an easy way to get the default AdvancedEditTemplate for the scheduler?  I want to tweak the default, but not have to re-write it from scratch and I can't seem to find it.

Thanks.
Plamen
Telerik team
 answered on 28 Jun 2011
8 answers
228 views
When trying to use a .NET DateTimeOffset property for the RadScheduler.DataStartField and DataEndField property, I get the following error on DataBind:

Unable to cast object of type 'System.DateTimeOffset' to type 'System.IConvertible'

Is it possible to use DateTimeOffset as a data field?

Thanks.
Plamen
Telerik team
 answered on 28 Jun 2011
2 answers
158 views
Dear All,

  In radgrid set ShowHeader="false" because no need header. But we need filter for columns. I set Allowfilter="False" but its not working.
can u pls sort out this problem.

thanks
Vinoth
vinoth sansar
Top achievements
Rank 2
 answered on 28 Jun 2011
1 answer
78 views
We are supporting several languages on the same site, and have discovered that not all of the button tooltips are localizable in the current RadEditor Table Wizard (Class Picker, Color Picker, Alignment Selector), further the included CSS has truncation issues (we were able to use our own CSS, notably the tab lengths were of issue) and finally the included sample table makes use of a "calendar months" and "cardinal directions" which aren't localizable into the users culture. (we are using version 2011.1.314.35)

Please see the attached screen captures for more details.
Dobromir
Telerik team
 answered on 28 Jun 2011
5 answers
233 views
I need a breadcrumb to list the nodes of the selected node in a treeview.

so basically I want the same as this demo but with a treeview for the selector instead of another menu.
http://demos.telerik.com/aspnet-ajax/menu/examples/programming/showpath/defaultcs.aspx?Page=Renewals%20&%20Upgrades
Kate
Telerik team
 answered on 28 Jun 2011
1 answer
101 views
Hello! I have a problem with the localization of the grid (I do everything as in your example http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/localization/defaultcs.aspx! But for some reason when you first change the values ​​in the combobox, nothing happens (when the next change lauguage in combobox  language change but on the contrary ((
W
hen I choose the language A chosen  language B and vice versa ((Why is this happening? I use Dnn!!!
Pavlina
Telerik team
 answered on 28 Jun 2011
3 answers
178 views

I've been having some trouble clearing server variables during unload events of pages using RadAjaxManager.

If I click on a link which navigates away from the page, I need to clear a session variable before continuing.  

TestPage.aspx page:
       <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="OnAjaxRequest"  />
        ....
        <a href="google.com">google!</a>
        ...
        <telerik:RadScriptBlock runat="server">
            <script type="text/javascript">
                function onunload(sender, args) {
                    var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
                    ajaxManager.ajaxRequest("pageUnload");                    
                }
                Sys.Application.add_unload(onunload);
            </script>
        </telerik:RadScriptBlock>


TestPage.aspx.cs code:

        protected void OnAjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            if (e.Argument == "pageUnload")
            {
                Session["someSessionVar"] = null;
            }
      }

Unfortunately this does not work.  After the OnAjaxRequest event, the browser remains on the TestPage.aspx.  It does not continue navigating to the original link clicked (google.com).  

How can I set a server variable when a page is navigated away from? 

Thanks,
Josh
Genti
Telerik team
 answered on 28 Jun 2011
4 answers
194 views
I have a simple form with a radMaskedTextBox.  The clientside event is firing correcly, but the control does not put valid characters in to the text box.  I have even tried getting it to accept any value  but it seems that the keypress event is preventing any character from being added.

Any suggestions would be welcome as I am against a brickwall with this one now.

Example page added.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
        function keyPress(sender, eventArgs) {
           var c = eventArgs.get_keyCode();
 
           if ((c < 48) || (c > 57)) {
              eventArgs.set_cancel(false);
                
           }
 
        }
   
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
     
        <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server">
            <ClientEvents OnKeyPress="keyPress" />
        </telerik:RadMaskedTextBox>
     
    </div>
    </form>
</body>
</html>
Ian
Top achievements
Rank 1
 answered on 28 Jun 2011
1 answer
106 views
How to make a radsplitbar click event from script code..?
Dobromir
Telerik team
 answered on 28 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?