Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
I'm having some trouble running my web applications on Windows Server 2008 / IIS 7:

i cant get any of http modules in Telerik.Web.UI.dll to work - they are added in web.config via smart tags and the project works from Vista / Visual Studio 2008 / ASP.Net dev. server. When i moved the project to the new server the editor said its missing script manager (there was already radscriptmanager on page), so i replaced it with standard script manager (just for test) - the project started, but now i get error for when RadEditor is requesting "Telerik.Web.UI.DialogHandler.aspx"

Seems like IIS7 doesnt read the "system.web/httphandlers" or "system.web/httpmodules" section. Anyone had some similar trouble?

re, habix
Ziga HABJAN
Top achievements
Rank 1
 answered on 11 Aug 2008
1 answer
87 views
Hi,

New versions Q2 2008 RadEditor is having some issues in default skin itself.

  1. When we right click inside the editor the "Cut & Copy" controls are not displaying properly.
  2. The same when we type some contents select and right click the "Cut & Copy" controls are fine.

This happens only on MOSS, any solutions for this.....

Thanks
Rao

Lini
Telerik team
 answered on 11 Aug 2008
11 answers
586 views
Hi,

We have a large web application project which we want to start implementing RadAjaxManager in, due to advantages it has over standard UpdatePanels. Unfortunately we have come across a problem which prevents gradual integration, which is that if the RadAjaxManager is set to update a usercontrol (or a control containing the usercontrol) which itself contains a normal asp UpdatePanel with a PostBackTrigger defined (as opposed to the usual AsyncPostBackTrigger) then you get an error when loading the page Unable to cast object of type 'System.Web.UI.PostBackTrigger' to type 'System.Web.UI.AsyncPostBackTrigger'. It looks like something in the RadAjaxManager might be assuming that all triggers are of the latter type?

I have replicated this problem in a small project (with very contrived examples but they show the error). We can work around the error now we know what the cause is, but it does mean updating quite a lot of pages/controls where PostBackTrigger is already used, whereas we had hoped to avoid a mass change all at once. The application is very large and quite complex so we may just abandon using RadAjaxManager for now, which would be a shame.

I'm posting this because the error message was not found by google (frustrating - if anyone else happens to encounter this they'll hopefully find this post now) and there's a chance someone might have a bright idea or tell me the obvious thing that's wrong, or Telerik might fix it/document it :)

Controls/UpdatePanelControl.ascx snippet
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional"
    <ContentTemplate> 
        <div class="count"
            <asp:Label ID="lblCount" runat="server" Text="0"></asp:Label> 
            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add" /> 
        </div> 
    </ContentTemplate> 
    <Triggers> 
        <asp:PostBackTrigger ControlID="btnAdd" /> 
    </Triggers> 
</asp:UpdatePanel> 

Controls/UpdatePanelControl.ascx.cs click event handler
        protected void btnAdd_Click(object sender, EventArgs e) 
        { 
            int count; 
            if (!int.TryParse(lblCount.Text, out count)) 
                count = 1; 
 
            lblCount.Text = (count + 1).ToString(); 
        } 

RADAjaxManagerError.aspx snippet
        <telerik:RadScriptManager ID="ScriptManagerRad" runat="server"></telerik:RadScriptManager> 
        <h1>Header that should be static</h1> 
        <asp:Button ID="btnPanel" runat="server" Text="Hide Panel" onclick="btnPanel_Click" /> 
        <asp:Panel ID="pnlShowHide" runat="server"
            <ctl:updatepanelcontrol runat="server" ID="ctlUpdate" /> 
        </asp:Panel> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnPanel"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="btnPanel" /> 
                        <telerik:AjaxUpdatedControl ControlID="pnlShowHide" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

RADAjaxManagerError.aspx.cs click event handler
        protected void btnPanel_Click(object sender, EventArgs e) 
        { 
            btnPanel.Text = btnPanel.Text == "Hide Panel" ? "Show Panel" : "Hide Panel"
            pnlShowHide.Visible = !pnlShowHide.Visible; 
        } 
Konstantin Petkov
Telerik team
 answered on 11 Aug 2008
3 answers
158 views

Hi Telerik team
please read the following scenario carefully.
I have a RadGrid with the following properties:

<EditFormSettings EditFormType="WebUserControl" UserControlName="../UCF/UCF_Blood.ascx">

  • The web user control contains another 3  (at least ) RadGrid(s).
  • Each RadGrid that have at least 20 columns per one.
  • These grids works as a child for the parent  grid.

When I’m trying to edit the parent row (parent grid) then the grid turns into edit mode diplaying the parent data plus the other child grids.

The problem is that: after data binding and form return to end user (browser) it takes several seconds to be able to interact with the grids.

