Telerik Forums
UI for ASP.NET AJAX Forum
30 answers
876 views
Is it possible to set the StartTime and EndTime of a radTimePicker's TimeView within client-side JavaScript?
pierreluigi88
Top achievements
Rank 1
 answered on 30 Apr 2014
1 answer
51 views
How do i force this control to shows up 24:00 instead of 00:00

I am aware that it's not a regular time but anyway i want it to has 24:00 instead of 00:00 .. meaning after 23:00 should follow 24:00 ...

I am using format HH:mm and Culture fr-FR 

Thank you so much
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2014
5 answers
345 views
Hi,

I am trying to use Serverside ExporttoExcel() function which when executed the page doesnot complete the postback.

The download completes but the page is not completing the page lifecycle.

I have Export to Excel in a dropdownList.When that is selected the save/cancel window comes up. Even when i do either of them the dropdown would still remain on export to excel.

Any help in this matter would be appreciated.

Thanks,
Ashwini
Princy
Top achievements
Rank 2
 answered on 30 Apr 2014
1 answer
105 views
I'm using a SQL DataSource to bind to RadAutoCompleteBox in the Page Load. The RadAutoCompleteBox  is inside a RadAjaxPanel. However, when I type anything into the box, I do not see the loading/spinning image at the end of the text box as shown in the sample here:

http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/templates/defaultcs.aspx


Here's my code:

<telerik:RadAjaxPanel runat="server" ID="Panel1">
                           <telerik:RadAutoCompleteBox runat="server" ID="MailTo" Filter="StartsWith" DropDownHeight="400"
                               DropDownWidth="250" AllowCustomEntry="true" DataTextField="Text" DataValueField="Value">
                               <DropDownItemTemplate>
                                   <table cellpadding="0" cellspacing="0">
                                       <tr>
                                           <td align="left" style="width: 50%; padding-left: 10px;">
                                               <%# DataBinder.Eval(Container.DataItem, "Text")%>
                                           </td>
                                       </tr>
protected void Page_Load(object sender, EventArgs e)
       {        
 
           MailTo.DataSource = GetUsers();       
           MailTo.DataBind();
           
       }
                                   </table>
                               </DropDownItemTemplate>
                           </telerik:RadAutoCompleteBox>
                       </telerik:RadAjaxPanel>

Konstantin Dikov
Telerik team
 answered on 30 Apr 2014
0 answers
69 views
hello

  I am using Radgrid,

 I want to increse thickness of Scrollbar of Radgrid

please find image attached below.


Please help

thanks
kishor
Kishor
Top achievements
Rank 2
 asked on 30 Apr 2014
3 answers
278 views
Hi,

I have a RadGrid with empty columns list inside a RadAjaxPanel. I add all columns on page load event. I have one column which needs to show multiple hyperlinks, so I create a class that implements ITemplate and set the column's Itemtemplate to this new class as show below.


public class HyperlinksTemplateColumn : ITemplate {
 
       
      protected Label _value;
 
      public void InstantiateIn(System.Web.UI.Control container) {
         _value = new Label();
          
         _value.ID = "_hyperlinkLabel" ;        
          
         container.Controls.Add(_value);
      }
       
   }

GridTemplateColumn customCol = new GridTemplateColumn();
radGrid.MasterTableView.Columns.Add(customCol);
customCol.ItemTemplate = new HyperlinksTemplateColumn();

All other columns are GridBoundColumns. When I export the grid, all columns except this custom column exports the data fine. I tried setting data in ItemCommand on excel export command as show below.

protected void radGrid_ItemCommand(object sender, GridCommandEventArgs e) {
   if (e.CommandName == RadGrid.ExportToExcelCommandName) {
      foreach (GridDataItem item in radGrid.MasterTableView.Items) {
          item[CmSwAgreementConstants.HYPERLINK_COLUMN_UNIQUE_NAME].Text = "set corresponding data her"
      }
   }
}


