Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
145 views
Hello,

We are trying to use the RadGrid like an "excel" grid, and it works fine, however when we try to loop through each cell, the "Text" property always shows up as "&nbsp".  However, when we use the "ExtractValues()" method, we can get the proper values.  All is fine and dandy, until we hit a column that is "ReadOnly".  The ReadOnly cell does not show up in the ExtractValues variable (which makes sense), but now I am back to square one as to how to get value from the cells by UniqueName.  We are using Telerik version 2009.2.826.35 (2009 Q2).  

foreach (GridDataItem row in RadGrid1.MasterTableView.Items) 
  var cell = row["MyUniqueName"]; 
  Response.Write(cell.Text); // This comes out to be " " each time. 


Any help in directing me in the right direction would be greatly appreciated.  Thanks.

Best Regards,

Patrick
Patrick Stecker
Top achievements
Rank 1
 answered on 27 Oct 2009
1 answer
131 views
Hello,

I want to databind whole radTreeview from a javascript call to the server.
In fact the scenario is the fallowing :
- One Treeview which display categories and sub categories from a database
- I add a new category with an ajax request to the server (ICallbackEventHandler)
- When the server callback, I want to rebind the treeview to display added category without reload the page

I've tried on several solutions like update panel, radajaxpanel, render new treeview and return html code, radajaxmanager and ajax request, but all have failed.

Can you help me please?

Best Regards,

Fabrice.
Yana
Telerik team
 answered on 27 Oct 2009
5 answers
206 views
I've run into (what seems to be) a fairly bad bug. I've got it down into a proof-of-concept page which follows below. On the page there's a RadGrid, a button and a RadTextBox. If you select a row and click the "Click Me" button, then the selected row's index should appear in the RadTextBox. Now virtual scroll paging is enabled, so scroll to the second page, select a row, and then click "Click Me". Here I get an exception. It appears that the RadGrid has somehow forgotten it has a row selected. Moreover, if I change the RadTextBox to a native ASP.NET TextBox the crash doesn't happen.

Any input would be appreciated.

