Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hello,

this is a posting about experience with a grid problem and i'd like to know if it could be handled better with Grid for Asp.net Ajax

Recently, i had a cusomer request, where i needed to present tabular data, but the data was twofold, first it consisted of four columns and later on three.

The way I tried solving it first was to use two different gridviews. Okay, so it worked, but the problem was formatting, even though i set a width on the different columns i just didn't get the columns in the two different gridviews to align properly (horizontally speaking) - column 2 and 3 of gridview2 should align to column 3 and 4 in gridview1. And column1 in gridview2 should span across column 1 and 2 in gridview1.

To a certain degree it worked and i was quite happy with the result. But then the next feature request was a linkbutton which wold remove 1 column in both grids, after doing that the column-aligning was messed up.

Okay I thought, now what, I created a class in the GUI-tier with generic names, such as Field1, Field2 .... Field5, and created a List with these where i first created objects of from the first datasource and then from the second datasource. And then I bound the gridview to this list instead.

Wohoo!! everything seemed to work, except that i had to use the rowdatabound event to make column1 span across two columns for the rows concerning the second datasource. (this was achieved using a bool on the class and checking for this bool on each row)

Finally the grid worked but I feel a lttile bit uncomfy with the way it was solved, and i'm writing this asking for advice on whether there is a better way of solving this problem using the Grid from telerik?
Nikolay Rusev
Telerik team
 answered on 17 Jul 2008
7 answers
166 views
Hi,

is it possible to let a PanelBarItem has 2 links? The button itself will redirect to a detailpage, while the icon will delete that entity or create a new one?
I've been looking for this functionality and also found a couple of possible things, but they didn't work, so I'm wondering if it is possible... and if so... How?

Thanks in advance.
Yana
Telerik team
 answered on 17 Jul 2008
1 answer
156 views
hello,

I try to bound automatically the radChart thanks to EntitySpaces with the esDataSource control. For the setting of the radChart I use ChartWizard, in data I choose the series name (for the legend) in this table of series all the properties of the collection I choose in esDataSource appears (which means that the esDataSource and the radChart are connect together ? ), Series Item is disabled because it write that it will be databound. All seems correct, but when I run my page, there is just the series name(legend) which appears and there is this message "there is no or empty series". My database is not empty. Is the radChart and the esDataSource is incompatible ? Did I miss to do something ?

Thanks!
Hélène
Giuseppe
Telerik team
 answered on 17 Jul 2008
2 answers
133 views
I have a grid with grouping enabled.  When the user sorts by a column, I want the grid to remember which groups were expanded and which groups were collapsed when re-displaying the sorted results. How can I do this?
Bodevain Svensson
Top achievements
Rank 1
 answered on 17 Jul 2008
4 answers
129 views
hi

How do I convert an anchor tag to use Hyperlink server control in RadGrid?

I have this code that i wish to convert.

</

EditItemTemplate>

<ItemTemplate>

<a href="#" onclick="openRadWindow2('<%#DataBinder.Eval(Container.DataItem,"vourcherid")%>'); return false;">Update</a>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

Thanks a million

L
Top achievements
Rank 1
 answered on 17 Jul 2008
1 answer
179 views
Hi,

How can we get actual charcters count for the text entred by user in RAD Editor. Actual characters meant bu only alphabtes and not the HTML Tags and Atrributes that are generted like <b>, <br>, <UL> etc

regards,

Parimal
George
Telerik team
 answered on 17 Jul 2008
1 answer
65 views
All right guys,
I have copy-pasted this following example exactly as is to my own code... It doesn't work. I am using RadTreeView.Net2.dll or I guess RadTreeView for Ajax as you like to call it??
http://www.telerik.com/help/aspnet-ajax/tree_checkboxesallchildnodes.html

I have gone through the mappings as you've specified here:
http://www.telerik.com/help/aspnet-ajax/tree_overviermigrating.html

Since there's been huge renamings of the functions, properties etc... it's really not that easy to read your old examples in the new version... I'd suggest you update the example for propagating the check-status of a root-node to its child-nodes or ...?

anyhow, please help me out... all I'm trying to do is to make it so, when user checks a parent node, its subsequent child nodes are also checked.

cheers!
Jan
Top achievements
Rank 1
 answered on 17 Jul 2008
1 answer
130 views
Hello,

I am trying to add a rad combo box into the custom fields of a raduploader but I'm getting some errors. 

I created a javascript function that adds controls to the custom fields of the rad upload but, in order to put the rad combo box in, I need to call the render method from my server side code.  I wanted to take the html that was produced in the render and put it in the table cell's inner html.  The problem is that the combo box render method returns javascript functions that don't seem to work.

