Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
349 views
Hi

I was searching the forums for any solutions and came across this post: http://www.telerik.com/community/forums/thread/b311D-hhmbg.aspx 

There was reference to this functionality -
Another still undocumented feature is the ability to put a dialog control like ImageManager directly on the page, without the need to open it in a dialog.

Is there any solution for this?

Regards
Alex
Axe
Top achievements
Rank 1
 answered on 02 Jul 2008
7 answers
208 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
196 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
170 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
197 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
197 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
119 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
78 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
155 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
127 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
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?