Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
313 views
Hi guys,
I need your help to solve the problem.
I have two RadTimePicker control:

<

 

telerik:RadTimePicker ID="StartTime" runat="server" Width="90px" Height="12px" Skin="Vista" PopupDirection="BottomLeft" Culture="en-US" >

 

 

<TimeView runat="server" ID="TimeView1" Columns="3" RenderDirection="Horizontal" ></TimeView>

 

 

<ClientEvents OnDateSelected="DateSelected" />

 

 

<TimePopupButton ImageUrl="../../Image/clock_icon.jpg" HoverImageUrl="../../Image/clock_icon.jpg" />

 

 

<DateInput TabIndex="5" Font-Bold="true" DisabledStyle-Font-Bold="true" DisabledStyle-BackColor="#EFEFEF" runat="server" DateFormat="h:mm tt" DisplayDateFormat="h:mm tt"></DateInput>

 

 

</telerik:RadTimePicker>

 



<

 

telerik:RadTimePicker ID="EndTime" runat="server" Width="90px" Height="12px" Skin="Vista" PopupDirection="BottomLeft" Culture="en-US" >

 

 

<TimeView runat="server" ID="TimeView2" Columns="3" RenderDirection="Horizontal" ></TimeView>

 

 

<ClientEvents OnDateSelected="DateSelected" />

 

 

<TimePopupButton ImageUrl="../../Image/clock_icon.jpg" HoverImageUrl="../../Image/clock_icon.jpg" />

 

 

<DateInput TabIndex="6" Font-Bold="true" DisabledStyle-Font-Bold="true" DisabledStyle-BackColor="#EFEFEF" runat="server" DateFormat="h:mm tt" DisplayDateFormat="h:mm tt"></DateInput>

 

 

</telerik:RadTimePicker>

 



When I am entering in StartTime Box 0930 - it shows 9:30 AM which is correct
When I am entering in EndTimeBox  315 - it shows 3:15 AM - this is not correct.I need to see in EndTime Box 3:15 PM

Please Help me with this.
Thanks so much.
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2011
1 answer
198 views

Is there a 'server side' event that fires after a RadGrid is bound with data? Not after each row is bound, but after the entire grid is bound? .




Princy
Top achievements
Rank 2
 answered on 29 Jul 2011
2 answers
137 views
i use RadControls for ASP.NET Q3 2007. In my code, i set Culture is Vietnamese style and i want radDatePicker only show month/year.
<rad:RadDatePicker ID="radDate" runat="server" DateInput-DisplayDateFormat="MM/yyyy" DateInput-Culture="Vietnamese (Vietnam)">                               
                                <Calendar ID="Calendar1" RangeMinDate="2006/01/01" runat="server" Skin="Sunny">
                                </Calendar>
                                <DatePopupButton HoverImageUrl="~/App_Themes/Default/images/datePickerPopupHover.gif"
                                    ImageUrl="~/App_Themes/Default/images/datePickerPopup.gif"></DatePopupButton>
                            </rad:RadDatePicker>
but when i click to in DateInput to type, it shows in dd/MM/yyyy. I try to set attributes DateFormat = "MM/yyyy", it always sets radDatePicker is today. Everybody can help me? Thanks
Phuong
Top achievements
Rank 1
 answered on 29 Jul 2011
10 answers
776 views
I have a form with some input texts and a radgrid below them. If a user hits enter on one of the input texts, a postback is executed and the edit form of the datagrid is shown. How can I disable this behavior?
Rashmi
Top achievements
Rank 1
 answered on 29 Jul 2011
9 answers
224 views
I have a RadUpload control on my page, starting as not visible ("Visible=false") and displaying after an AJAX call. The first time I show it, everything works how I would expect. But, after I show it and then make a postback call, if I show it again, it doesn't look or function like the RadUpload should. It looks like the base elements for the RadUpload control, but without styling or function, although a HTML input type="file" control follows my mouse when I hover over the RadUpload area.

The following code should demonstrate the issue:
<%@ Page AutoEventWireup="true" Language="C#" %>
 
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPanel.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(AjaxPanel_AjaxRequest);
    }
 
    void AjaxPanel_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        var args = e.Argument.Split(',');
        switch (args[0].ToUpper())
        {
        case "SHOWFILE": FilePicker.Visible = true; break;
        }
    }
 
    void Upload_Click(object sender, EventArgs e)
    {
        FilePicker.Visible = false;
    }
 
    void FilePicker_Show(object sender, EventArgs e)
    {
        FilePicker.Visible = true;
    }
</script>
 
<head runat="server">
    <title>Test Upload</title>
</head>
 
<body>
<form runat="server">
<asp:ScriptManager runat="server" />
 
<telerik:RadAjaxPanel ID="AjaxPanel" runat="server" EnableAJAX="true">
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
 
<script language="javascript" type="text/javascript">
    function ShowFilePicker(idAjax) {
        try {
            $find(idAjax).ajaxRequest("SHOWFILE");
        } catch(e) { }
        return false;
    }
</script>
 
</telerik:RadScriptBlock>
 
<asp:PlaceHolder ID="FileSection" runat="server">
    <telerik:RadUpload ID="FilePicker" runat="server" ControlObjectsVisibility="None" Visible="false" />
    <asp:Button Text="Upload" runat="server" OnClick="Upload_Click" />
</asp:PlaceHolder>
 
