Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi,

      Right now I am replacing the old telerik control with new telerik control. In the old code,
     
var newItem = new RadMenuItem(); 

      After replacing with new telerik control, the above code is not working in the Javascript. It is giving as undefined error.

Thanks,
Suresh
http://www.sureshdevi.co.in
Schlurk
Top achievements
Rank 2
 answered on 05 Feb 2010
9 answers
504 views
And by paragraph, I mean surround a block of text with a <p> tag.

I tried : the new paragraph tool and the formatblock tool.

Problem with the new paragraph tool : when hit, it erases the selected text (ok, it's "new" paragraph, no problem with that) but after hitting the button, the cursor is outside the paragaph. °_° ! That part looks quite strange for my end-users.

Problem with the formatblock tool : as long as it seems they is no solution with the "new paragraph" tool, I tried to use the formatblock. Our goal is to copy/paste big blocks of plain text, and format it. That part is a H2, that one is a H3 ... oh, and that one is P. So I configure my toolfile like this :

<paragraphs>
<paragraph name="Clear" value="&lt;body>" />
<paragraph name="&lt;p>Paragraphe&lt;/p>" value="&lt;P>" />
<paragraph name="SillyTag" value="&lt;SillyTag>" />
<paragraph name="&lt;H1>Heading 1&lt;/H1>" value="&lt;H1>" />
<paragraph name="&lt;H2 style='font-family: Trebuchet MS;'>Heading 2&lt;/H2>" value="&lt;H2 style='font-family: Trebuchet MS;'>" />
<paragraph name="&lt;H3 class='serif'>Heading 3&lt;/H3>" value="&lt;H3 class='serif'>" />
</paragraphs>

When I select text, and then choose the formatting, everything works fine ... except for the P :-/ If I choose "SillyTag", I got : <sillytag>some text </sillytag>. Why does the P tag have a peculiar behavior ? How can I surround the selected text with a P tag ?

I succeded having text surrounded by a P tag, but for that I select the text, choose H1, than choose P :-/

Thanks in advance for the answer.
Rumen
Telerik team
 answered on 05 Feb 2010
1 answer
117 views

Hi,

I am using rad grid version 4.6.0.0.  I am exporting data to excel using GridExcelExportFormat.Html  format. The data is in 99-9999 format.

 

 

 

The issue is while exporting it converts this numeric data into Date format. I need to preserve this number-number format while exporting also.

If anybody know how to preserve the data format pls let me know.

Thanks in advance

 

Daniel
Telerik team
 answered on 05 Feb 2010
2 answers
172 views
Hi all,

I'm working on this grid and the issue here is I don't know how many columns I'll need at runtime.  And each cell needs a textbox in it.  So I found this page (http://www.telerik.com/help/aspnet-ajax/grdputallitemsineditmodenoadditionalrebind.html) and thus was able to get all of the items in the grid to show as textboxes with their right data in them.  My plan was to put a save button on the form and when the user clicked save, to iterate through all the textboxes and save their values back to the database.  However, when the user clicks the save button (just a linkbutton that has an OnClick="lbSave_Onclick" and so it should go to that sub when it's clicked) -- when I click the save button I get an error.  I know it has something to do with all those grid cells being in edit mode because when I remove the databinding for the grid and then click the save button it goes straight to Save_Onclick routine.

Any ideas?  The error message I get is :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Specified argument was out of the range of valid values.
Parameter name: index

and it's in telerik's webresource_2.axd file



Denise Duggan
Top achievements
Rank 1
 answered on 05 Feb 2010
3 answers
581 views
I may be just overlooking something in the examples but how do you programatically make a column in the grid be a drop down list when the datasource is a runtime only table.

What I want is a 2 column unbound grid with 20 rows and the first column is a drop down list with all of the field names from a sql table.
What I'm doing is creating a in memory datatable with 2 columns and 20 blank rows and making this the datasource for a RadGrid.
Then I want to make the first column of the grid be a drop down list with the fieldnames from an sql table.
The grid should start out in edit mode and then save the users entries for both columns in the underlying datatable so that I can loop through the datatable and use the fieldnames and value pairs for an update string.

This seems straight forward but I haven't been able to make it work yet.

Any help would be greatly appreciated.
Pavlina
Telerik team
 answered on 05 Feb 2010
