Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
I am experimenting with the RadGrid, and want to display an alert when the OnCommand event fires, to see when OnCommand is triggered, but nothing is coming up.  

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="ds_MainGrid" GridLines="None"
Skin="WebBlue" Width="1025px" AutoGenerateColumns="False"  AllowAutomaticUpdates="True" ShowStatusBar="True" ShowFooter="True" >
<HeaderContextMenu EnableAutoScroll="True">
</HeaderContextMenu>
<MasterTableView DataSourceID="ds_MainGrid" DataKeyNames="ID" ClientDataKeyNames="ID" EditMode="InPlace" >
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:Button ID="btn_Row_Options" runat="server" Text="Options" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="ID" HeaderText="ID" SortExpression="ID" UniqueName="ID">
<EditItemTemplate>
<asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' Width="27px" ></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' Width="27px"></asp:Label>
</ItemTemplate>
<HeaderStyle Width="20px" HorizontalAlign="Center" />
<ItemStyle Width="20px" />
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True"  >
<ClientEvents OnCommand="grid_Command" /> 
</ClientSettings>
</telerik:RadGrid>

   
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function grid_Command(sender, eventArgs)
{
   alert('testing');
}
</script>
</telerik:RadCodeBlock>



Maria Ilieva
Telerik team
 answered on 10 Jun 2010
2 answers
185 views
im binding radgrid from a dataset.Also using custom search option.Even though my dataset having values its not binding to the grid.so when ever i click the sort in the header the record is displaying.Please provide any help. Need an urgent fix
renju
Top achievements
Rank 1
 answered on 10 Jun 2010
4 answers
102 views
Hi,
I got a little problem with local resources and the RadGrid under Mono. If I create local resources for a page where I use a grid I get the following error:
Compilation Error 
 
Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. 
 
Compiler Error Message: CS0029: Cannot implicitly convert type `string' to `bool' 
 
Source Error: 
 
Line 25:                 </ExpandCollapseColumn> 
Line 26:                 <Columns> 
Line 27:                     <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="column"  
Line 28:                         meta:resourcekey="GridBoundColumnResource1"> 
Line 29:                     </telerik:GridBoundColumn> 
 
 
Source File: /home/mono/Desktop/MonoProblemTest/MonoProblemTest/Default.aspx  Lines: 27, 30, 33 
If I remove the meta:resourcekey="xyz" attribute everything works fine.

I am not that sure if this is a Telerik problem at all. This is why I also filed a Mono bug. There you can find a small project attached which reproduces the error on Mono. You can find it here: Novell-Bugzilla

Did you ever come across this issue?

Best regards
Ferdinand
Ferdinand
Top achievements
Rank 1
 answered on 10 Jun 2010
1 answer
206 views
Hi,
I have just tried upgrading Telerik RadControls for ASP .NET AJAX from 2008.3.1314 to 2010.1.519.

The upgrade appeared to go OK locally but once I deployed live I started getting the following exception thrown intermittently upon a loading a page:
System.Web.HttpException: Multiple controls with the same ID 'ctl34' were found. FindControl requires that controls have unique IDs.
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
at System.Web.UI.Control.EnsureNamedControlsTable()
at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
at System.Web.UI.Control.FindControl(String id)
at Telerik.Web.ChildControlHelper.FindControlRecursive(Control searcher, String ID)
at Telerik.Web.UI.RadAjaxControl.PerformRender()
at Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page)
at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at umbraco.UmbracoDefault.Render(HtmlTextWriter output)
at System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


I have not made any changes to the page, and the error seems to be coming from inside RadAjax, so the culprit is definitely something going wrong within RadAjax.

On the page I have some RadAjax, a RadComboBox and a RadMaskedTextBox. I am also using PeterBlum 4.0.5 validators.

I think I remember getting this problem before with older versions of Telerik but I believe it disappeared with one of the upgrades, so this appears to be a regression.
Iana Tsolova
Telerik team
 answered on 10 Jun 2010
4 answers
181 views

Hi,

I am exporting controls of asp panel using the following code. This code works well asp.net controls but when I use same panel having telerik controls it gives me error "The control with ID 'txtEmail' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it." on RenderControl line.

protected

 

void ExportGridView()

 

{

Response.Clear();

Response.AddHeader(

"content-disposition", "attachment;filename= Report.xls");

 

Response.Charset =

"";

 

Response.ContentType =

"application/vnd.ms-excel";

 

 

System.IO.

StringWriter stringWrite = new System.IO.StringWriter();

 

System.Web.UI.

HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);

 

 

Page pg = new Page();

 

pg.EnableEventValidation =

false;

 

pg.DesignerInitialize();

 

HtmlForm frm = new HtmlForm();

 

pg.Controls.Add(frm);

frm.Attributes.Add(

"runat", "server");

 

frm.Controls.Add(pnlUser); // Adding panel to form

frm.RenderControl(htmlWrite);

Response.Write(stringWrite.ToString());

Response.End();

}

Lubna Ansari
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
70 views
Hi,

Is it possible to have that elegant "look & feel" in ASP.NET AJAX grid column filtering as that we see in ASP.NET MVC grid demo?


Please let me know.

Many thanks.

MG
FISCAL
Top achievements
Rank 1
 answered on 10 Jun 2010
1 answer
94 views

I must be having stuck in the fog. I know what I am asking is simple however I cannot see the solution.

 

I am trying to display data in a RADGrid that include associated information between two tables.

 

I have two tables Products and Vendors

 

Products                                         Vendors

ProductID (pk)                                  VendorID (pk)

ProductName                                    VendorName

VendorRef (fk)

 

I want to display information from the products table including the VendorName from the vendors table.

 

Thank you for any insight and assistance.

Ray

Yavor
Telerik team
 answered on 10 Jun 2010
2 answers
128 views
Hello.I'm trying to insert an editor inside an i-frame with height 100%.It doesn't work in ie7.It works in Firefox thought.
Using XHTML 1.0 Transitional.
Any ideas?
Rumen
Telerik team
 answered on 10 Jun 2010
2 answers
75 views
hello,

i'm using the latest module version of radeditor for dotnetnuke (5.2.3) and i have a portal where i created all the content with the radeditor and at the german language IE7 doesn't show me the content only the english content.
the difference between german and english are the ä,ü,ö,ß,...

here ist he english link to the startpage which works at IE7
http://www.hellmerich.at/en/Home.aspx
and this is the german startpage which doesn't work with IE7
http://www.hellmerich.at/de/Home.aspx

at the webconfig of the cms i have choosen UTF8 unicode

i have no idea what could i do, when i delete the HTML modul from the german startpage the page load correctly.

thanks

regards

michael

Rumen
Telerik team
 answered on 10 Jun 2010
1 answer
143 views
I really like the look and feel of the RadAsyncUpload, but I can't seem to figure out how to use it.  None of the demos show how to do a full save file.  I can get my code to save the temp file to the App_Code/RadUploadTemp folder, but I can't figure out how to access that file and rename/save it to it's actual location.  I've been trying to use the UploadedFileInfo.TempFileName method, but I get an unreadable string returned.

Any demos or help would be greatly appreciated!
Genady Sergeev
Telerik team
 answered on 10 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?