Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
257 views
hi Telerik Group

when i chenge CultureInfo to persian CultureInfo in first time is currect but when i select date that is GregorianCalendar .
other problem is year is not persian is GregorianCalendar

my code for change CultureInfo  :
System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("fa-IR");  
       System.Globalization.GregorianCalendar  
        System.Globalization.DateTimeFormatInfo info = culture.DateTimeFormat;  
        info.AbbreviatedDayNames = new string[] { "ی""د""س""چ""پ""ج""ش" };  
        info.DayNames = new string[] { "یکشنبه""دوشنبه""ﺳﻪشنبه""چهارشنبه""پنجشنبه""جمعه""شنبه" };  
        info.AbbreviatedMonthNames = new string[] { "فروردین""اردیبهشت""خرداد""تیر""مرداد""شهریور""مهر""آبان""آذر""دی""بهمن""اسفند""" };  
        info.MonthNames = new string[] { "فروردین""اردیبهشت""خرداد""تیر""مرداد""شهریور""مهر""آبان""آذر""دی""بهمن""اسفند""" };  
        info.AMDesignator = "ق.ظ";  
        info.PMDesignator = "ب.ظ";  
        info.ShortDatePattern = "yyyy/MM/dd";  
        info.FirstDayOfWeek = DayOfWeek.Saturday;  
         
        System.Globalization.PersianCalendar cal = new System.Globalization.PersianCalendar();  
 
        typeof(System.Globalization.DateTimeFormatInfo).GetField(  
            "calendar", System.Reflection.BindingFlags.Public |  
            System.Reflection.BindingFlags.Instance |  
            System.Reflection.BindingFlags.NonPublic).SetValue(info, cal);  
 
        object obj = typeof(System.Globalization.DateTimeFormatInfo).GetField(  
            "m_cultureTableRecord", System.Reflection.BindingFlags.Public |  
            System.Reflection.BindingFlags.Instance |  
            System.Reflection.BindingFlags.NonPublic).GetValue(info);  
 
        obj.GetType().GetMethod("UseCurrentCalendar",  
           System.Reflection.BindingFlags.NonPublic |  
           System.Reflection.BindingFlags.Instance).Invoke(obj,  
           new object[] { cal.GetType().GetProperty("ID",  
   System.Reflection.BindingFlags.Instance |  
   System.Reflection.BindingFlags.NonPublic).GetValue(cal, null) });  
 
        typeof(System.Globalization.CultureInfo).GetField("calendar",  
            System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance |  
            System.Reflection.BindingFlags.NonPublic).SetValue(culture, cal);  
 
        System.Threading.Thread.CurrentThread.CurrentCulture = culture;  
 
        RadDatePicker1.Culture = culture;  
        RadDatePicker1.SelectedDate = DateTime.Now.Date;  
        TimeSpan ts = new TimeSpan(3, 30, 00);  
        RadDatePicker1.Calendar.FastNavigationSettings.CancelButtonCaption = "انصراف";  
            RadDatePicker1.Calendar.FastNavigationSettings.OkButtonCaption = "تایید";  
            RadDatePicker1.Calendar.FastNavigationSettings.TodayButtonCaption = "امروز"
thanks
Daniel
Telerik team
 answered on 08 Mar 2010
4 answers
622 views
I've got a .NET 2.0 ASP.Net web app with a master page and I'm trying to add Ajax features to it. I've added a RadScriptManager to the master page and it runs. As soon as I add a RadAjaxManager or a RadAjaxPanel to the master page, it dies upon start up with the following error:
Script controls may not be registered before PreRender.  
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  
 
Exception Details: System.InvalidOperationException: Script controls may not be registered before PreRender. 
 
Source Error:  
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.   
 