<asp:PlaceHolder runat="server">
    <a href="#" onclick='return ShowFilePicker("<%= AjaxPanel.ClientID %>");'>Show Picker</a>
</asp:PlaceHolder>
 
</telerik:RadAjaxPanel>
 
</form>
</body>
</html>
Jay
Top achievements
Rank 1
 answered on 28 Jul 2011
3 answers
261 views
We have a user control in our project that renders a series of messages inside of a literal control.  Since the control will dynamically load the notes when the page is requested, none of the notes are precompiled.  As a result, I cannot create server controls to bind to the RadToolTip control.  Is there a way to launch the RadToolTip directly via Javascript?  Essentially, my goal is to place contact information of the note into a DIV and load a "contact card" for the individual appear on rollover.  If there was a way to bind the RadToolTip to a DIV, that would probably work.  If not, is there a way to force the ToolTipLoad from Javascript?

Thanks,
Jerry
amonte
Top achievements
Rank 1
 answered on 28 Jul 2011
11 answers
425 views
After I have built the grid, I now want to initiate the export to excel. When I go into the grid properties and set the master table view's command item settings to show export to excel button = true and set the commanditemdisplay = top, the display on top of the grid shows up in the designer, but when I run the application it does not appear. What are some reasons this could be happening?

Thanks,
Chuck
Daniel
Telerik team
 answered on 28 Jul 2011
4 answers
642 views
hi i adding columns to RadGrid on RadButton Click event
all working fine
when i sort the grid with Header Click or When i Filter the grid
the RadGrid disappeared i suspect the columns or removed automatically after that if i click any button to postback the RadGrid appear with dynamic columns but no data  inside the rows
this is my code

 

 

 

RadGrid1.Columns.Clear()
 Dim bc As New GridBoundColumn
 RadGrid1.MasterTableView.Columns.Add(bc)
 bc.DataField = "File Name"
 bc.HeaderText = "File Name"
 bc.SortExpression = "File Name"
 'bc.ItemStyle.Width = New Unit(80, UnitType.Pixel)
 bc = New GridBoundColumn
 RadGrid1.MasterTableView.Columns.Add(bc)
 bc.DataField = "File Path"
 bc.HeaderText = "File Path"
 bc.SortExpression = "File Path"
RadGrid1.DataSource = profiledatas
 RadGrid1.DataBind()

  

aspx 
 

 

<telerik:RadGrid ID="RadGrid1" AllowSorting="true" AllowFilteringByColumn="true"   AutoGenerateColumns="false"    runat="server">
        <MasterTableView>
                 <Columns>
                                    
                  </Columns>
                  <ItemStyle HorizontalAlign="Left" />
                   <HeaderStyle HorizontalAlign="Left" />
           </MasterTableView>
</telerik:RadGrid>

 

 my RadGrid inside RadAjaxPanel

 

how to solve this issue

Daniel
Telerik team
 answered on 28 Jul 2011
6 answers
415 views
Hello -

I'm trying to access a RadTextBox's defaultValue through JavaScript.  When I have the textbox's mode set to SingleLine, I can get the defaultValue through the following JavaScript:

this.defaultValue;

However, when I have the textbox's mode set to MultiLine, the defaultValue comes up as an empty string.  Does anybody have any thoughts on how to get the defaultValue of a multiline textbox?
Ryan
Top achievements
Rank 1
 answered on 28 Jul 2011
1 answer
93 views
Hello,

I have following labels (updtlbl1,updtlbl2,updtlbl3) inside a form view, They are updated by a button(btnSave) outside the formview.
I am updating the database with entity model and I am using RadAjaxmanager 


I have the code as below. Data is saved successfully at the first click of the button in the db but the updated values are not displayed in form view at the first click, On the second click the values in the formview are updated correctly

I need the updated data to be displayed in formview at the first click. Please help  


 

<P><asp:FormView runat="Server" ID=Formview1"   
><BR>    <ItemTemplate></P>
<P><table cellpadding="10" cellspacing="0" border="0" 
class="controlLabel"><BR>  
                             
<tr><BR>            
              
<BR>            
                                        
<td>                                   
<asp:Label ID="lbl1" runat="server" Text="Dis1" />:&nbsp; 
<asp:Label ID="updtlbl1" EnableViewState="true" runat="server"  
/></td                              
<td>                                   
<asp:Label ID="lbl2" runat="server" Text="Dis By" 
/>:&nbsp;<asp:Label ID="updtlbl2" runat="server"  /> 
</td>                                     
<td>                                
<asp:Label ID="lbl3" runat="server" Text="Dis Dt" 
/>:&nbsp;<asp:Label ID="updtlbl3" runat="server"  
/></td>                                
               
                       
</tr>  
                              
</table></P>
<P></ItemTemplate>   
</
asp:FormView


   
<asp:Button runat="server" Text="Save" ID="btnSave"    
                
<P><telerik:RadAjaxManager ID="RadAjaxManager1"   runat="server" 
LoadingPanelID="RadAjaxLoadingPanel1"       
<AjaxSettings>            
<telerik:AjaxSetting AjaxControlID="btnSave >          
<UpdatedControls>                    
<telerik:AjaxUpdatedControl ControlID="Formview1" />                                   
<BR>                
</UpdatedControls>                
<BR>            
</telerik:AjaxSetting>        
</AjaxSettings>    
</telerik:RadAjaxManager>
Seema Geevarghese
Top achievements
Rank 1
 answered on 28 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?