Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
I have a dashboard page that displays a grid.

One of the columns has a hyperlink in it.  What I would like to do, is in the pre-Render event for the grid, loop through the items and if there is a value in this column, add an <a> tag in that same cell (leaving the hyperlink alone), with an icon so that if they click on that icon the user will be redirected to another page. 

It could be a javascript function or codebehind that makes the call.

Anyone ever done something like this?  Anyone have any ideas?

Rich
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2012
1 answer
74 views
Hi,
I'm facing an issue when RadGrid having PagerStyle Mode="NextPrevNumericAndAdvanced" is placed in fieldset and decorated by RadFormDecorator with Default skin only in IE6 as can be seen if file attached.



Galin
Telerik team
 answered on 18 Oct 2012
0 answers
94 views
Hi everyone,

I have been a Telerik unconditionnal for years, coding with the RadControls every day and loving it.

But this release (Q3 2012) was a real shock for me, as the Live Examples have moved to Metro style.I just wanted to know if I am the only one on earth hating it. It's not juts ugly, it's unpractical from a developper's point of vue. Examples are nearly unreadable. I am just wondering why you Telerik people have forced everyone to work with that Metro style ? Supporting it is a must, of course, but forcing us to use it with no possible escape is extremely disappointing.
I would like to now if other developpers are comfortable whith that Metro style Live Examples or like me, pretty mutch uncomfortable with it ?

Here is the message I have sent as a feedback.
Francois
_________________

Hi guys,

just downloaded Q3 2012 RadControls.
Thanks for the brilliant controls; after several years of using them I am still an unconditional Telerik fan.

But this time, not only you decided to support Windows 8 and Metro, which I do understand fully of course, but your entire Live Examples have permanently moved to that absolutely horrible an unpractical discusting metro style. This is a real problem. It's not juts ugly, which after all is only a metter of taste, but it's nearly unusable.

Let me explain.

In the previous versions of your samples, it was extremely easy to read the source code of the samples. Now because of the Metro formating style, it has become simply unreadable. The font size is so big and waisting so mutch space that reading it is a challenge. Nearlly all the sourcode lines are wrapping to the next line and it makes the syntax coloring completely innefficient and invisible. Maybe I'll have to buy a 50 inch screen to watch the code now (I have a 24'' actually).

It is silly, but because your are imposing on us the Metro style to even read your exeamples, watching the samples has become a profoundly unpleasant moment, were it used to be very exciting and fun. It a real and severe disappointment. Sorry.
Francois MARTIN
Top achievements
Rank 2
 asked on 18 Oct 2012
6 answers
190 views
I just upgraded my rad controls for AJAX.

I have a GridView with a radMenu embedded in it.  it uses the following code to popup a window...

RadMenuItem DetailsMI = new RadMenuItem("Properties", string.Empty);
DetailsMI.ImageUrl = "images/Details.gif";
DetailsMI.Attributes["onclick"] = string.Format("javascript:PT_ViewPage('{0}'); return(false);", DetailsURL.ToURL());
Menu.Items.Add(DetailsMI);

The JavaScript PT_ViewPage looks like this...

function PT_ViewPage(TargetURL) {
    WindowArray[WindowArray.length] = window.open(TargetURL, "", "width=900, height=800, status=no, scrollbars=yes, resizable=yes");
}

Nothing fancy here.  The problem is that before the Teleric update, the child window that is opened used to remain on top - it retained focus.  After the update, focus shifts back to the parent window.

My question is:  What changed and how do I get the windows to behave like it used to???
Princy
Top achievements
Rank 2
 answered on 18 Oct 2012
1 answer
167 views
Hi,

I need some help changing my jquery code to work with the radComboBox instead of a select. I have the following code that selects 2 select boxes.

How can I do the same with 2 radComboBoxes?

var $filters = $('#filters select[name=\"filter\"]');
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2012
2 answers
131 views
When using Add Paragraph button in the HTML editor, if the paragraph is inside a table cell, then we will create some <p> tag nested within another <p> tag. HTML standard doesn't support <p> nested inside another <p> tag. 