I think that
Telerik take long time trying to adjust the interface of  RadGrids controls.

If you try to click any where in the Brower you well get the error

"a script in this page is causing internet explorer to run slowly ....".

When I minimized the number of displayed rows  in child RadGrid it works fine.

Of course I could not consider this as a solution.

Please provide me with the help.

Remarks:

  • This is done using RadControls for asp.net Ajax 2008-Q2.
  • The dot net framework version 3.5.
  • Also note that I'm using RadAjax loading panel for the parent grid.

Senior software developer
moustafa maleek kandeel
mcp,mcts,mcad,mcsd certified.

 

Vlad
Telerik team
 answered on 11 Aug 2008
1 answer
124 views

Hi,
    I have a problem in RadGrid which uses the Grouping.
   Im adding the attributes to the Image in the Databound event of radgrid that opens a radwindow based on some of the parameters.
    This works fine for normal grid, but if grouping is provided, this attributes added for image does not open for the event.
 Im Providing the Sample Code, 
  
.aspx


 <radG:RadGrid ID="dgCommercialServices" Width="98%" ShowGroupPanel="False" runat="server" 
                        AutoGenerateColumns="false" Skin="Windows" EnableAJAX="True" OnItemDataBound="dgCommercialServices_ItemDataBound">  
                        <GroupHeaderItemStyle Font-Names="Verdana"></GroupHeaderItemStyle> 
                        <ClientSettings> 
                            <Scrolling ScrollHeight="493px" AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="false" /> 
                        </ClientSettings> 
                        <AlternatingItemStyle CssClass="GridAltRow2_Windows" /> 
                        <MasterTableView Width="100%">  
                            <NoRecordsTemplate> 
                                <asp:Label ID="lblError" runat="server" Text="Not applicable."></asp:Label> 
                            </NoRecordsTemplate> 
                            <GroupByExpressions> 
                                <radG:GridGroupByExpression> 
                                    <SelectFields> 
                                        <radG:GridGroupByField FieldAlias="Services" FieldName="ColGroup" FormatString="" 
                                            SortOrder="None"></radG:GridGroupByField> 
                                    </SelectFields> 
                                    <GroupByFields> 
                                        <radG:GridGroupByField FieldAlias="Services" FieldName="ColGroup" FormatString="" 
                                            SortOrder="None"></radG:GridGroupByField> 
                                    </GroupByFields> 
                                </radG:GridGroupByExpression> 
                            </GroupByExpressions> 
                            <ExpandCollapseColumn Visible="False">  
                                <HeaderStyle Width="10px" /> 
                            </ExpandCollapseColumn> 
                            <RowIndicatorColumn Visible="False">  
                                <HeaderStyle Width="10px" /> 
                            </RowIndicatorColumn> 
                            <Columns> 
                                <radG:GridBoundColumn HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" 
                                    Groupable="False" HeaderText="Services-Commercial" DataField="Services-Commercial" 
                                    UniqueName="Services-Commercial">  
                                    <HeaderStyle HorizontalAlign="Left" ForeColor="Black" Width="30%"></HeaderStyle> 
                                    <ItemStyle HorizontalAlign="Left" Width="30%" /> 
                                </radG:GridBoundColumn> 
                                <radG:GridTemplateColumn HeaderStyle-Font-Bold="true" HeaderText="PBM" Groupable="False" 
                                    UniqueName="PBM_un">  
                                    <HeaderStyle HorizontalAlign="Center" ForeColor="Black" Width="12%"></HeaderStyle> 
                                    <ItemStyle HorizontalAlign="Center" Width="12%"></ItemStyle> 
                                    <ItemTemplate> 
                                        <asp:Image runat="server" Visible='<%#IsCheck(DataBinder.Eval(Container.DataItem,"PBM"))%>' 
                                            ID="imgPBM" ImageUrl="../Images/TickMark1.gif" /> 
                                    </ItemTemplate> 
                                </radG:GridTemplateColumn> 
</Columns> 
                        </MasterTableView> 
                    </radG:RadGrid> 




.aspx.cs



  fobj_Img_PBM.Attributes.Add("onclick"string.Format("javascript:ShowEntyAffilWnd({0},{1},{2},{3},1,'Affiliations');", mint_PageID, fint_SvcID, mint_EntyTyp, mint_EntityId));  
 

  javascript

