Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
145 views
I have a button on a page.
I have a modal tooltip that's showevent is the button's OnClick.
This combination prohibits the button from posting back.
Is there a way for me to let the postback go thru while still showing the tooltip.
essentially what i'm doing is emulating an ajax postback. the modal shows up and says 'working...'
while a full postback redirects you to another page.

Any thoughts?
Chris
Top achievements
Rank 1
 answered on 24 Aug 2009
3 answers
165 views
Hello,

I have created a small webapp to test a modal tooltip. In the Modality Tooltip demo the browser window is faded out and only the tooltip can be accessed by the user. With my code below however the browser window isn't faded out and the textbox for example can still be accessed.

Is there some property i forgot to set or can somebody see what i did wrong?

Thanks!


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
   
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Office2007">  
    </telerik:RadSkinManager> 
    <div> 
        <telerik:RadToolTipManager ID="mng1" runat="server" OnAjaxUpdate="mng1_OnAjaxUpdate" HideEvent="ManualClose" Modal="true" > 
            <TargetControls> 
                <telerik:ToolTipTargetControl TargetControlID="target" /> 
            </TargetControls> 
        </telerik:RadToolTipManager> 
        <asp:HyperLink ID="target" runat="server" Text="Target Control" NavigateUrl="#"></asp:HyperLink>       
        <telerik:RadTextBox ID="RadTextBox1" runat="server">  
        </telerik:RadTextBox>         
    </div> 
    </form> 
</body> 
</html> 
 
Svetlina Anati
Telerik team
 answered on 24 Aug 2009
8 answers
235 views
If you have say 150 records and are displaying 25 records per page there will be 6 pages.  Now if you select grouping on a field and it spans say 3 pages.

How can you get it when you collapse the group to start showing the next group instead of showing 2 pages of nothing....
Rosen
Telerik team
 answered on 24 Aug 2009
5 answers
510 views
When I try to use the following code for a pop-up edit template I get the above error.

<tr>
Line 462:                                <td align="right" colspan="2">
Line 463:                                    <asp:Button ID="Button3" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
Line 464:                                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
Line 465:                                    </asp:Button>&nbsp;


I took this code from the pop-up example

regards

Daniel
Sebastian
Telerik team
 answered on 24 Aug 2009
3 answers
288 views
Hi,

i have a problem, inserting new items into my radgrid. The Button didn't appear on the grid.

Couldn't find a solution on this forum so far. Could anybody help?
What is missing?

Thanks in advance!

Lars

<telerik:RadGrid ID="RadGrid1" runat="server" width="500px" GridLines="None"   
                     AllowAutomaticInserts="True" AllowAutomaticUpdates="True"   
                     AutoGenerateColumns="False" AutoGenerateEditColumn="True"   
                     ShowFooter="True" ShowStatusBar="True" AllowPaging="True" PageSize="5"   
                     Skin="Telerik">     
        <mastertableview editmode="EditForms"   
                         enableheadercontextmenu="True"   
                         insertitempageindexaction="ShowItemOnFirstPage"   
                         ShowGroupFooter="True" InsertItemDisplay="Bottom" 
                         DataKeyNames="UID">  
            <Columns> 
                <telerik:GridBoundColumn   
                    DataField="UID" ReadOnly="True"   
                    HeaderText="UID" UniqueName="UID" Visible="false">  
                </telerik:GridBoundColumn>      
                <telerik:GridBoundColumn DataField="DCId" ReadOnly="True"   
                        HeaderText="DCId" UniqueName="DCId">  
                    <ItemStyle Width="100" /> 
                </telerik:GridBoundColumn>              
                <telerik:GridBoundColumn DataField="MRDR_NR" HeaderText="MRDR_NR" UniqueName="MRDR_NR">  
                    <ItemStyle Width="100" /> 
                </telerik:GridBoundColumn> 
            </Columns>                                                          
        </mastertableview>      
    </telerik:RadGrid> 

The data was bind manually
private void WSDataBind()  
{  
        WholesalerBM oWholeSalerBM = new WholesalerBM();  
        WholesalerFilter oWholesalerFilter = new WholesalerFilter();  
        oWholesalerFilter.WholesalerUID = new Guid ("36C68452-36BF-4FF2-8E32-39DAB8490839");  
 
        WholesalerDataSet oWholesalerDataSet = oWholeSalerBM.SelectWholesalerWithRelations(oWholesalerFilter, true);  
        Session[_strWholesalerDataSet] = oWholesalerDataSet;  
 
        RadGrid1.DataSource = oWholesalerDataSet.WholesalerMRDR;  
        RadGrid1.DataBind();  
} 




Princy
Top achievements
Rank 2
 answered on 24 Aug 2009
1 answer
79 views

Hi,

I am using a custom Inline Edit in the scheduler. Iam able to open the Inline pop-up window add the required information and whenclicking on Insert (Button), it saves the information to the database but doesnot close the pop-up window and refresh the scheduler. I am doing this usingthe onappoinmentcommand event.