The error I get is: "'RadControlsNamespace' is Undefined"

The generated javscript looks like this:
"

cell.innerHtml = <div id=

"ctl02_wrapper" style="display:inline">
<!-- 2.8.4 --><script type=
"text/javascript" src="/WebResource.axd?d=kMNCn9DBFwUZ2PT3nr9Q8nKTfGxfqM3IzFnt6T4kZDu4u6ciNTtF77By2rZgy2esxjRhzIOLrLIYf5J1XBkdPBu0RcNwEvenr7LitxYGTM_9zU--1dBU2yjkl0u2Qlf70&amp;t=633512827776734358"></script><div class="ComboBox_Default" id="ctl02" style="display:inline; white-space: nowrap;"><input type="text" id="ctl02_Input" name="ctl02_Input" value="" class="ComboBoxInput_Default" style="width:150px;" readonly="readonly"></input><img alt="" id="ctl02_Image" src="/WebResource.axd?d=kMNCn9DBFwUZ2PT3nr9Q8nKTfGxfqM3IzFnt6T4kZDu4u6ciNTtF77By2rZgy2eso7GBTTPlY_CgFW08xP6ilOK6Ftuf4jEzx__hxukw6JIsIH6jBcz5cAnBp-6BP6X10&amp;amp;t=633512827776734358" class="ComboBoxImage_Default"></img><div id="ctl02_DropDownPlaceholder" style="position:absolute; display: none; z-index: 300;" class="ComboBoxDropDown_Default"><div id="ctl02_DropDown" style="overflow:auto;white-space:normal;"></div></div><span id="ctl02StyleSheetHolder" style="display:none;"></span><script type="text/javascript">RadControlsNamespace.AppendStyleSheet(false, 'ctl02', '/WebResource.axd?d=kMNCn9DBFwUZ2PT3nr9Q8nKTfGxfqM3IzFnt6T4kZDu4u6ciNTtF77By2rZgy2eso7GBTTPlY_CgFW08xP6ilLUVz9i9yv34zs8tlQJer5FL-YYvN_lmRn81TOiDQ9Yu0&amp;t=633512827776734358');"

Below is some of the code:

private string GetJavascript()

{

RadComboBox cbo = new RadComboBox();

cbo.SkinsPath =

"";

this.Controls.Add(cbo);

StringWriter strWriter = new StringWriter();

HtmlTextWriter writer = new HtmlTextWriter(strWriter);

cbo.RenderControl(writer);

string cboRender = strWriter.ToString();

this.Controls.Remove(cbo);

string javascript = "";

javascript =

@"function addTitle(radUpload, args)

{

var row = args.Row;

var cell = row.insertCell(-1);

var text = document.createElement('span');

text.innerHTML = 'Title: ';

cell.valign = 'bottom';

cell.appendChild(text);

cell = row.insertCell(-1);

var title = document.createElement('input');

title.id = title.name = radUpload.GetID('title');

cell.appendChild(title);

cell = row.insertCell(-1);

cell.innerHtml = "

+cboRender+@";

}"

;

return javascript;

}

I would appreciate any information I could get on this.

Thanks,
Dale

Erjan Gavalji
Telerik team
 answered on 17 Jul 2008
1 answer
131 views
Hi,

How can we specify Font Name and Font Size for the Editor in the Toolsfile. We are using ASp.NET AJAX Rad Editor Q12008 SP1.

Our file is

<?

xml version="1.0" encoding="utf-8" ?>

<

root>

<

tools>

<

tool name="Bold"/>

<

tool name="Italic"/>

<

tool name="Underline"/>

<

tool separator="true"/>

<

tool name="InsertOrderedList"/>

<

tool name="InsertUnorderedList"/>

<

tool name="Outdent"/>

<

tool name="Indent"/>

<

tool name="FormatBlock"/>

<

tool separator="true"/>

<

tool name="FontName"/>

<

tool name="FontSize"/>

<

tool name="ForeColor"/>

<

tool name="BackColor"/>

<

tool separator="true"/>

<

tool name="LinkManager"/>

<

tool name="Unlink"/>

</

tools>

</

root>

regards,

Parimal

George
Telerik team
 answered on 17 Jul 2008
1 answer
239 views
I notice that the RadEditor, instead of actually doing a cut, copy or paste operation will just tell the user to press CTRL-X, etc. Is there a way to activate the functionality of these buttons? Is there a reason why this was not implemented?

Chris Poirier
Sequiter Software Inc.
Rumen
Telerik team
 answered on 17 Jul 2008
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?