function ShowEntyAffilWnd()  
{           
    var left=event.x;  
    var top=event.y;  
      
    var oManager = RadWndMgr();  
      
      
    var aint_PageId=arguments[0];  
    var aint_RowId=arguments[1];  
     var aint_Enty_typ=arguments[2];  
    var aint_ColId=arguments[4];  
    var aint_EntyId=arguments[3];  
     
    
    var strUrl = "../common/EntityAffiliations.aspx?PageId="+aint_PageId+"&RowId="+aint_RowId+"&EntyType="+aint_Enty_typ+"&ColId="+aint_ColId+"&EntyId="+aint_EntyId;  
    var oMailWnd = oManager.Open(strUrl, "NewWindow");  
            
    oMailWnd.Show();  
    //oMailWnd.Restore();       
    oMailWnd.SetTitle(arguments[5]);  
    oMailWnd.SetSize(200, 200);  
    //alert(left);  
    if((1024-left)<400)  
        left=left-110;  
    if((768-top)<425)  
        top=top-50;  
          
    oMailWnd.MoveTo(left, top);  
     
}   
 

 
Everything is working fine in IE7, but in Safari Browser the window is not opening for rad grid where grouping is there.


   Hint: In normal radgrid, event.x gets the value in javascript, but the radgrid with grouping the event.x is undefined. (Safari)

Urgent help will be appreciated..
Thank you.

Missing User
 answered on 11 Aug 2008
4 answers
106 views
Hi Guys,

After using only the Rad Controls for Asp.Net I have just added my first Rad Asp.Net Ajax control. Works great on my development PC.

I cannot see the Slider control now that I have uploaded to the live site.
I do not get any errors, the control is just not there.

When I deployed previously I used to upload the RadControls dir. What do I need to upload for the Asp.Net ajax controls.
I have already uploaded Telerik.Web.UI.dll into the bin folder.
Am I missing something else?

Thanks for your help,

Steve.
 
Georgi Tunev
Telerik team
 answered on 11 Aug 2008
2 answers
437 views
Good day,

I'm using the ASP.NET ajax grid version 2008.1.619.35.  I'm trying to test if a row item within the grid has been set to editmode.  I tried checking the IsInEditMode row property on the row item.  The IsInEditMode property kept returning a false even though I know the row was indeed in edit mode.

protected void RadGrid1_EditCommand(object source, GridCommandEventArgs e)  
{  
 
      //Is it a GridDataItem  
      if (e.Item is GridDataItem)  
       {  
           //Get the instance of the right type  
           GridDataItem dataBoundItem = e.Item as GridDataItem;  
           if (dataBoundItem.OwnerTableView.Name == "OrderHeader")  
           {  
               if (Convert.ToInt16(dataBoundItem["OrderStatusID"].Text) == 1)  
               {  
                   if (e.Item.IsInEditMode)  
                   {  
                        Debug.Write("Edit Mode!);      
                   }  
               }  
            }  
        }  
 } 

Now I did manage to find a work around using the same code as above with the following change

if (e.Item.Edit)  
{  
     
   Debug.Write("Edit Mode!");  
 

I want to confirm if there is a bug with the property IsInEditMode.
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2008
1 answer
169 views
Hi,
i have a page Reservations.aspx (my reservations list) i want to go cancel reservations.aspx in RadWindow...
i put my rad window here,

function

ShowDialog(i)

{

var oWnd = window.radopen("CancelReservation.aspx?id="+i, "Reservations");

oWnd.SetUrl(oWnd.GetUrl());

}

<rad:RadWindowManager ID="Singleton" runat="server" Behavior="Close,Move" VisibleStatusbar="False"

Width="510px" Height="300px" Skin="Office2007" RadControlsDir="RadControls/">

<Windows>

<rad:RadWindow ID="Reservations" Modal="True" runat="server" Title="Cancel Reservation"

Left="" NavigateUrl="" SkinsPath="~/RadControls/Window/Skins" Top=""></rad:RadWindow>

</Windows>

</rad:RadWindowManager>

i want when i closed CancelReservation.aspx page (in radWindow) my Reservations.aspx page Refresh....
when i closed window i want Reservation.aspx page is refreshed...

thx.

Georgi Tunev
Telerik team
 answered on 11 Aug 2008
1 answer
68 views
I have two panes, one with rad tree and other with multiple textboxes. Now i put focus on first textbox on load and then keep tabbing to next textboxes. But after last textbox the tabbing takes focus to IE address bar. But i want to cycle tab back to first text box.

Please help me to fix this by adding some property to rad pane.
Tsvetie
Telerik team
 answered on 11 Aug 2008
1 answer
148 views
<rad:GridTemplateColumn>
<ItemTemplate>
<asp:LinkButton runat="server" Text="Delete"
ID="lnkBtnDeleteSet"
OnClientClick="editClick(); return false;" />
</ItemTemplate>
</rad:GridTemplateColumn>

In that example, how do I get the row of the LinkButton
in the
editClick() method?

Yavor
Telerik team
 answered on 11 Aug 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?