Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Have a rad window which has several rad text boxes and other controls to take info from a user.  When the page loads there is only a save button.  When any data is entered into an input control, on the OnValueChanged event I make a Clear button available.

The problem is it doesn't display in a Rad window.

Here's a sampe of what I have on the page.

<

telerik:RadTextBox ID="rTxtPrjSummary" runat="server" Width="550px" MaxLength="255" >
   <ClientEvents OnValueChanged="InputValueChanged"/>
</telerik:RadTextBox>

<

div style="margin-left: 75px; margin-top:25px">

<asp:Button ID="btnSave" runat="server" Text="Save" OnClientClick="if(!ProjectSaveButtonClick()) return false;" />

<span style="margin-left: 50px">

<asp:Button ID="btnUndo" runat="server" OnClientClick="if(!UndoBtnClick()) return false;" Style="visibility:hidden" />
</span>
</
div>

<script 

type

="text/javascript">

var

InputValueHasChanged = false;

function InputValueChanged(sender, args) {

InputValueHasChanged =

true;

var button = $get("<%= btnUndo.ClientID %>");

button.value = 'Clear';
button.style.visibility =

'visible';
}

function UndoBtnClick() {

if (confirm('Are you sure you would like to clear all fields')) {

$find(

"<%= rTxtPrjSummary.ClientID %>").clear();

var button = $get("<%= btnUndo.ClientID %>");

button.style.visibility =

'hidden';

}

}

</

script>

The result of the code is that btnUndo can't be seen on the page, however, if you move the mouse where the button should show, you can click the area and the OnClientClick function UndoBtnClick fires.

I'm having to resort to using the visibility because having problems just disabling the button and then trying to enable the button when the InputValueChanged fires.

Any ideas?
P.S.  To see the results, check out http://n-sv.net/projexUI  under the menu on the left, click on New Project.  Type something in the summary text box and tab out.  Once you do that, click to the right of the Save button about an inch and you'll see that the onclientClick fires even you can visually see a button on the screen.

k f
Top achievements
Rank 1
 answered on 21 Sep 2008
2 answers
108 views
Hi,

I want my page to respond differently when it has been loaded in a RadWindow. How do I test Server side (e.g. Page_Load event) if the page is opened in a RadWindow?

Kind regards,

Jurjen Ladenius
dany7487
Top achievements
Rank 1
 answered on 20 Sep 2008
2 answers
169 views
I would like to change the format of the column header, from SMTWTFS to Sun, Mon, Tue, etc. If I change the ColumnHeaderText to "ddd" which if it were to use the date format would give me the expected result, however, all it does is replace all the headers with what I give it. It agrees with the documentation but I fail to see how this is useful? Thanks.
Peter Zolja
Top achievements
Rank 1
 answered on 20 Sep 2008
1 answer
69 views
I am currently working on the back end of a shopping cart which is going to have multi languages.It can be see here
www.jlsmedia.com/xxxx/xxxx
username: xxxx
password:xxx

If you click on The categories button then edit a category you will see at the top is the language dependent section and the bottom is stuff that the the same no matter what the language is. Right now i only have 2 tabs but if you go to the languages section you can add more languages which will add more tabs.

My first issue was how to get the values from the tabs which are both the same the same control form just named different so all the elements get different names.
I used a FindControlRecursive function to find the controls ids i was looking for then getting all the values that i needed by request.form(elementid). This worked for everything but the editor. I figured out that the editor does not even post to a hidden text box so i read up some more and found the getHtml() function.
Next what i did was i passed the ids of both my rad controls and my textboxholder controls to the main page to write out some javascript that will run on submit. I am not getting any javasript errors but i am also not getting any results from the editor to post to the text box so that i can retrive the value.
My javascript is as follows.
function SycEditor(){ 
            CategoryLanguageHTMLIDS = CategoryLanguageHTMLIDS.split("|"); 
            ContentHolderTextBoxids = ContentHolderTextBoxids.split("|"); 
            for (f=0;f<=2;f++){ 
                var editor = $find(CategoryLanguageHTMLIDS[f]);  
                var theSelectionObject = editor.getSelection(); 
                var theSelectedText = theSelectionObject.getHtml(); 
                $(ContentHolderTextBoxids[f]).value = theSelectedText; 
                alert(theSelectedText + "heres my text"); 
                alert(CategoryLanguageHTMLIDS[f]); 
            } 
        } 

 Anyone know why it is not working or another way i can get all the values from all the pages i need?