Stack Trace:  
 
 
[InvalidOperationException: Script controls may not be registered before PreRender.] 
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +236 
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +99 
   Telerik.Web.UI.RadAjaxManager.OnPreRender(EventArgs e) +97 
   System.Web.UI.Control.PreRenderRecursiveInternal() +86 
   System.Web.UI.Control.PreRenderRecursiveInternal() +170 
   System.Web.UI.Control.PreRenderRecursiveInternal() +170 
   System.Web.UI.Control.PreRenderRecursiveInternal() +170 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041 
 
  
 
 
-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.1873; ASP.NET Version:2.0.50727.1433  

The same thing happens if I add either of the two to the default.aspx page or a .ascx control that is used on the default.aspx page.

What am I doing wrong?

Bob
Top achievements
Rank 1
 answered on 08 Mar 2010
1 answer
136 views
We have documents that are loaded with default content and edited with your editor (2009 either 3 or 4 qtr). There is a problem in Google when a user clicks on the Bullet List icon to un-bullet a list item.  The item is displayed either at the end of the document or in one case (see google bullet in middle) it is just stuck in the middle. 

Here is the markup from the editor for the display in the middle (you can see the "Wear simple jewelry" is in its correct position in the markup:

<div> 
  <h2>General Interview Tips</h2> 
  <br> 
  <strong>Interview Grooming Tips:</strong><br
  <ul> 
    <li>Overdressed is always better than underdressed even if you feel uncomfortable.</li> 
    <li>Find out how the current employees normally dress for work and, as a rule of thumb, dress at least one step above the that level.</li> 
    <li>You want to look respectful of their time.</li> 
    <li>Make sure your hair is neatly styled and conservative. Do not wear excessive hair gel or go to an interview with wet hair.</li> 
    <li>Make sure your face is shaved and trimmed and nose and ear hairs are clipped.</li> 
    <li>Be freshly showered and do not wear perfume or aftershave, just deodorant. Remember some people have allergic reactions to perfume.</li> 
  </ul> 
  Wear simple jewelry; remove body piercings, extra rings, etc. Cover any tattoos if possible.<br> 
  <ul> 
    <li>Clean and polish your shoes.</li> 
    <li>Do not wear flip flops, sandals or open toed shoes. This is a dress code violation for many companies.</li> 
    <li>Wear clean, dark colored matching socks. Dress socks are preferred over athletic socks.</li> 
    <li>For men, match your belt color with your shoe color.</li> 
    <li>For women, always wear nylons or tights with skirts.</li> 
  </ul> 
  <strong>Before You Go:</strong><br
  <ul> 
    <li>Avoid mealtime interviews, or if unavoidable, order something simple to eat in small bites. Avoid handheld food like pizza or messy dishes like pasta or soup. Do not consume alcohol prior to or during the interview.</li> 
    <li>Be sure you know how to pronounce your interviewer’s name.</li> 
    <li>Leave for the interview in plenty of time to arrive 10-15 minutes early.</li> 
  </ul> 
  <strong>When You Arrive:</strong><br
  <ul> 
    <li>Do not chew gum, smoke, swear, or use slang (even if they do).</li> 
    <li>Turn off your cell phone.</li> 
    <li>Be aware of how people react through their body language. Use your instincts to keep things on course.</li> 
    <li>Be polite to everyone you meet; they all count.</li> 
    <li>Be personable and professional.</li> 
  </ul> 
  <br> 
  <strong>During the Interview – General:</strong><br
  <ul> 
    <li>Look the interviewer in the eye.</li> 
    <li>Sit comfortably.</li> 
    <li>Don’t slouch and avoid fidgeting. <br> 
    </li> 
    <li>Have fun with the interview and the people you meet.</li> 
    <li>Smile. People like to have happy people around them and it is a factor in their decision to make a hire.</li> 
    <li>Remember that listening is power…listening gives you a plan to move forward.</li> 
    <li>Take notes about the interview and the interviewers.</li> 
    <li>Pay attention to the interview momentum and keep it moving forward on a positive note.</li> 
  </ul> 
  <br> 
  <strong>During the Interview <strong>– </strong>Answering Questions:</strong><br
  <ul> 
    <li>Answer each question directly and with a smile where appropriate.</li> 
    <li>Assume all questions are asked for a good reason and answer accordingly.</li> 
    <li>Do not assume that your interviewer knows how to ask for the information he/she is looking for.</li> 
    <li>Take some time to formulate your answers before you speak.</li> 
    <li>Answer all questions honestly and in the best, most positive light.</li> 
  </ul> 
  <strong><br
    When You Leave:</strong><br
  <ul> 
    <li>Thank the interviewer for their time and ask what the next step is in the interview process.</li> 
    <li>Give a nice firm handshake.</li> 
    <li>Be polite to the receptionist and others on your way out.</li> 
  </ul> 
</div> 
<br> 
 

and here is the markup from the editor for the second image:
<div> 
  <h2>General Interview Tips</h2> 
  <br> 
  <strong>Interview Grooming Tips:</strong><br
  <ul> 
    <li>Overdressed is always better than underdressed even if you feel uncomfortable.</li> 
    <li>Find out how the current employees normally dress for work and, as a rule of thumb, dress at least one step above the that level.</li> 
    <li>You want to look respectful of their time.</li> 
    <li>Make sure your hair is neatly styled and conservative. Do not wear excessive hair gel or go to an interview with wet hair.</li> 
    <li>Make sure your face is shaved and trimmed and nose and ear hairs are clipped.</li> 
    <li>Be freshly showered and do not wear perfume or aftershave, just deodorant. Remember some people have allergic reactions to perfume.</li> 
  </ul> 
  Wear simple jewelry; remove body piercings, extra rings, etc. Cover any tattoos if possible.<br> 
  <ul> 
    <li>Clean and polish your shoes.</li> 
    <li>Do not wear flip flops, sandals or open toed shoes. This is a dress code violation for many companies.</li> 
    <li>Wear clean, dark colored matching socks. Dress socks are preferred over athletic socks.</li> 
    <li>For men, match your belt color with your shoe color.</li> 
    <li>For women, always wear nylons or tights with skirts.</li> 
  </ul> 
  <strong>Before You Go:</strong><br
  <ul> 
    <li>Avoid mealtime interviews, or if unavoidable, order something simple to eat in small bites. Avoid handheld food like pizza or messy dishes like pasta or soup. Do not consume alcohol prior to or during the interview.</li> 
    <li>Be sure you know how to pronounce your interviewer’s name.</li> 
    <li>Leave for the interview in plenty of time to arrive 10-15 minutes early.</li> 
  </ul> 
  <strong>When You Arrive:</strong><br
  <ul> 
    <li>Do not chew gum, smoke, swear, or use slang (even if they do).</li> 
    <li>Turn off your cell phone.</li> 
    <li>Be aware of how people react through their body language. Use your instincts to keep things on course.</li> 
    <li>Be polite to everyone you meet; they all count.</li> 
    <li>Be personable and professional.</li> 
  </ul> 
  <br> 
  <strong>During the Interview – General:</strong><br
  <ul> 
    <li>Look the interviewer in the eye.</li> 
    <li>Sit comfortably.</li> 
    <li>Don’t slouch and avoid fidgeting. <br> 
    </li> 
    <li>Have fun with the interview and the people you meet.</li> 
    <li>Smile. People like to have happy people around them and it is a factor in their decision to make a hire.</li> 
    <li>Remember that listening is power…listening gives you a plan to move forward.</li> 
    <li>Take notes about the interview and the interviewers.</li> 
    <li>Pay attention to the interview momentum and keep it moving forward on a positive note.</li> 
  </ul> 
  <br> 
  <strong>During the Interview <strong>– </strong>Answering Questions:</strong><br
  <ul> 
    <li>Answer each question directly and with a smile where appropriate.</li> 
    <li>Assume all questions are asked for a good reason and answer accordingly.</li> 
    <li>Do not assume that your interviewer knows how to ask for the information he/she is looking for.</li> 
    <li>Take some time to formulate your answers before you speak.</li> 
    <li>Answer all questions honestly and in the best, most positive light.</li> 
  </ul> 
  <strong><br
    When You Leave:</strong><br
  <ul> 
    <li>Thank the interviewer for their time and ask what the next step is in the interview process.</li> 
    <li>Give a nice firm handshake.</li> 
    <li>Be polite to the receptionist and others on your way out.</li> 
  </ul> 
</div> 
<br> 
 

What do you think is happening?

Pamela


Rumen
Telerik team
 answered on 08 Mar 2010
1 answer
125 views
1. Select a item from radtreeview with databinding
2. right page will show a edit page of the selected item
3. Save the changed value and then left pane tree will update its name

I found that if I dun want to refresh whole page, it is not possible to do the above logic.
My logic is creating a page which handles the selected value and there is a navigate url in each of tree items. When u click on it, right pane will show the edit page. Of course, they are different pages so I cannot update each other from both left or right pane.
Now I think user control (ascx) can help me out here,but how can I change the parameter of the user control and then refresh it?
Please advice, thx.

Best regards,
Stephen
Svetlina Anati
Telerik team
 answered on 08 Mar 2010
0 answers
104 views
Hello Good Morning.
I am using in my web application RadUpload control and I would love if I could explain how I do in order to upload a file to a host with mid-level permissions as I can not do it as explained in the demo.
The load is performed as follows.
In the. Aspx is a rad control: upload.
In the. Aspx.vb in the event of the submit button uploads are handled, ie pirmero names are changed to save a file not repeated in the target folder and set the directory in which store the same.

Sample Code
           If Foto.UploadedFiles.Count> 0 Then
                
For Each uploadedFile As UploadedFile In Foto.UploadedFiles
                    
TargetFolder Dim As String = Server.MapPath ( "~ / Images / Pictures" Notes ")
                    
FileName = DateTime.Now.Ticks.ToString () & archivoSubido.GetExtension ()
                    
archivoSubido.SaveAs (Path.Combine (TargetFolder, FileName), False)
                    
Next
                
strSql = strSql & ", [Picture]
                
strSqlValues = strSqlValues & " '" & FileName & "'"
            
End If

Grettings
Gonzalo
Top achievements
Rank 1
 asked on 08 Mar 2010
1 answer
101 views
Hi all,
  
In my Rad grid iam using Rad ajax panel and Rad Ajax manager and both the Rad ajax panel and Rad Ajax manager are using the same Rad Ajax loading panel for progrees images.To be clear iam using Rad ajax panel to get progress image when iam performing any operation on the grid this works fine and when i used Rad Ajax manager for loading combobox according to that grid will be loaded when these both using rad ajax loading panel iam getting unwanted data if i use another rad ajax loading panel the same issue persists if i use either rad ajax panel or rad ajax manager it is working fine i want both how it can be achieved> here iam sending my code
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uclTaskGrid.ascx.cs" Inherits="uclTaskGrid"  %> 
  <%@ Register assembly="msgBox" namespace="BunnyBear" tagprefix="cc2" %> 
  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
  <script language="javascript" type="text/javascript">   
    
  function FireMyIASGroupPrint(myURL){  
   if(myURL)  
     {  
 
         window.open("RejectTaskStatus.aspx?querystring=" + myURL, '_blank', 'left = 300top=150width=600height=200,menubar=no , scrollbars=noresizable=no');  
      
     }  
 }  
 function FireMyIASGroupPrint1(myURL) {  
     if (myURL) {  
         alert(myURL);  
         return;  
     }  
 }  
       
       
     
 
function ValidateForm(){  
 
 
 
 }   
       
    </script> 
    
 
 
<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="120000">  
</asp:Timer> 
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">  
<tr> 
        <td valign="top" height="6" colspan="2">  
        <table width="1000" border="0" cellpadding="0" cellspacing="0">  
  <tr> 
    <td class="heading" width="90">&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblProject" runat="server" Text="Project name"></asp:Label></td>  
    <td width="114">  
      
        <asp:UpdatePanel ID="UpdatePanel14" runat="server">  
            <ContentTemplate> 
            
 
            <telerik:RadComboBox ID="ddlProjects" runat="server" AutoPostBack="True" onselectedindexchanged="ddlProjects_SelectedIndexChanged" 
                          Height="175px" Width="150px" DropDownWidth="175px" Skin="WebBlue">  
                          </telerik:RadComboBox> 
              
                <%--<asp:DropDownList ID="ddlProjects" Width="145" CssClass="text" runat="server" AutoPostBack="True"   
        onselectedindexchanged="ddlProjects_SelectedIndexChanged">  
                </asp:DropDownList>--%> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
      </td> 
    <td width="700" align="left">  
      
<table width="700" border="0" cellpadding="0" cellspacing="0">  
  <tr> 
    <td class="heading"><asp:Label ID="lblResource" runat="server" Text="Resource Name"></asp:Label>&nbsp;</td> 
    <td> 
        <asp:UpdatePanel ID="UpdatePanel13" runat="server">  
            <ContentTemplate> 
              
            <telerik:RadComboBox ID="ddlResource" runat="server" AutoPostBack="True" onselectedindexchanged="ddlResource_SelectedIndexChanged" 
                          Height="175px" Width="150px" DropDownWidth="175px" Skin="WebBlue">  
                          </telerik:RadComboBox> 
              
            </ContentTemplate> 
        </asp:UpdatePanel> 
      </td> 
    <td width="16">  
        <asp:UpdatePanel ID="UpdatePanel16" runat="server">  
            <ContentTemplate> 
                <asp:CheckBox ID="ChkBFromDate" Width="90%" runat="server" Enabled="False"/>  
            </ContentTemplate> 
        </asp:UpdatePanel> 
      </td> 
    <td class="heading">From&nbsp;</td> 
    <td> 
    <table width="75" border="0" cellspacing="0" cellpadding="0">  
                  <tr> 
                    <td width="110">  
                        <telerik:RadDatePicker ID="textFromDate" Runat="server"   
                            Culture="English (United States)">  
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">  
    <FastNavigationSettings EnableTodayButtonSelection="True">  
    </FastNavigationSettings> 
                            </Calendar> 
 
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> 
 
<DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy"></DateInput> 
                        </telerik:RadDatePicker> 
                      </td> 
                    <%--<td width="22" height="25" valign="middle">&nbsp;</td>--%> 
                  </tr> 
              </table> 
      
      
    </td> 
    <td> 
        <asp:UpdatePanel ID="UpdatePanel17" runat="server">  
            <ContentTemplate> 
                <asp:CheckBox ID="ChkBToDate" runat="server" Enabled="False"/>  
            </ContentTemplate> 
        </asp:UpdatePanel> 
      </td> 
    <td class="heading">To&nbsp;</td>    
    <td><table width="75" border="0" cellspacing="0" cellpadding="0">  
                  <tr> 
                    <td width="101">  
                        <telerik:RadDatePicker ID="textToDate" Runat="server"   
                            Culture="English (United States)">  
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">  
    <FastNavigationSettings EnableTodayButtonSelection="True">  
    </FastNavigationSettings> 
                            </Calendar> 
 
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> 
 
<DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy"></DateInput> 
                        </telerik:RadDatePicker> 
                      </td> 
                    <%--<td width="22" height="25" valign="middle">&nbsp;</td>--%> 
                  </tr> 
              </table></td>  
    <td class="heading">  
        <asp:UpdatePanel ID="UpdatePanel15" runat="server">  
            <ContentTemplate> 
                <asp:CheckBox ID="chkbTwodays" Text="2 days" runat="server" AutoPostBack="True"   
    oncheckedchanged="chkbTwodays_CheckedChanged" Checked="True" /> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
      </td> 
    <td>&nbsp;</td> 
    <td><asp:UpdatePanel ID="UpdatePanel12" runat="server">  
                      <ContentTemplate> 
                        <asp:Button ID="btnGo_ViewEvents" CssClass="go" runat="server" Text="Go"   
                              onclick="btnGo_ViewEvents_Click" />                      </ContentTemplate> 
                    </asp:UpdatePanel></td>    
  </tr> 
</table>      
    </td> 
        
  </tr> 
</table> 
          
        </td> 
        </tr> 
<tr> 
        <td height="10" align="left"  colspan="2"></td> 
</tr> 
 
    
<tr> 
        <td valign="top" align="center" colspan="2">  
    <table cellpadding="0" cellspacing="0" border="0" width="98%">  
    <tr> 
    <td align="right">  
        <table width="130" border="0" cellspacing="0" cellpadding="0">  
          <tr> 
            <td align="left">  
               <%-- <asp:UpdatePanel ID="UpdatePanel2" runat="server">  
                    <ContentTemplate>--%> 
                        <asp:Label ID="lblRecCount" runat="server" Visible="False"></asp:Label> 
                  <%--  </ContentTemplate> 
                </asp:UpdatePanel>--%> 
            </td> 
          </tr> 
</table> 
      
    </td> 
      
    </tr> 
    <tr> 
        <td height="15" align="left"  colspan="2"></td> 
</tr> 
    <tr> 
    <td align="left" valign="top">      
           <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">  
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
                     <Triggers>    
                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />    
                    </Triggers>   
                        <ContentTemplate> 
                            <telerik:RadGrid ID="gviewTasks" runat="server"   
        AllowPaging="True" AllowScroll="True" AllowSorting="True" GridLines="None"   
              
        AutoGenerateColumns="False" Skin="Vista"    
                                   
                                  
                               EnableLinqExpressions="False"     
                                Font-Bold="False" Font-Italic="False" Font-Overline="False"    
                                 Font-Underline="False" PageSize="7"   
                                onitemcommand="gviewTasks_ItemCommand"   
                                onitemdatabound="gviewTasks_ItemDataBound"   
                                onitemcreated="gviewTasks_ItemCreated" onpageindexchanged="gviewTasks_PageIndexChanged"   
                                >   
             
                   
<MasterTableView TableLayout="Fixed" Font-Bold="False" Font-Italic="False" Font-Overline="False"   
                                    Font-Strikeout="False" Font-Underline="False">  
 
<columns> 
          <telerik:GridBoundColumn DataField="TaskID" HeaderText="ID" Visible="false" />             
                        
<telerik:GridBoundColumn DataField="Resource Name" HeaderText="Resource Name"   
              HeaderStyle-Width="70px"    > 
                 <HeaderStyle Width="70px" Font-Bold="True" /> 
           </telerik:GridBoundColumn> 
           <telerik:GridTemplateColumn HeaderText="Task Name" AllowFiltering="false" Groupable="false" HeaderStyle-Width="50px"    > 
                       <ItemTemplate> 
                       <asp:LinkButton ID="lnkTask" runat="server" CommandName="select" Text='<%#DataBinder.Eval(Container.DataItem,"Task Name")%>'></asp:LinkButton> 
                       </ItemTemplate> 
                       <HeaderStyle Width="70px" Font-Bold="True" Font-Italic="False"   
                           Font-Overline="False" Font-Strikeout="False" Font-Underline="False"   
                           Wrap="True" /> 
                         
                       </telerik:GridTemplateColumn>    
 <telerik:GridBoundColumn DataField="Task Name" HeaderText="TaskName"  /> 
<telerik:GridBoundColumn DataField="Description" HeaderText="TaskDescription"   
              HeaderStyle-Width="70px"     > 
    <HeaderStyle Width="80px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridTemplateColumn HeaderText="Phase" HeaderStyle-Width="65px" AllowFiltering="false" Groupable="false"    >   
            <ItemTemplate> 
                <asp:Label ID="lblphase" runat="server"  Text='<%#DataBinder.Eval(Container.DataItem,"Phase") %>'></asp:Label>   
                &nbsp;  
               </ItemTemplate> 
               <HeaderStyle Width="65px" /> 
               </telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField="Project Name" HeaderText="Project"   
              HeaderStyle-Width="60px" FilterControlWidth="50px" > 
              <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"   
                  Font-Strikeout="False" Font-Underline="False" Width="60px" Wrap="True" /> 
              </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="AssignedBy" HeaderText="Assigned By"   
              HeaderStyle-Width="60px" FilterControlWidth="50px"  > 
      
            
      
          <HeaderStyle Width="60px" /> 
      
            
      
          </telerik:GridBoundColumn> 
 <telerik:GridNumericColumn DataField="Estimated Hours" HeaderText="ETA [Hrs]"   
              HeaderStyle-Width="70px" FilterControlWidth="50px" > 
      
            
      
          <HeaderStyle Width="70px" /> 
      
            
      
          </telerik:GridNumericColumn> 
<telerik:GridBoundColumn DataField="Date" HeaderText="Date" AllowFiltering="false"  HeaderStyle-Width="60px"  > 
     
            
     
          <HeaderStyle Width="60px" /> 
     
            
     
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Status" HeaderText="Status" HeaderStyle-Width="60px" FilterControlWidth="50px" > 
      
           
      
          <HeaderStyle Width="60px" /> 
      
           
      
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Approve Status" HeaderText="Approval Status"   
              HeaderStyle-Width="60px" FilterControlWidth="50px" > 
 
     
            
     
          <HeaderStyle Width="60px" /> 
 
     
            
     
          </telerik:GridBoundColumn> 
 
<telerik:GridTemplateColumn HeaderText="Approve" AllowFiltering="false" Groupable="false" HeaderStyle-Width="40px" UniqueName="Approve" > 
                       <ItemTemplate> 
                                              
                       <asp:ImageButton  ID="imgbtnactivate" runat="server" ImageUrl="~/images/activate.gif" CommandName="Approve" ToolTip="Approve" OnClientClick="return confirm('Are you sure you want to approve this task?');"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                       <HeaderStyle Width="40px" /> 
                       </telerik:GridTemplateColumn> 
                       <telerik:GridTemplateColumn HeaderText="Reject" AllowFiltering="false" Groupable="false" HeaderStyle-Width="30px" UniqueName="Reject" > 
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgbtndeactivate" runat="server" CausesValidation="false" ImageUrl="~/images/de-activate.gif" CommandName="Reject" ToolTip="Reject"  OnClientClick="return confirm('Are you sure you want to reject this task?');"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                            <HeaderStyle Width="30px" /> 
                            </telerik:GridTemplateColumn> 
                       <telerik:GridTemplateColumn HeaderText="Forward" AllowFiltering="false" Groupable="false" HeaderStyle-Width="40px" UniqueName="Forward" > 
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgforward" runat="server" ImageUrl="~/images/forward.gif" CausesValidation="false" CommandName="Select1"  ToolTip="Forward" OnClick="forwardLeave"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                           <HeaderStyle Width="40px" /> 
                       </telerik:GridTemplateColumn>    
                        <telerik:GridBoundColumn DataField="ResourceID" Visible="false"/>                                    
                       <telerik:GridTemplateColumn HeaderText="Delete" AllowFiltering="false" Groupable="false" HeaderStyle-Width="30px" UniqueName="Delete" > 
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgdelete" runat="server"    ImageUrl="~/images/delete-icon.gif" CommandName="deleteTask"  ToolTip="Delete" OnClientClick="return confirm('Are you sure you want to delete the task?');"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                           <HeaderStyle Width="30px" /> 
                             
                       </telerik:GridTemplateColumn> 
                       <telerik:GridBoundColumn DataField="DocumentID" HeaderText="DocID" Visible="false" ></telerik:GridBoundColumn> 
                      
                         
</columns> 
   
 
                                <PagerStyle Height="30px" HorizontalAlign="Center" Font-Bold="True"   
                                    Font-Names="Arial" Font-Size="Smaller" /> 
                                <HeaderStyle BorderStyle="None"  Font-Bold="True"   
        Height="30px" /> 
   
 
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="Blue" /> 
        </MasterTableView> 
         <ClientSettings EnableRowHoverStyle="true">  
                <Selecting AllowRowSelect="true" /> 
                 <Resizing AllowColumnResize="True" ClipCellContentOnResize="false" ResizeGridOnColumnResize="true" /> 
                  
            </ClientSettings> 
        <PagerStyle Mode="NumericPages" /> 
                            </telerik:RadGrid> 
                              
                            <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"   
                                AutoTooltipify="True" RelativeTo="Element" Skin="Forest" >    
                              
                            </telerik:RadToolTipManager> 
                              
                   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="ddlProjects">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="gviewTasks" LoadingPanelID="AjaxLoadingPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="ddlProjects" /> 
                         <telerik:AjaxUpdatedControl ControlID="ddlResource" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
          
  </ContentTemplate> 
                    </asp:UpdatePanel> 
                     </telerik:RadAjaxPanel> 
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"   
               Skin="Forest" > 
        </telerik:RadAjaxLoadingPanel> 
         
                    </td></tr>  
                    </table> 
 
</td> 
</tr></table>  
 
Tsvetoslav
Telerik team
 answered on 08 Mar 2010
1 answer
167 views
Hi every one,

Is there any way to validate the

<telerik:GridDateTimeColumn UniqueName="fromDate" PickerType="DatePicker" HeaderText="From Date"
DataField="fromDate"><ItemStyle Width="80px" /></telerik:GridDateTimeColumn>
                           
<telerik:GridDateTimeColumn UniqueName="toDate" PickerType="DatePicker" HeaderText="To Date"
DataField="toDate"><ItemStyle Width="80px" /> </telerik:GridDateTimeColumn>

GridDateTimeColumn to Require Field Validation and Compare Validation.  (for example a datetime field generates error if the user enters something else).

Thanks

Krish
Tsvetoslav
Telerik team
 answered on 08 Mar 2010
1 answer
123 views
If I put the following text box on a page, run it and enter 5.556 into the input box, it changes to 5.5600000005 when the control loose focus.  Why is it not changing to just 5.56?  The settings seem correct, what am I missing?

<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Type="Currency">  
            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" /> 
        </telerik:RadNumericTextBox> 
    </div> 
    </form> 
</body> 
</html> 
 
Dimo
Telerik team
 answered on 08 Mar 2010
2 answers
171 views
Can you list any advantages / disadvantages of using RadDock over WebParts?

Does SiteFinity use RadDock?
Pero
Telerik team
 answered on 08 Mar 2010
1 answer
102 views
Hi,
in my page, I want open a popup after click on Button1
In popup (I realized it with RadWindow) I have other Button control

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProvaDiv.aspx.cs" Inherits="Page_ProvaDiv" %> 
 
<!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></title
</head> 
 
<script type="text/javascript"
 
</script> 
 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <asp:Button runat="server" ID="Button1" Text="Button" /> 
    </div> 
    <telerik:RadWindow ID="RadWindow1" Width="400px" Behaviors="Close" Visible="true" RegisterWithScriptManager="true" 
        OpenerElementID="Button1" Height="400px" runat="server" Modal="true" Animation="Fade" 
        VisibleTitlebar="true" VisibleStatusbar="false" > 
        <ContentTemplate> 
            <asp:Button ID="Button2" runat="server" Text="Button" /> 
        </ContentTemplate> 
    </telerik:RadWindow> 
    </form> 
</body> 
</html> 

I want use in Button2, server-event OnClick="Button2_click", but I have a error
It's right use RadWindows for this?
Thanks
(I'm sorry for my bad english)
Luigi

Svetlina Anati
Telerik team
 answered on 08 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?