While trying to edit an appointment the customInline Edit pop-up window comes up and I am able to save the changes. Thepop-up window also closes appropriately but, the changes made to theappointment do not reflect in the scheduler.

I need help in this so that the pop-up window closesand the changes are reflected immediately on the scheduler.

Thanks

Sabarish

Veselin Vasilev
Telerik team
 answered on 24 Aug 2009
2 answers
205 views
I am trying to use GetRadWindow() but it blows up in javascript...

        function GetRadWindow() {  
            var oWindow = null;  
            if (window.radWindow)  
                oWindow = window.radWindow;  
            else if (window.frameElement.radWindow)  
                oWindow = window.frameElement.radWindow;  
            return oWindow;  
        }  
 

In my case (IE 8 in compatibility mode), window.radWindow is undefined, window.frameElement is null, therefore it blows up when trying to access window.frameElement.radWindow.

This happens in my "main" (default) page.
Does this happen because the page itself was not created by the RadWindow Manager?

Since my current page is not a RadWindow... How can I find its size so that I can size new windows accordingly?

Many Thanks


Eric
Eric
Top achievements
Rank 1
 answered on 24 Aug 2009
3 answers
188 views
I think my basic issue is that I have no idea how the RadFormDecorator is supposed to do its magic. It's a little black box that is supposed to do neat things but when it doesn't work we're sort stuck in the cold. I'd like to find documentation that explains for v2009.2.701.20 exactly how RadFormDecorator customizes the styles for specific controls for specific browsers. The problem I keep having is that various controls don't render properly and I feel I have no control over them. I don't like feeling helpless when it comes to code.

"How about an example" you ask?
Please go to http://drop.io/TonyGFiles and download a PDF called "Telerik Group Rendering.pdf".  (Anyone have a better idea for making files and/or images available in this forum?)  That document has screen shots and code that show how FieldSets and ASP Panels render with and without RadFormDecorator.  Perhaps with this as a base we can see what it will take to style a group box, and that information may translate to other controls.

If the solution is to simply not use the RadFormDecorator, I can do that, and use custom CSS to style various controls.  But that seems a waste when here is a component designed to do this very thing.  I'd prefer that out of this discussion we'll get some better documentation and/or fixes to the component.

Thanks for your time.
Georgi Tunev
Telerik team
 answered on 24 Aug 2009
3 answers
86 views
hi every body.
i have a problem that i can't understand , i hope you can help me, thank you
take a look with this function:
<script type="text/javascript">
            function RowDblClick(sender, eventArgs)
            {
              sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
            }
</script>
 this function was wrote for client event double click on gird and this function will show edit mode of the row i doubled click . i didn't write this function, i copied it in a example. the problem is how can i known sender and eventArgs support method .get_masterTableView() and .get_itemIndexHierarchical() for me , because when i dot after sender or eventArgs i couldn't see any method or property that i could use . please show me the way that i can know sender or eventArgs support how many method or property.
thank you.
lang dinh thien
Top achievements
Rank 1
 answered on 24 Aug 2009
5 answers
255 views
I get the following javascript error when loading a page where a RadTextBox control exists after setting the RadTextBox.ClientEvents.OnButtonClick property server-side:

"Object expected."

And this error only shows up after setting this property like so:

textBox.ClientEvents.OnButtonClick = "OpenLookupResultsWindow(0, 8)"; 

If you view the source the you can see that button associated with the textBox looks like this:

 
<td class="riBtn"><a href="#" onclick="return false;" id="HeaderGridDock_C_HeaderGrid1_radGrid_ctl00_ctl04_HeaderGridTextBox-0-0_GoButton"><span>Button</span></a></td> 

And the JavaScript generated by Telerik looks like so:

Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadTextBox, {"_focused":false,"clientStateFieldID":"HeaderGridDock_C_HeaderGrid1_radGrid_ctl00_ctl04_HeaderGridTextBox-8-0_ClientState","enabled":true,"showButton":true,"styles":{HoveredStyle: ["width:97px;", "riTextBox riHover"],InvalidStyle: ["width:97px;", "riTextBox riError"],DisabledStyle: ["width:97px;", "riTextBox riDisabled"],FocusedStyle: ["width:97px;", "riTextBox riFocused"],EmptyMessageStyle: ["width:97px;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:97px;", "riTextBox riRead"],EnabledStyle: ["width:97px;", "riTextBox riEnabled"]}}, {"buttonClick":OpenLookupResultsWindow(0,8)}, null, $get("HeaderGridDock_C_HeaderGrid1_radGrid_ctl00_ctl04_HeaderGridTextBox-8-0")); 

Any ideas why I'm getting this error? I am unable to click the textBox button as a result.

Thanks,
Andrew

Sebastian
Telerik team
 answered on 24 Aug 2009
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?