Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
347 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
232 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
180 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
591 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
85 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
9 answers
924 views
I am invoking a RadWindow as a dialog in my web page.
I am invoking from code-behind, since I need to pass some parameters:

radWindow1.NavigateUrl = url  + "?England,Germany,France";
radWindow1.VisibleOnPageLoad = true;

This works great, however it keeps reloading on each and every postback.
How can I stop the RadWindow from reloading? I don't mind code-behind or JavaScript to achieve this.



Mansi
Top achievements
Rank 1
 answered on 29 Apr 2014
0 answers
82 views
Hi community,

Assume you have page contain some telerik controls include RadHtmlChart .
We cannot export the RadHtmlChart with the rest of the content in the page out of the box. 
We must manually export the chart with a third party tool as illustrated in this CL(http://www.telerik.com/support/code-library/exporting-radhtmlchart-to-png-and-pdf) as well as the rest of the page and then merge both exported image/pdf files into a common one.
The EditableImage class may be helpful in achieving that.

Than any one know how to do this task?

Thanks,
Michael
Top achievements
Rank 1
 asked on 29 Apr 2014
1 answer
95 views
Hello 

i have 2014.1.225.45 Telerik framework
and i fighting with this rad combo , to get work a DropDownWidth

I set up Width="240" it's ok, and i set up  DropDownWidth="200" it's not ok.

The only way what i found is css, but i want to understand why 200px is not apply !

please if someone get a solution. it'll be great.

olivier
Nencho
Telerik team
 answered on 29 Apr 2014
4 answers
164 views
Hi!

According to the online demos: http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

I've found some issues:

1. In RadEditor -> Document Manager, renaming a file or a folder pressing the enter key instead of clicking the OK button will close the whole document manager. You have to re-open the document manager again... Same goes for the ESC key while renaming or when adding a new folder.

2. Also the document manager will also close when just pressing the ESC or enter key. Is there a way to avoid this?

3. Renaming without any changes will result the message 'A file with a name same as the target already exists!' makes no sense to me, just leave the file untouched, close the window and all is good!

Thanks!

Roman Haussener
Blowfish AG
Roman
Top achievements
Rank 1
 answered on 29 Apr 2014
2 answers
89 views
In this sample in the official web, now if I want to see the tooltip and when I put the mouse in the southern part which name is Subject knowledge, the tooltip show the northern part which name is Experience.

Varun
Top achievements
Rank 1
 answered on 29 Apr 2014
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?