Thanks

chris
Top achievements
Rank 1
 answered on 20 Sep 2008
0 answers
65 views
hi,
i want to use HttpModule for compression Response to client , and did not properly work with RadPanelBar and RadWindow And RadUpdate.

please help me.
Reza
Top achievements
Rank 1
 asked on 20 Sep 2008
6 answers
451 views
So - I understand that this version of RadControls requires AutoPostback to be set to true in order to fire OnSelectedIndexChanged.  However, this isn't always what you want.  With a 'regular' dropdown control, you might have multiple controls on a page and a save button.  The dropdown controls could have Autopostback set to false, but when the save button caused a postback - the OnSelectedIndexChanged events would fire.

What is the suggested way to simulate this behavior with RadCombo?  It isn't always practical to cause a full postback on each change of a RadCombo control.  But you obviously need to know that a change has occured when you ultimately do postback.

Thanks
kith
Top achievements
Rank 1
 answered on 20 Sep 2008
10 answers
513 views
In my grid the column is formatted correctly as an integer.  However, when an export to excel is performed the column shows up as a decimal.  How can I format the column to export the same as it is displayed in the grid?

Thanks!
Mike
Top achievements
Rank 1
 answered on 19 Sep 2008
1 answer
92 views
what might be some of the area's to look for - the grid groups perfect - love it, i have by default the groups collapsed - when i try to expand them - it takes a good 10-12 seconds before the grid collapses or expands.

what might i being doing wrong.

the grid is bound to a sqldatasource that calls a storedprocedure - the sql datasource mode is dataset

locally it works like the cats meow - but on the server it is sluggish - i've moved the grid inside a radajax panel, a regular ajax update panel and out of one altogether - still seems slow as if it's making a connection to the db each time.

thanks for all the past support.

Jeff
Jeff
Top achievements
Rank 1
 answered on 19 Sep 2008
8 answers
173 views
I have a PanelBar control on the master page for navigation.  The PanelBar has 2 root items.  Both root items each have 1 child item.  Both child items contain 1 TreeView control each.  The PanelBar's ExpandMode="FullExpandedItem".

Here's my situation.  Let's say a user selects one of the PanelBar's root items.  The associated TreeView control will get populated with completely collapsed nodes and only one of the PanelBar's root items is visible at a time.  When the TreeView gets expanded enough that it's height is greater than the height of the PanelBar, a scrollbar will appear on the righthand side of the control and the user can scroll all the way down to see the bottommost nodes of the TreeView.  When the user expands another treenode, the scrollbar shoots up to the top of the PanelBar in it's original position.

What I want to be able to accomplish is to capture the position of the scrollbar after it has been moved and then set that same position on the reload of the page after the postback such as expanding a treenode.

How can I accomplish this?

I've had success with just a DIV tag and the TreeView, but I'm stumped how to accomplish this functionality with the PanelBar control. 
Rob
Top achievements
Rank 1
 answered on 19 Sep 2008
2 answers
99 views
when decreasing the zoom in IE7 the 3rd level items in a Menu do not show up. This can be seen on the demos: http://demos.telerik.com/ASPNET/Prometheus/Menu/Examples/Appearance/Skins/DefaultCS.aspx

Is there a fix for this?
Alex
Top achievements
Rank 1
 answered on 19 Sep 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?