Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
245 views
We have a 3 level radpanel that is built dynamically from a database. At the third level of the radpanel hierarchy we need to add a textbox that we can populate and retrieve data from.

So for example:

Employee Salaries
-- Managers
------ John [ textbox ]
------ Mary [ textbox ]
-- Executives
------ Harry [textbox ]
Building Costs
-- Building 1
------ Heat [ textbox ]

etc.

Is there a way to do this?

thanks
Jeff
Top achievements
Rank 1
 answered on 11 Jan 2009
2 answers
178 views
I have a RadGrid setup on a page bound to a collection that is initialised and bound on the page_load event. A snippet of the aspx code showing the colum setup is shown here:


 

<Columns>

 

 

 

 

<telerik:GridTemplateColumn HeaderText="&nbsp;" UniqueName="Status" HeaderStyle-Width="30px" ItemStyle-HorizontalAlign="Right">

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

This all works okay. However when I call the dataBind() method from javascript in conjuction with the OnRowDataBound handler to populate the rows (by obtaining the cell and setting the innerHTML), my grid appears is loaded as I expect BUT the style properties that I set on the Columns such as the  ItemStyle-HorizontalAlign="Right"  are no longer applied. My question is how do I set the styles if I want them retained when loading the Grid via client-side code?

More broadly, is it possible to work with ItemTemplates when working with the  client-side dataBind() without having to resort to the OnRowDataBound event?

 

Crescent
Top achievements
Rank 1
 answered on 11 Jan 2009
1 answer
284 views
hi

I generated a grid dynamically and then wht i studied
When i export for 100 records it works fine with a good speed
but when i export it with 30441 records and 10 columns  it got too slow it took more than 10 minutes on my local pc .....and at last i got frustrated and stop the application .. to at the end of 1010 minutes too it was not able to export 30441 records .....


is there any thing i m missing in my code i my code.


RadGrid1.ExportSettings.FileName =

"Report1"

 

RadGrid1.ExportSettings.ExportOnlyData =

True

 

RadGrid1.ExportSettings.IgnorePaging =

True

 

RadGrid1.ExportSettings.Excel.FileExtension =

".xls"

 

RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML

RadGrid1.ExportSettings.ExportOnlyData =

True

 

RadGrid1.MasterTableView.ExportToExcel()


The same query when i fired on a grid which is designed and bind it wht sqldatasource it took less than 1 minute .....
so i m sure i m doing some thing wrong in the grid which i generated dynamically..... so can any one suggest me about wht i need to do......



In my dynamically generated grid wht i m doing is
adding the columns to the grid at page_load() event
then setting its datasource at need datasource event

so plz guide me wht is remaining in it.......


Georgi Krustev
Telerik team
 answered on 10 Jan 2009
1 answer
96 views
Hi,
Please how can I access the footer value for a column in RadGrid ? I need to check it during my add new record ..
Thanks for your help

Ban
Daniel
Telerik team
 answered on 10 Jan 2009
4 answers
208 views
We have a grid where users can select one checkbox (multi-select is false). We're unable to uncheck the checkbox. This seems to be the default functionality, as in this example:
http://demos.telerik.com/aspnet-ajax/Grid/Examples/Client/Selecting/DefaultCS.aspx

But we want to allow users to "un-select" checkboxes by clicking a second time on the checkbox. How can we do this?

Thanks
Daniel
Telerik team
 answered on 10 Jan 2009
4 answers
320 views
Hi,

In the old ASP.NET RadEditor there was a property for showing or hiding the submit and cancel buttons, but I cannot see an equivalent property on the Prometheus RadEditor. Am I simply looking in the wrong places or is this not available?

If its the latter, is there a particular reason that this is not implemented on the Prometheus RadEditor? I know from reading otehr threads on the forums that we can create standard ASP.NET buttons, or add custom buttons into the toolbar but this seems excessive to have to code and style separately for what I would believe is quite a core feature for a lot of users of the Prometheus products.

Can you confirm whether this is actually available and just hidden, or whether this could be added in the future?

Regards

Rob
Jeff
Top achievements
Rank 1
 answered on 10 Jan 2009
1 answer
111 views
I get an error when calling set_rotatorType (using some code in an example post here):

[code]

oRotator.set_rotatorType(Telerik.Web.UI.RotatorType.FromCode);

[/code]

null is null or not an object.

I have the code in a RadCodeBlock and call the script from an onload on the body tag.  I'm using a RadScriptManager.  Do I need to include a path to some javascript files or something?

Fiko
Telerik team
 answered on 10 Jan 2009
2 answers
357 views
For example I have these controls on a page:

    <asp:TextBox runat="Server"></asp:TextBox> <radI:RadTextBox runat="Server"></radI:RadTextBox>
   
The RadTextBox does not appear in vertical alignment after the TextBox. It appears much lower and seems there is some extra padding/margin at the top. Why and how do I get rid of it?
 

Dimo
Telerik team
 answered on 10 Jan 2009
1 answer
128 views
Hello Telerik team,

I have a slight issue with rebinding a rotator.  I have a main aspx page with many ascx pages loaded onto it as controls, this page is a shop admin system.  On one of the ascx's there is the option to add a product to your basket, up at the top of the aspx is another ascx with a mini prieview of your basket, this ascx is on a rotator.  So as products are added to the basket the ascx at the top rotates between the products in your basket.  The problem is when you initially load the page their is nothing in your basket, when you add products nothing displays in the rotator unless you reload the page or do a postback (the page is full AJAXed up with RadAjaxPanels so there is no postbacks!)

If there is a product already in the basket (so there is something when the page initially loads), if you add a second product the rotator 'refreshes' so that now it will start rotating through all the products in the basket.  I can't work out why when you initially add to an empty basket the rotator will not refresh or rebind (i know there is no rebind option for a rotator).

I am using using ajax so that when a product is added it goes into code and does -

RadRotator1.DataSource = dt;

RadRotator1.DataBind();


with dt being a datatable of values.

If you could provide any help as to why it wouldn't be refreshing initially or how to achieve this it would be great.

Thanks in advance

Ian 
Fiko
Telerik team
 answered on 10 Jan 2009
1 answer
138 views
Hello,

The event handler I enter for the OnClientFormCreated event isn't being called.  Is there a setting you have to enable to call client-side events?  I also listen to the server event as well.......

Thanks.
Peter
Telerik team
 answered on 10 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?