Environment: Visual Studio 2005, ASP.NET 2.0 w/ MS AJAX extension, and Telerik.Web.UI.dll version 2009.1.609.20. (I know that there is a new version of Telerik.Web.UI.dll, but I dropped in the latest version and it didn't seem to help.)

Edit: Also this crash seems to be browser dependent. I've seen it in IE6, and on IE8 in compatibility mode. In "normal" IE8 and in Firefox the crash doesn't happen. I need it to work in IE6.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadGridTest.aspx.cs" Inherits="RxLink.WebForms.Testing.RadGridTest" %> 
 
<!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>Untitled Page</title> 
</head> 
<body> 
  <form id="form1" runat="server"
    <telerik:RadScriptManager ID="scriptManager" runat="server" /> 
    <telerik:RadGrid ID="grid" runat="server" AllowPaging="true" PageSize="10" 
        Width="200px" OnNeedDataSource="grid_NeedDataSource" PagerStyle-Visible="false"
      <ClientSettings EnablePostBackOnRowClick="true"
        <Selecting AllowRowSelect="true" /> 
        <Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" /> 
      </ClientSettings> 
    </telerik:RadGrid> 
     
    <asp:Button ID="button" runat="server" Text="Click Me" OnClick="button_Click" /> 
    <telerik:RadTextBox ID="radTextBox" runat="server" /> 
  </form> 
</body> 
</html> 
 


using System; 
using System.Collections.Generic; 
 
namespace RxLink.WebForms.Testing 
  public partial class RadGridTest : System.Web.UI.Page 
  { 
    protected void button_Click(object sender, EventArgs e) 
    { 
      radTextBox.Text = Convert.ToString(grid.SelectedIndexes[0]); 
    } 
 
    protected void grid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
    { 
      grid.DataSource = GetRange(); 
    } 
 
    static IEnumerable<int> GetRange() 
    { 
      for (int i = 0; i <= 50; i++) 
      { 
        yield return i; 
      } 
    } 
  } 
 
chrisjoelcowan
Top achievements
Rank 1
 answered on 27 Oct 2009
3 answers
324 views
Hi,
is it possible to export to csv without double quotes?

I could not find any solution for this.

Many Thanks
Alaeddin
Daniel
Telerik team
 answered on 27 Oct 2009
1 answer
70 views
Hi all,

i have this custom Button function which works fine for me. Bu now i want to extend this function with one check. I want to check if the inserted Div already exists and stop processing.

Here is my code:

Telerik.Web.UI.Editor.CommandList["Inhaltsverzeichnis"] = function(commandName, editor, args)  
{  
  if (document.getElementById("toc")) {   
    alert('Es existiert bereits ein Inhaltsverzeichnis-Tag im Content-Bereich!');  
  }  
  else {   
    editor.pasteHtml('Inhaltsverzeichnis<br /><br /><div id="toc">-Inhaltsverzeichnis-</div><br /><br />');   
    alert('Inhaltsverzeichnis wurde erfolgreich hinzugefuegt!');  
  }  
};  

The div with the id = toc definitly exists, but my code always goes to the Else part of the if statement. Whats wrong?

thank you
yavuz
Stanimir
Telerik team
 answered on 27 Oct 2009
0 answers
72 views
I know it makes senses for appointments that start on one day and finish the next to span accross multiple cells in MonthView but is it possible to turn that feature off?
Eric
Top achievements
Rank 1
 asked on 27 Oct 2009
1 answer
151 views
Hi,

i have a big Problem. I get a Javascript Error when i try to use the editor.pasteHtml Function.

Here is my Code:

ConfigFile.xml
<configuration> 
    <property name="ToolbarMode">ShowOnFocus</property> 
    <property name="ToolsWidth">680px</property>    
    <property name="AllowScripts">true</property> 
</configuration> 

ToolsFile.xml
    <tool name="Inhaltsverzeichnis" /> 

MOSSEditorTools.js
Telerik.Web.UI.Editor.CommandList["Inhaltsverzeichnis"] = function(commandName, editor, args)  
{  
  alert('test');  
  editor.PasteHtml('Hallo!!!');   
};  

It is very curious! When i only call alert('test'); without editor.PasteHtml('asdasd'); finally, everything works fine and i get an alert without any errors. But when i try to use the editor.PasteHtml('hello'); function, i always get an Javascript error and nothing happens.

Can someone help please.

regards
yavuz
Stanimir
Telerik team
 answered on 27 Oct 2009
4 answers
440 views
I have a RadGrid with two columns and I am using FormTemplate for editing (<EditFormSettings EditFormType="Template">) I have a CheckBox called chkIsAgentInformationAvailable. I want to add a following Javascript function to this checkbox. How do I do that
here is the function 

function chkIsAgentInformationAvailable_Clicked()
{
     var clicked = $('#<%=chkIsPurchasedThroughLender.ClientID%>:checked').val();
     if (clicked == 'on')
     {
          $('#<%=trAgentDetails.ClientID %>').show(); 
     } 
     else
     {
          $('#<%=trAgentDetails.ClientID %>').hide(); 
     }
}

Would really appreciate if you could tell me how to do that.

Thanks in Advance
Lakshman
Sebastian
Telerik team
 answered on 27 Oct 2009
3 answers
131 views
How come I cannot set different AutoCompleteModes in the asp version of the radcombobox?

The feature exists in radcombobox for winforms, apparently. But the available autocompletion in webpages does not deliver what I need.

Will this be added in the future?
Simon
Telerik team
 answered on 27 Oct 2009
1 answer
135 views
Hi.

I've downloaded radeditor 5.5.1 trial, and successfully added to our local WSS 3.0 installation.
We can get it working, and can customize its toolbar modifying file ListToolsFile.xml.

Next step was to try to localize tooltips for the toolbar and messages: I've followed the suggestions I've found in some previous messages in this forum, and I've downloaded the file 088436_086570_it-IT_App_GlobalResources.zip; then I extracted its content in App_Globalresources folder, so I get RadEditor.Main.it-IT.resx, RadEditor.Dialogs.it-IT.resx, RadEditor.Tools.it-IT.resx and RadEditor.Modules.it-IT.resx side by side with other resources files from trial installation.
Next step was to edit ListConfigFile.xml, adding the line
  <property name="Language">it-IT</property>

Anyway, strings are still in English. But if I try to alter other settings from ListConfigFile.xml, I can see the correct result in my browser (eg, I can remove Html from "EditModes" property and actually I don't see the html editor panel any longer.

So what am I doing wrong?

TIA

rioka
Top achievements
Rank 1
 answered on 27 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?