Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
939 views
I have created a Rad Button on Page_Init Method for Contenet Palce Holder. I want call onClientClickEvent whenever i click on it.

For Example:

RadButton b = new RadButton();
b.ID = "btnAddNew";
b.Text = Resources.GetText("Add");
b.CommandName = "Add";
b.Skin = "Office2010Silver";              
b.AutoPostBack = false;
b.Icon.PrimaryIconCssClass = "actionBarAdd";
b.Attributes.Add("OnClientClicked", "UsersActionButtonClicked()");

Thanks,
Sandeep
Slav
Telerik team
 answered on 01 Aug 2012
1 answer
106 views
I'm trying to add a GridClientSelectColumn with checkboxes to the FileExplorer to make it easier to select (check) files to be processed.

For some reason, the row appears selected but the checkbox doesn't show.

I've inserted the code I have so far below.

Any ideas?

Ken

GridClientSelectColumn GridClientSelectColumn1 = new GridClientSelectColumn();
GridClientSelectColumn1.UniqueName = "Select";
GridClientSelectColumn1.ItemStyle.VerticalAlign = System.Web.UI.WebControls.VerticalAlign.Top;
GridClientSelectColumn1.ItemStyle.Width = System.Web.UI.WebControls.Unit.Pixel(35);
GridClientSelectColumn1.HeaderStyle.VerticalAlign = System.Web.UI.WebControls.VerticalAlign.Top;
GridClientSelectColumn1.HeaderStyle.Width = System.Web.UI.WebControls.Unit.Pixel(35);
GridClientSelectColumn1.HeaderText = "";
GridClientSelectColumn1.Visible = true;
RadFileExplorer1.Grid.Columns.AddAt(0,GridClientSelectColumn1);
Dobromir
Telerik team
 answered on 01 Aug 2012
2 answers
114 views
At the buttom of the editor are the mode buttons Design, HTML, Preview.  

Can you please advise how I would l change the button text for the Design button to Edit.
Rumen
Telerik team
 answered on 01 Aug 2012
1 answer
109 views

Hello,

in the Link Manager Dialog, for the fields with id="LinkURL" and id="LinkTargetCombo",
I would like to use respectively a RadTextBox and a RadComboBox (the aspect of the
corresponding components input and select is not that of the selected skin fot the RadEditor).
How can I modify the JavaScript code in LinkManager.ascx so that everything is working fine?
For the RadTextBox I've tried to change $get("LinkURL") with $get("LinkURL_text"), but when
I click on the RadTextBox its content disappears.
 
Thank you very much

AB

Rumen
Telerik team
 answered on 01 Aug 2012
2 answers
149 views
I am opening a RadWindow that starts a modal dialog I am using as a 4-step wizard.

The code on the page that launches the wizard does a set_status to successfully set the status to read "Step 1 of 4":

var oWnd = $find("<%=radNewProjectWizard.ClientID%>");
oWnd.show();
oWnd.set_title("New Project Wizard");
oWnd.MoveTo(482, 100);
oWnd.add_pageLoad(function () { oWnd.set_status("MyProject"); });
oWnd.add_close(NewProject_OnClientClose);


When the user clicks "next" I do a redirect to the next .aspx page in the series and want to update the status to "Step 2 of 4".

I am unable to refresh the status - it still says "Step 1 of 4".

The code I am using in step2.aspx is as follows:

<body onload="OnLoad()">
  
<...>
  
function OnLoad() {
            GetRadWindow().set_status("Step 2 of 4");
        }
  
function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)  
            return oWindow;
        }

I would assume the GetRadWindow gets a reference to the parent page (the RadWindow) and I should be able to do a set_status to update the status bar, but this doesn't seem to be the case.
Dave
Top achievements
Rank 1
 answered on 01 Aug 2012
2 answers
87 views
I found this thread: http://www.telerik.com/community/forums/aspnet-ajax/tooltip/tool-tip-as-modal-popup.aspx

Which fixed my problems with my dropdownlists, but I'm also using a RadMonthYearPicker and despite adding

<style type="text/css">
 
.RadCalendarPopup
{
   z-index: 10000!important;
}
 
</style>

To the header of the aspx page I'm working on the popup on the picker still opens behind the modal window.

Is there a different css class I need to reference since it is a MonthYearPicker rather than a DatePicker?
Justyn Hunter
Top achievements
Rank 1
 answered on 01 Aug 2012
2 answers
185 views
Hello,

I am trying to implement the following custom filter: rather than looking for "Contains", that can return irrelevant results, it would look for "Contains Whole Word Only" through that specific column.
Please advise.

Regards,
M.R.
M. R.
Top achievements
Rank 1
 answered on 01 Aug 2012
4 answers
227 views
Dear telerik support,
hi
i have a problem with RadMultiPageof a tabstrip and this is it:
im loading 2 RadMultiPages with different content and the contents have different height 
if i set the the height of  RadMultiPage equal to my bigger content the i have a really bad white space in my second tab
and if set the height to the smaller one the bigger content mixes into other part of page 

how can i change the size of RadMultiPage (or actually set size for each RadPageView ) so that i dont have white space or mixing blocks

i know maybe i should use update panel but i appreciate if you show me how can i do it 

Best regards
Nencho
Telerik team
 answered on 01 Aug 2012
2 answers
150 views
I have a tabbed dialog with a pair of RadListBox controls with transfer enabled where I am using ClientChanges to determine what the user has done.  This works great for the normal case, however in the situation where the user has made a mistake (on another tab) and the dialog posted to the server and returned without saving and the dialog showing a validation error (with focus on the tab where the error was made) things are very broken.  When I return to the tab the RadListBox controls continue to show the proper items, but have clearly lost the change list so when the user fixes whatever was wrong (that caused the validation to fail) and resubmits the dialog no changes are seen on the server side (ClientChanges is empty).  I'm not sure how to fix this as the user has no indication that anything is wrong and the server has no indication that anything is wrong.  The user could make any change in the list boxes including undoing the changes they made prior to the previous submission, so just storing the ClientChanges change list on the server would not work. 

Is this just a bug in the list box control?  Is there something I should be doing that I have not done? 

Thanks for any help,

Scott
Dimitar Terziev
Telerik team
 answered on 01 Aug 2012
1 answer
141 views
Does anyone have a sample/example for the following situation?  I looked at the demos and can see parts here and there but still some gaps I can't seem to fill.

Here is the scenario:
I have a work order screen with some header information (ie work order #, start date, product, etc) and then below that a RadGrid with a list of some work order details for tracking scrap material generated while processing that work order. 

In this case I would like the use case to be the following:
  1. User selects work order from a search screen (already have this so not a big deal)
  2. When the scenario screen opens, I want the header and all grid row items (2 to 5 rows typically) to be in edit mode by default (ie AllowMultiRowEdit=true) with InLine edits all in edit mode.
  3. Instead of each grid row having it's own Update / Cancel, I would rather hide that and have a single Save/Cancel at the top of the screen. 

I have looked at the Kendo solution, however we would prefer to use the RadGrid solution if possible.
Thanks,
Shane
Eyup
Telerik team
 answered on 01 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?