Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
487 views
I have a page that displays a radWindow. If modal is set to "true" it displays a horizontal scrollbar on my parent page. if set to "false", it doesn't.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
 
 function ShowWindow() 
            {                    
        
          var wnd = window.radopen("window.aspx", "win");      
                      wnd.restore(); 
                  wnd.setSize(document.body.scrollWidth-170,document.body.scrollHeight+180); 
                   wnd.center();            
            } 
             
        </script> 
    </telerik:RadCodeBlock> 
     
 
                        <asp:Button ID="button" runat="server" Text="Show" CssClass="button" OnClientClick="ShowWindow();return false;"/> 
               
     
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="overflow:hidden;"
        <Windows> 
            <telerik:RadWindow ID="win" VisibleStatusbar="false" KeepInScreenBounds="true"  
            DestroyOnClose="false" runat="server" InitialBehaviors="Close,Move,Resize" Behaviors="Close,Move,Resize"  
            ShowContentDuringLoad="true" Skin="Simple" Overlay="true" Modal="true" Title="Window"
            </telerik:RadWindow> 
        </Windows> 
         
    </telerik:RadWindowManager> 

I narrowed this down to probably an issue with the width and height of the ModalOverlay. because if I add the following styles,

 .TelerikModalOverlay    
 {     
  width:100% !important; 
  height:100% !important; 
 }  


 it eliminates the scrollbars on the parent page, however, causes strange issues when then moving the radWindow from its default position (i.e. the widthand height of the Modal Overlay no longer reach the bounds of the parent page if the radWindows is moved around)


Any ideas on how to fix this one way or another?
Camilo
Top achievements
Rank 1
 answered on 27 Dec 2010
0 answers
129 views
When my App page is open for like 1- 3 hours, then Below error comes :-

RadUpload Ajax callback error. Source url returned error: 503
Service Unavailable

../Relerik.RadUploadProgressHandler.ashx?RadUrid=543c70bc -aebe-47f8-9c29-166dea518b11

Did yoiu register the RadUploadProgressHandler in web.config ?

Please, see the help for more details: RadUpload for ASP.NET Ajax -Configuration -RadUploadProgressHandler.

-------------------------------------------------------------------------------------------------------------------------------
Even I have Register this handler. My code in webconfig for adding handler is :-

<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>

<
add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>

<
add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</
httpHandlers>


I would really appreciate if someone could help to resolve this issue.

Thanks in advance....
Kapil Sharma

 

kapil sharma
Top achievements
Rank 1
 asked on 27 Dec 2010
1 answer
227 views
Hi all,

is it possible to disable the radgrig with all its commands, but keeping the pager on the bottom enabled in order to see all the elements that contains?

I have found only the command to show/hide the pager.

Thanks in advance,

Dario Zanelli
Marin
Telerik team
 answered on 27 Dec 2010
1 answer
79 views
Hi,
I want to change the grouping header to become like the following:

Assuming the grouping column name is: RecordType (it's an enumeration)

I want the  group header not to display the enumeration's value instead of display a custom string value taken from a method in the page:

string GetRecordTypeText( RecordType type)
{
// return somthing...
}

I hope it's clear..

Thanks in advance,
Homam


Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
215 views
Hello,

Clicking save button popup should validate all fields, upon meeting all the criteria, data should be saved.

My issues are:
Clicking any button such as Insert or Cancel immediately closes the popup window hence not able to show appropriate error message in popup window.

Any workarounds?

Thank you

Regards
Raj
Iana Tsolova
Telerik team
 answered on 27 Dec 2010
1 answer
223 views
In my radgird I have allowed ClientSettings for AllowColumnsReorder="True" AllowDragToGroup="True". One of my column allows only to reorder and no grouping is allowed in that column. And the second column I have both reorder and grouping is allowed. Now the problem is that in both columns tooltip it shows "Drag to group or reorder". I only want in th efirst column tootip to show "Drag to reorder" and the second one ""Drag to group or reorder".

<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
    UniqueName="ProductName" ReadOnly="True" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
    ShowFilterIcon="false" FilterControlWidth="260px" HeaderStyle-Width="280px" ItemStyle-Wrap="true"
    FilterDelay="4000" Groupable="false"  >
</telerik:GridBoundColumn>  
 <telerik:GridBoundColumn DataField="ManufacturerName" HeaderText="ManufacturerName"
      SortExpression="ManufacturerName" UniqueName="ManufacturerName" ReadOnly="True"
      CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ShowFilterIcon="false"
      FilterControlWidth="110px" HeaderStyle-Width="130px" ItemStyle-Wrap="false" FilterDelay="4000">
 </telerik:GridBoundColumn>

 I also did some testing by applying the following:
 1)
 RadGrid.ClientSettings.ClientMessages.DragToGroupOrReorder = "drag to reorder";
 
 But the problem in this one was both the columns tootip was showing "drag to reorder"

 2) I did not see any changes in the tooltip at all. It was still showing ""Drag to group or reorder"

protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridHeaderItem)
        {
      
            GridHeaderItem header = (GridHeaderItem)e.Item;
            header["ProductName"].ToolTip = "Drag to reorder";
  
  
  
        }
    }


Thanks.
Tsvetina
Telerik team
 answered on 27 Dec 2010
3 answers
467 views
I can not figure out how to define the relationship in such way to have the parent and child data already in the radgrid when the page is displayed.

The parent datatable contains columns: "CustomerID", "ContactName" and "Company" 
The child datatable contains columns: "CustomerID", "OrderID", "OrderDate" and "Freight"

I understand how to do this as shown in the demos but how do I accomplish this in the code behind?  I do not want to do a postback or use ajax to get the child data.

Thanks in advance

This is the aspx data:

       <telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" ShowStatusBar="True"
            AutoGenerateColumns="False" PageSize="7" AllowSorting="True"
            AllowPaging="True"  
        GridLines="None"  >
            <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True" >
                 <DetailTables>
                    <telerik:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton"
                                DataField="OrderID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton"
                                DataField="OrderDate" UniqueName="OrderDate" DataFormatString="{0:D}">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="Freight" HeaderText="Freight" HeaderButtonType="TextButton"
                                DataField="Freight" UniqueName="Freight">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
  <ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton"
                        DataField="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton"
                        DataField="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton"
                        DataField="CompanyName">
                    </telerik:GridBoundColumn>
                </Columns>
           </MasterTableView>
        </telerik:RadGrid
Nikolay Rusev
Telerik team
 answered on 27 Dec 2010
3 answers
182 views
I am using contentEditable=true Div's and Span's as the "source" that the RTE of the RadEditor works on.  It works for the "standard" items that are left click based and most dialog based inserts (excluding things like AJAX spell check where the source is drawn from the RadEditor DIV ?? ).  But all the right click menus of the RTE are not available to these areas, I assume because the context menus are binded to the RadEditor created DIV.  Is there there a way to port those to these contentEditable areas?  I would like to do it client-side as a delegation to the body based on the div/span being conentEditable or not (using jQuery).  This is because I turn the ability on and off so the delegation would need to be client-side and check the attribute of contentEditable=true before rendering the context menu - if not I'll just cancel the event.

Is there an example of how to bind these missing functions to other divs/spans that are not generated by the RadEditor servercontrol ?  And/or the list of the eventHanders that I need to port?

Thanks.
Rumen
Telerik team
 answered on 27 Dec 2010
5 answers
182 views
Is there a way to have the RadTooltip (relative to browser window, centered) change position on Window resize so that it is always centered (without having to do a refresh)? Thanks.
mc2000
Top achievements
Rank 1
 answered on 27 Dec 2010
2 answers
229 views
I have been able to get the parent child to work using the DetailTableDataBind event and having HierarchyLoadMode="Client".  I am moving from Infragistics and using there controls I was able to bind the grid to a dataset that contained two tables with a data relationship defined using this method: Dim dr As DataRelation = New DataRelation("OrderTable", dc1, dc2, False) .  How or can I do this for a RadGrid wihout using the DetaiTableDataBind event?

Thanks

John


John
Top achievements
Rank 1
 answered on 27 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?