Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
211 views
Hi,

With the new toolbar, I no longer can position the toolbar center on the page. It appears the toolbar is in a div component with a float:left. I've added the following to the head of my page:
    <style type="text/css">
        div.RadToolBar
        {
            float:none;
        }
    </style>

Then I put the toolbar in a <table style="width:100%">
and the <tr align="center"> and placed the toolbar in the <td>... nothing, still stays aligned left. I've tried setting the toolbar's style="float:none"... and no effect. How about a property that sets the alignment on the page?

Thanks,
Bruce
Bruce Hochstetler
Top achievements
Rank 2
 answered on 01 Jul 2008
2 answers
202 views
I've got a small issue with a grid in a modal popup... In firefox when dragging/dropping rows the dragged row(s) are behind the modal popup. This is only in firefox/safari. I've tried setting the zindex of the row in the skin's css file to no avail, any pointers for setting this? Maybe I'm setting the value for the wrong class?
Josh
Top achievements
Rank 1
 answered on 01 Jul 2008
7 answers
173 views
I am using an included stylesheet to override some of the CSS on the Web20 skin. However when expanding and collapsing items in the panel I am seeing the others that are expanded "flashing" briefly between the "unselected" color and the "selected" text color. I would expect that the CSS for the other selected items in the panel would not be touched just b/c another part of the panel is being collapsed.


For an example just add a panel bar with 5-6 sections in it and allow multiple panels to be open simultaneously. Then include the following into the page:

.RadPanelBar_Web20 .rpExpanded .rpText  
{ 
    font-weight:bold !important; 
    color: #F58110 !important; 
} 

When expanding/collapsing other sections you will see all other sections that are expanded flash between the unexpanded color of text and the expanded color of text. I have been using FireFox 2.0 for this development --- the problem seems to be specific to Firefox...the control operated as expected in IE.
Matthew Erwin
Top achievements
Rank 1
 answered on 01 Jul 2008
4 answers
199 views
Is there a way to basically do a fireCommand() on a grid with an application specific command string instead of the ones pre-defined by the grid?  I have some specialized functionality I am trying to achieve through JavaScript, but the grid is not giving me the server-side OnItemCommand() event I was hoping for.

Here is my JavaScript:
function ConfirmItemAdd(itemText, newODID) {  
    if(confirm("Would you like to add item [" + itemText + "] to the order?") == true)  
        masterTableView.fireCommand("SaveNewAndEdit", newODID);  
    else 
        masterTableView.fireCommand("AbandonNewAndEdit", newODID);  
} 

Any help, as always, is greatly appreciated.

Thanks,
Kevin
Matthew Erwin
Top achievements
Rank 1
 answered on 01 Jul 2008
2 answers
203 views

I don't know whether this is a Telerik issue but it is only occuring when I use Radgrid.
After the user does Edit followed by Update or Cancel, when the web page is displayed again it is scrolled to the bottom.
The user sees nothing but the "Ready" that is at the bottom of the Radgrid.
It confuses the user because it appears the page contains only the Radgrid having no data.
How can we make the page be scrolled at the top after an edit operation?

These techniques did not work:

http://aspnet.4guysfromrolla.com/articles/111407-1.aspx

http://msdn.microsoft.com/en-us/library/system.web.ui.page.maintainscrollpositiononpostback.aspx

 John (Steve)

John Davis
Top achievements
Rank 2
 answered on 01 Jul 2008
1 answer
123 views
Hi All!

my problem is the following:
I have many textboxes. They have TextChanged events attached. After ajax postback I use the following code snippets to give the focus of the actual (clicked) textbox

my code :
js:
 function focusActElement()
   {
        if(actElement != '')
        {
            document.getElementById(actElement).focus();
             //if I use document.getElementById(actElement).select();
             //works fine in IE7, too but I don't want to select the texts in the boxes
        }
   }

in Page_Load i'm calling:
public static void TrackFocusAfterAjaxPostbacks(Page page, RadAjaxManager radAjaxManager)
    {
        // Insert startup script
        string scriptKey = "focusFunction";

        if (!page.ClientScript.IsStartupScriptRegistered(page.GetType(), scriptKey))
        {
            page.ClientScript.RegisterStartupScript(page.GetType(), scriptKey, String.Format("focusActElement();"), true);
        }

        radAjaxManager.ClientEvents.OnResponseEnd = "focusActElement";
    }

In FF works fine, but in IE7 just with id.select() functioning well and I don't like to select texts in the textboxes.

can somebody help?
thx
The Oracle
Top achievements
Rank 1
 answered on 01 Jul 2008
1 answer
79 views
Hi.
I have an ajaxmanager and a toolbar in my page that set OnResponseEnd event on I toolbar item click dynamically.
but it dosn't fire after fist toolbar item click. I must click twise to my javascript function fired.
is there anyone familier with this?
The Oracle
Top achievements
Rank 1
 answered on 01 Jul 2008
4 answers
164 views
I would like to default my Scheduler to the first displayed appointment, but am running into some trouble. I created a new appointment on June 17 at 8:30 AM. I went back in and edited it to create a recurring appointment on the first Friday of every month. Since the first Friday of July is July 4, I deleted that occurance. So the first actual displayed appointment on my calendar is on August 1st. No matter what I do (bind scheduler, sort Appointments.ToArray() based on a custom comparer class, etc), the first appointment date always appears at 6/17, even though there is no appointment on that date.

Is there any way I can get the start date and time of the first actual/displayed appointment?

Thanks!
ATS
Top achievements
Rank 1
 answered on 01 Jul 2008
2 answers
128 views
hello,

in my ASPX webforms i use UserControls for a header and footer. like so:

<body> 
 
    <form id="form1" runat="server"> 
 
        <Me:Header ID="myHeader" runat="server" /> 
 
        <h1>my page</h1> 
 
        <p>my content</p> 
 
        <Me:Footer ID="myFooter" runat="server" /> 
 
    </form> 
 
</body> 

...however, if in my UserControl i include a RadControl then I get this error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

why is this? i am not using javascript or codeblocks. tho perhaps the RadControls are, i dunno.


ASCX

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Header.ascx.cs" Inherits="AutomaticVehicleLocator.controls.nav.Header" %> 
<%@ Register TagPrefix="Telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<div id="Header"> 
    <img id="imgLogo" src="/images/logo.gif" alt="NOPD Logo" width="59" height="56" runat="server" /> 
 
    <div id="userInfo"> 
        <asp:Label ID="lblUsername" runat="server" /><br /> 
        <a href="" class="help" id="btnSubmit">Help</a> 
    </div> 
 
    <!-- THIS BREAKS PAGE --> 
    <Telerik:RadComboBox ID="rcbTest" runat="server"> 
        <Items> 
            <telerik:RadComboBoxItem Value="1" Text="one" /> 
        </Items> 
    </Telerik:RadComboBox> 
 
</div> 



thanks
matt
matt
Top achievements
Rank 1
 answered on 01 Jul 2008
1 answer
148 views
I am trying to set up a page so that when the user clicks on the Add to cart button, it will validate the contents and if everything is okay. Then bring up the window that will allow the user to customize the selected item. And if it is not okay, then don't bring up the window.

Right now my code is validating the contents of the form, and regardless if it is okay or not, bringing up the radWindow.

I have set up a radWindowManger and inside that a number of radWindows, that will be used on the page.

If there is a way to check to see it is okay to display it, then I would really like to be able to do that. Thanks.
Svetlina Anati
Telerik team
 answered on 01 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?