Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
141 views
sorting is not working within a radajaxpanel.  My grid is below.  Is there anything I've missed?

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"/>    
                       <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">     
                       <telerik:RadGrid ID="grdTrainingInstitutes" 
                           runat="server" 
                           AllowSorting="true" 
                           AllowPaging="true"
                           AutoGenerateColumns="false" 
                           PageSize="20"
                           RegisterWithScriptManager="true"
                           OnNeedDataSource="grdResults_NeedDataSource"
                           TabIndex="301">        
                           <MasterTableView>
                               <Columns>
                                   <telerik:GridBoundColumn DataField="train_inst_id" UniqueName="TrainingInstituteID" HeaderText="ID" 
                                       HeaderStyle-Width="25" ItemStyle-Wrap="false" HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" HeaderStyle-VerticalAlign="Top" ></telerik:GridBoundColumn>  
                                   <telerik:GridBoundColumn SortExpression="train_inst_nam" HeaderText="Name" DataField="train_inst_nam" HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true"  HeaderStyle-VerticalAlign="Top" HeaderStyle-Width="100px" ItemStyle-Wrap="false"></telerik:GridBoundColumn>
                                   <telerik:GridBoundColumn SortExpression="address_line" HeaderText="Address" DataField="address_line" HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" HeaderStyle-VerticalAlign="Top" HeaderStyle-Width="150px" ItemStyle-Wrap="false"></telerik:GridBoundColumn>
                                   <telerik:GridBoundColumn SortExpression="geographic_area" HeaderText="Geographic Location" DataField="geographic_area" HeaderStyle-Wrap="false" HeaderStyle-Font-Bold="true" HeaderStyle-VerticalAlign="Top" HeaderStyle-Width="60px" ItemStyle-Wrap="false"></telerik:GridBoundColumn>
                               </Columns>
                           </MasterTableView>
                           <ClientSettings AllowKeyboardNavigation="true" AllowDragToGroup="False" AllowColumnsReorder="False">
                               <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
                               <KeyboardNavigationSettings AllowSubmitOnEnter="false" AllowActiveRowCycle="true" EnableKeyboardShortcuts="false" FocusKey="Y" />  
                               <ClientEvents OnRowClick="RowSelected" OnRowDblClick="GridDblClick" OnKeyPress="GridKeyPress" OnGridCreated="GridCreated" />                       
                               <Resizing AllowColumnResize="True" />
                           </ClientSettings>
                           <PagerStyle Mode="NextPrevAndNumeric" />
                       </telerik:RadGrid>
                       </telerik:RadAjaxPanel>


thanks.
Princy
Top achievements
Rank 2
 answered on 29 Jul 2011
1 answer
100 views
Hi all,

I set the PageSize="50" 
When my page size is smaller 50, the paging still appears.
Is there a way to make paging disable when it's smaller than 50 and enable when lager than 50?

Thanks.

Andy.
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2011
1 answer
72 views
HI,

How do I enable the refresh button for ASP.Net grid control, similar to what we have for ASP.Net MVC grid control?

Thanks
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2011
6 answers
375 views
Greetings to telerik team and to all the telerik community.

I've just noticed that rebinding the grid using the command RadGrid.Rebind() Doesn't fires the NeedDataSource event.
Only after adding the row:

 

this.RadGrid.DataSource = null;

 

before the
RadGrid.Rebind() everything is working properly.

Am i missing something out?

Please advice.
Thanks,
Vadim Rasin.
Iana Tsolova
Telerik team
 answered on 29 Jul 2011
1 answer
285 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
170 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
121 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
717 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
194 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
235 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?