Steps to reproduce,


1. Create a 1 cell table, add some text to the table cell in any HTML editor
2. Now select the text and click center align icon , increase the fornt, change the font -> switch to HTML view and you will notice the <p align> being added
3. Go back to the design view -> Click on the empty space between aligned text -> click on "Enter" to go to next line >  Click the Add Paragraph icon twice -> You should have the nested <P> tag. I've put the result HTML code in the comment section.
 

The datatags marked in yellow is nested inside datatag marked in red, this should not be the case.

 This datatag is in IE

<P>

<TABLE>

    <TBODY>

        <TR>

            <TD>

            <P align=left>&nbsp;<SPAN style="FONT-FAMILY: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; FONT-SIZE: 16px">this is my final <BR>

            <P>&nbsp;</P>

            <P>&nbsp;</P>

            <P>&nbsp;</P>

            <P  align=left>text</P>

            </SPAN></P>

            <P align=left>&nbsp;</P>

            </TD>

        </TR>

    </TBODY>

</TABLE>

</P>


The nested P tag is creating random issues in the past and it's creating junk code under some circumstances.  Can we fix this?

Arjun
Top achievements
Rank 1
 answered on 18 Oct 2012
1 answer
156 views
Hello,

I have a RadButton with which is a CheckBox with text (ButtonType = ToggleButton, ToggleType = CheckBox).
I want that the text is a link. 
Setting the NavigateUrl isn't exactly what I'm looking for since checking will also redirect.

How can I set up the RadButton so that the text is a link but the checkbox is not?

Thanks!
Princy
Top achievements
Rank 2
 answered on 18 Oct 2012
2 answers
99 views
I have a RadDatePicker attached to a RequiredFieldValidator as part of a Template column.

I want the validation to fire whenever the grid attempts to page.  Looks like, by default, this does not occur.  Even if the RadDatePicker is empty, the validation does not fire when I page the grid.

Is there anyway I can force this?

I attempted to respond to the OnCommand client event when it is of type "Page", force the validation.  

function grid_OnCommand(sender, eventArgs) {
                var c = eventArgs.get_commandName();
                if (c == "Page") {
                    if (!Page_ClientValidate()) {
                        eventArgs.set_cancel(true);
                    }
                }
            }

While the validation does fire and the grid's data does not refresh, the pager still moves to the next page.  The set_cancel does not seem to take effect fully when paging.

Any help would be greatly appreciated.
Robert
Top achievements
Rank 1
 answered on 18 Oct 2012
6 answers
506 views
Hello,

I'm trying to hide the command item section on a grid based on user preferences, something like this:

if(user has no access)
{
    grid.AllowAutomaticInserts = false;
    grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
    //also I perform some code to hide columns
}

I use PreRender event to execute it. Hiding columns works fine but I still get the CommandItem section on the top of the grid. However, if I click on "Add new record" link, that section disappears after postback, showing the grid the way I want it. This is fine, I mean the user can't add items, but I don't want him to see the option as available.

If I call Rebind() after the above code is executed, the command section goes away. That's fine but the DataBind event is called twice, a behavior I don't want.

Am using the right event (PreRender) to execute the code? 

One more thing, my grid is inside a RadDock.

Thanks
Ching Luo
Top achievements
Rank 1
 answered on 17 Oct 2012
1 answer
43 views
Hey,

I'm working with mvc and asp.net. I have a telerik grid with 10 columns. But I need the first 5 columns grouped under 1 header and the last 5

f.e.

Before christ   |  After christ
1  |2  |3  |4  |5  | 1 |2  |3  |4  |5


I already found this link:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/multicolumnheaders/defaultcs.aspx

But that is for an ajax grid and that is not what I need. I'm using a razor view. Anyone has any ideas?
Angel Petrov
Telerik team
 answered on 17 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?