Can anyone please help why the export for the custom column is not working. 

Thank you in advance,
Ana
 
Princy
Top achievements
Rank 2
 answered on 30 Apr 2014
5 answers
186 views
I've a RadAutoCompleteBox bound to a SQL data Source. When I type a text into the box, I want to have the loader/spinner show at the end as shown in this sample:

http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx

I've tried using the sample code which is extremely basic, but it still doesn't show the circular image at the end. Please help.

<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
        <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" Width="250" DropDownHeight="150"
            DropDownWidth="250">
        </telerik:RadAutoCompleteBox>
    </telerik:RadAjaxPanel>
 
 
protected void Page_Load(object sender, EventArgs e)
        {
            RadAutoCompleteBox1.DataSource = new List<string>() { "Europe", "America", "Asia", "Africa", "Australia" };
        }

Princy
Top achievements
Rank 2
 answered on 30 Apr 2014
3 answers
103 views
Edit and Insert mode loses focus after tab from checkbox column and dropdown.  It works fine after I I click on next textbox field, but it has problems with this transition.

Is there a way to 

Here are my columns that give me problems:

...
<rad:GridCheckBoxColumn DataField="ContentFull" DataType="System.Boolean" UniqueName="ContentFull">
...
<rad:GridTemplateColumn UniqueName="Reason">
   <ItemTemplate>
   </ItemTemplate>
  <EditItemTemplate>
     <asp:DropDownList ID="ddlAdjustmentReason" runat="server" DataSourceID="EntityDataSource2"
                       AppendDataBoundItems="True" DataValueField="AdjustmentCodeID"                 DataTextField="AdjustmentDescription">
   <asp:ListItem Value="" Text="" />
   </asp:DropDownList>
  </EditItemTemplate>
 </rad:GridTemplateColumn>
....



Princy
Top achievements
Rank 2
 answered on 30 Apr 2014
8 answers
526 views
Hi,

Yes, I've found several threads similar to this, but any solutions provided don't seem to work for me.
I have a RadWindow (separate aspx page) which contains a RadTabStrip / RadMultiPage / RadPageView structure.
The grid (on one of the pageviews) is populated properly upon page load.
I update a particular row in the grid using a web service, and now want to rebind the grid so that those changes are reflected.
I perform an identical operation in a RadWindow with no tabs, and everything works fine.

So it looks like I need to access the grid differently when it is contained within a RadPageView.

Here's what I've tried without success:
function RefreshDataSpecsGrid() {
        var multiPage = $find("<%= RadMultiPageDataSpecs.ClientID %>");
        var pageView = multiPage.findPageViewByID('pagDataSpecsDetails');
        var domElement = pageView.get_element();
        var grid = domElement.get_element('grdDataSpecs');
        var masterTable = grid.get_masterTableView();
        masterTable.rebind();
    }

The multiPage , pageView and domElement are all fine.
I fail on the grid assignment with the following error:

    Object doesn't support property or method 'get_element'

I'm sure I'm doing something stupid.
Can you tell me what that is?

Thanks in advance.

Jim
jlj30
Top achievements
Rank 2
 answered on 30 Apr 2014
2 answers
61 views
As some of you may recall, I've been having problems Ajaxifying controls within a RadSplitter.  It looks like I overlooked the simplest solution of all, wrap the entire RadSplitter in a RadAjaxPanel.  This seems to be working perfectly except for one odd quirk.

In my original JavaScript driven screen, I had a fairly standard OnClientClicked JavaScript function designed to disable the save button after one click (to prevent the usual problem with multiple submissions).

 function disableSave(button, args) {             
                if (Page_IsValid) {                 
                    button.set_enabled(false);
                }
 }

Once I wrapped the splitter in a RadAjaxPanel, I found that this function seemed to disable the server side OnClick function.  The button would click once and become disabled, but the OnClick event never fired.

What am I seeing here?

Boris
Top achievements
Rank 1
 answered on 29 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?