1 answer
104 views
Hello, We have a project. Well, We have a Panel that is also an INamingContainer(a custom control derived from these). We then put inside of this Panel a RadGrid control and a Button control. Note, this is on an ASP.Net AJAX enabled page. As such, the buttons and such all post back async. Well, whenever I go `mygrid.AutoGenerateColumns=true` I suddenly no longer get the `mybutton.Click` event. It does postback and hits the ASP.Net server again, but it does not fire this event. Only whenever AutoGenerateColumns is enabled, that is.

The Grid is databound and is setup like this:
            _gridcontrol.Height = Unit.Pixel(200); 
            _gridcontrol.DataSource = _GridDataSet
            _gridcontrol.DataMember = "GRIDFORMDATA"
            _gridcontrol.Width = Unit.Percentage(100); 
            // _gridcontrol.AutoGenerateColumns = true
            _gridcontrol.AutoGenerateHierarchy = true
            _gridcontrol.Enabled = true
             
            _gridcontrol.ClientSettings.EnablePostBackOnRowClick = true
            _gridcontrol.ClientSettings.Selecting.AllowRowSelect = true
            _gridcontrol.SelectedIndexChanged += new EventHandler(_gridcontrol_SelectedIndexChanged); 

Note, I can use all of those lines for setup and it works, but when I uncomment AutoGenerateColumns, suddenly the events for everything inside of the Panel containing it cease to be fired.

The RadGrid control is the only Telerik control I am using also(no Telerik ajax or anything) and the Panel containing the RadGrid is contained inside of an UpdatePanel. Also, the RadGrid control is dynamically created at runtime.
Pavlina
Telerik team
 answered on 05 Feb 2010
6 answers
315 views
Hi,

I am populating grid through WCF method in client side. DEpending upon some condition, i need to change the header text of some column and hide some columns. Please let me know how we can do this?

Thanks in advance.
Arvind
Schlurk
Top achievements
Rank 2
 answered on 05 Feb 2010
1 answer
82 views
Hi there,
The Visual Style Builder looks great, however the control I want to customize a skin for does not seem to be working.  I do the following:

  • Click the New Skin link.
  • Enter a Skin Name, select a Base Skin, I want to use Forest. (but I have tried others and get the same results), put a tick in the PanelBar control checkbox and press the Create button.
  • Once the Style Builder loads I click the Fine-tune tab and then once that loads I click the Child Items button.
  • I then go through each tab, (Normal, Hovered, Selected/Expanded, Disabled) and click the "remove" link in the Background - Image. (However I find if I do this in the "Normal" tab first it removes it from all the others.)

The behavior I see is that only the thin edge on the right hand side disappears.  No mater what I do the orange bg image will not disappear.  I have tried Saving and then refreshing the page.  But I can't see a way to get rid of it.

If i try and upload a new image, after removing the existing one, I see just the edges of it appear under the existing one that did not disappear when I removed it.

This behavior happens in the latest FireFox and the latest IE7.

If this is a bug when will it be fixed, and is there a work around?

If this is not a bug, what am I doing wrong.

Regards,

Scott.
Kamen Bundev
Telerik team
 answered on 05 Feb 2010
1 answer
101 views
Because your tool uses iframes is it impossible to align the drop down items properly in IE6 when placed in a css centered div.

This is a standard method for center aligning pages, I will not accept any answer that suggests any other centering method.

Below is the relevant css for my page:
body { text-align:center;} 
#page {margin:0 autotext-align:leftwidth:960px
 
 
The relevant aspx is as follows:
<div id="page"
<telerik:RadComboBox ID="Discipline" Runat="server" DataSourceID="DisciplineDS" EnableLoadOnDemand="true" DataTextField="Discipline" DataValueField="Discipline" EmptyMessage="select discipline" AppendDataBoundItems="true" OnSelectedIndexChanged="Discipline_Changed" AutoPostBack="true" Width="195px" > 
<Items> 
<telerik:RadComboBoxItem Text="All disciplines" Value="" /> 
</Items> 
</telerik:RadComboBox> 
</div> 

Your recommendations for a fix here would be appreciated,

Robert


Kamen Bundev
Telerik team
 answered on 05 Feb 2010
1 answer
133 views
I am using linqdatasource to bind the the radgrid. In the linqdatasource I am specifying a view from the database. If i run the view in query analyzer it takes  3 to 4 sec.

Navigating the grid using page numbers takes around 2 secs which is fine. 
Problem here is when I enter search criteria in the filter box it would take more than 7 sec. Any reason why it would happen?

could also clarify how linqdatasource works internally. If I click a page no. does it execute the view again and show only the appropriate records?

Pavlina
Telerik team
 answered on 05 Feb 2010
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?