Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
65 views
Hi Telerik team

I am stuck in a hectic situation. I used a telerik Grid in my application and whenever there is no content in Details table in Grid then corresponding row's Arrow is displaying but i want it to be not visible.

Wherever  if we have content in details table then arrow is displaying which is fine for me.

Regards
Manmeet Singh
Pavlina
Telerik team
 answered on 24 Aug 2010
1 answer
98 views
Hi Telerik:
     I have a radgrid with detailtable,which RowDblClick event in ClientEvents. I hope RowDblClick  event only work on detailtable,do not work when I double click mastertable row , how to do it? thank you !

<ClientEvents  OnRowDblClick="RowDblClick1"   OnHierarchyExpanding="HierarchyExpanding" OnHierarchyCollapsing="HierarchyCollapsing" ></ClientEvents>

best regards
tony
Pavlina
Telerik team
 answered on 24 Aug 2010
1 answer
111 views
I'm looking to adjust the H1 tag formatting using the editor.  When I put <h1>content</h1> tags around the content, the text size goes to 32px and there is a big space above and below the content.  I realize this is because the h1 tags are set a certain way, but is there any way to override the h1 tag formatting?
Cori
Top achievements
Rank 2
 answered on 24 Aug 2010
3 answers
586 views
Hello,

I have a page that I had working with RadAjaxPanels, but I'm trying to re-wire it using RadAjaxManager for the sake of learning how to use that tool properly.

My page has a grid on it that refreshes itself when its command buttons are clicked.  The page also has a popup window, and when the user updates information on the popup window, it calls a refresh() javascript function on my main page, which calls the ajaxRequest function of the RadAjaxPanel, which updates the grid.  This all works great.

Now that I'm trying to re-wire it with a RadAjaxManager, I'm trying to reproduce this functionality.  Unfortunately, the refresh() javascript function that I have now changed to call the RadAjaxManager1.ajaxRequest() function does nothing.  The AjaxRequest code never gets called.

Then I thought maybe if I called ajaxRequestWithTarget and used the grid object as my target, that would produce the correct results.  Unfortunately while I can see that the event is firing because the grid shows the loading panel for a moment, the data is not refreshing.  After looking through all the documentation and examples, I'm confused.  I can't figure out what C# event fires when doing an ajaxRequestWithTarget event.  Nothing in your examples specifies the event to be called.  What grid event gets fired when I use it as the target?

Thanks!
Cori
Top achievements
Rank 2
 answered on 24 Aug 2010
1 answer
62 views
Hello,
I know hotfixes (2010.2.817.40) are available -but just wanted to know when the offical service pack will be available ?

Cheers
Sebastian
Telerik team
 answered on 24 Aug 2010
0 answers
185 views
We have the Telerik TreeView module installed on a DNN 5.04.04 Pro install.

The module displays all the pages within the site, but that is the problem.  Even pages marked in DNN not to be included in the Navigation are included in the sitemap module.  Is there a way to exclude pages from the sitemap that are not included in the main navigation of the site?  I see where you can select whether the module should hide invisible pages to normal users, but what about pages that ARE visible, but NOT part of the DNN navigation?

Also... is there a way for us to have the sitemap module display all its nodes as collapsed by default?

Thanks in advance.
SteadyRain Developer
Top achievements
Rank 1
 asked on 24 Aug 2010
2 answers
161 views
Hi,

I have a .aspx page with web user controls loaded dynamically into a panel called Main_PH. Everything works as it should. However, when I try to introduct RadAjaxManager with loading panels things don't go so great.

Below is my code for the default.aspx page

<telerik:RadCodeBlock ID="Default_RadCodeBlock" runat="server">
  
          
        <script type="text/javascript">
            function RequestStart(sender, eventArgs) {
                var loadingImage = document.getElementById('<%= Default_RadAjaxLoadingPanel.FindControl("Image1").ClientID %>');
                var panel1 = $get("WUC_default_wuc_Panel_Loading");
                loadingImage.style.position = "relative";
                loadingImage.style.top = (parseInt(panel1.style.height) / 2) + "px";
            }
            function MyClientShowing(sender, args) {
                args.get_loadingElement().style.border = "2px solid red";
                args.set_cancelNativeDisplay(true);
                $telerik.$(args.get_loadingElement()).show("slow");
            }
  
            function MyClientHiding(sender, args) {
                args.get_loadingElement().style.border = "2px solid blue";
                args.set_cancelNativeDisplay(true);
                $telerik.$(args.get_loadingElement()).hide("slow");
            }  
    </script>  
  
  
    </telerik:RadCodeBlock>
      
      
      
</head>
<body id="home">
<form id="Default_Master_Form" runat="server">
  
    <telerik:RadScriptManager ID="Default_ScriptManager" runat="server" />
  
    <telerik:RadAjaxManager ID="Default_RadAjaxManager" runat="server" 
        DefaultLoadingPanelID="Default_RadAjaxLoadingPanel">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="LinkButton_MM_Inbox">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel_Loading"  
                        LoadingPanelID="Default_RadAjaxLoadingPanel">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="RequestStart" />
    </telerik:RadAjaxManager>
  
    <telerik:RadAjaxLoadingPanel ID="Default_RadAjaxLoadingPanel" runat="server" Transparency="30" Skin="Default">
         <div class="loading">  
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/loading2.gif" />  
                    </div
    </telerik:RadAjaxLoadingPanel>
  
......
  
  <asp:PlaceHolder ID="Main_PH" runat="server">
            </asp:PlaceHolder>

Here is the code for the pre-render in code behind of default.aspx

protected void Page_PreRender(object sender, EventArgs e)
        {
            Default_RadAjaxLoadingPanel.OnClientShowing = "MyClientShowing";
            Default_RadAjaxLoadingPanel.OnClientHiding = "MyClientHiding";
        }


Here is the code for the .ascx page which is loaded into Main_PH

<asp:Panel ID="Panel_Loading" runat="server" CssClass="loading_panel" Height="440px">
  
                    <h2>
                        Administration</h2>
                    <div class="content_main">
  
                            <h3>
                                1. Employee Settings - Personal</h3>
                            <div>
                                <label for="empid_ti">
                                    Employee Id 
                                    <asp:Button ID="Button1" runat="server" Text="Button" CausesValidation="false"/></label>
                                <asp:TextBox ID="TextBox1" runat="server" EnableViewState="true"></asp:TextBox></div>
  
</asp: Panel>


When I click on the button LinkButton_MM_Inbox from the default.aspx page, what happens is the animation starts, finishes etc on the Panel_Loading from the .ascx and an Ajax postback happens but a new Web User Control.ascx does not appear on the page (which is what is supposed to happen).

If I change the code in the default.aspx page to this: (Main_PH instead of Panel_Loading...

<telerik:AjaxSetting AjaxControlID="LinkButton_MM_Inbox">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="Main_PH"  
                       LoadingPanelID="Default_RadAjaxLoadingPanel">
                   </telerik:AjaxUpdatedControl>
               </UpdatedControls>
           </telerik:AjaxSetting>

... the Ajax postback happens, the new web user control is added as should happen but I don't get the animation in Panel_Loading.

I'm not really sure what to do?? I can't add the animations to Main_PH because Main_PH is heavily styled from the user controls and the animation will not show.

Any suggestions would be great! Thanks!

Sunny
Sunil
Top achievements
Rank 1
 answered on 24 Aug 2010
2 answers
106 views
I have a bound FormView that contained a series of controls including a bound RadTextBox.  For usability I placed a RadPanelBar inside the FormView and within the ItemTemplate moved the textBox.  The binding no longer is respected.  Should the binding have been preserved or what steps must be done to re-establish the binding?
Regards.
Kalina
Telerik team
 answered on 24 Aug 2010
1 answer
100 views
I'm trying to create a RadGrid - and only to parent columns show Add New Record
I put a CommandItemDisplay in the GridTableView, set up the right ParentTableRelations
Protected Sub rgSpiffDetail_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgSpiffDetail.NeedDataSource
    Dim VendorID As Integer = 0
    Dim ds As DataSet = Nothing
    Dim dt As DataTable = Nothing
 
    If rcbVendors.SelectedValue = String.Empty Then
        VendorID = Quicksilver_VendorID
    Else
        VendorID = rcbVendors.SelectedValue
    End If
    Dim ws As New CommonFunctions
    If e Is Nothing Then
    ElseIf e.IsFromDetailTable Then
        Exit Sub
    End If
    ds = ws.GetSpiffs(VendorID)
    If ds.Tables.Count > 0 Then
        dt = ds.Tables(0)
    End If
    rgSpiffDetail.DataSource = dt
End Sub
 
Protected Sub rgSpiffDetail_DetailTableDataBind(ByVal source As Object, ByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles rgSpiffDetail.DetailTableDataBind
    Dim gdItem As GridDataItem = Nothing
    Dim SpiffID As Integer = 0
    Dim ds As DataSet = Nothing
    Dim dt As DataTable = Nothing
 
    gdItem = CType(e.DetailTableView.ParentItem, GridDataItem)
    SpiffID = CInt(gdItem.GetDataKeyValue("SpiffID"))
    Dim ws As New CommonFunctions
    ds = ws.GetItemsforSpiff(SpiffID)
End Sub
 
Protected Sub rcbVendors_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles rcbVendors.SelectedIndexChanged
    Dim ea As Telerik.Web.UI.GridNeedDataSourceEventArgs = Nothing
    rgSpiffDetail.Rebind()
End Sub
and the code behind

<telerik:RadGrid ID="rgSpiffDetail" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" Width="95%" runat="server" >
<MasterTableView DataKeyNames="SpiffID" CommandItemDisplay="Top" Width="100%">
    <DetailTables>
        <telerik:GridTableView Name="Items" DataKeyNames="ItemID" CommandItemDisplay="Bottom" Width="100%">
        <ParentTableRelation>
            <telerik:GridRelationFields MasterKeyField="SpiffID" DetailKeyField="SpiffID" />
        </ParentTableRelation>
        <Columns>
            <telerik:GridBoundColumn UniqueName="SpiffID" DataField="SpiffID" HeaderText="SpiffID" />
            <telerik:GridBoundColumn UniqueName="ItemID" DataField="ItemID" HeaderText="ItemID" />
            <telerik:GridBoundColumn UniqueName="KMSPartNo" DataField="KMSPartNo" HeaderText="KMS Part Number" />
            <telerik:GridBoundColumn UniqueName="LNSPartNo" DataField="LNSPartNo" HeaderText="LNS Part Number" />
            <telerik:GridBoundColumn UniqueName="Description" DataField="Description" HeaderText="Description" />
            <telerik:GridButtonColumn UniqueName="DeleteColumn" CommandName="Delete" Text="Delete" />
        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
            <table border="0" cellpadding="2" cellspacing="2">
            <tr>
            <td>Items</td>
            <td>
                <telerik:RadComboBox ID="rcbItems" AutoPostBack="true" runat="server" />
            </td>
            </tr>
            </table>
            </FormTemplate>
        </EditFormSettings>
        </telerik:GridTableView>
    </DetailTables>
    <Columns>
        <telerik:GridButtonColumn UniqueName="Edit" Text="Edit" CommandName="Edit" />
        <telerik:GridBoundColumn UniqueName="SpiffID" DataField="SpiffID" HeaderText="SpiffID" ReadOnly="True" />
        <telerik:GridBoundColumn UniqueName="Seq" DataField="Seq" HeaderText="seq" />               
        <telerik:GridTemplateColumn UniqueName="CashBack" HeaderText="CashBack" >
            <ItemTemplate>
                <asp:Label ID="lblCashBack" Text='<%# Bind("CashBack") %>' runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="rntbCashBack" text='<%# Eval("CashBack") %>' runat="server">
                    <NumberFormat DecimalDigits="2" />
                </telerik:RadNumericTextBox>
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn>
            <ItemTemplate>
                <asp:Label ID="lblCaseDollarItem" Text='<%# Bind("CaseDollarItemDesc") %>' runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <asp:RadioButtonList ID="rblCaseDollarItem" DataValueField="CaseDollarItem" runat="server">
                    <asp:ListItem Value="C" Text="Case" />
                    <asp:ListItem Value="D" Text="Dollar" />
                    <asp:ListItem Value="I" Text="Item" />
                </asp:RadioButtonList>
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridCheckBoxColumn UniqueName="AllorByItem" DataField="AllOrByItem" HeaderText="AllItems" />
        <telerik:GridTemplateColumn UniqueName="QtytoOrder" HeaderText="Qty to Order">
            <ItemTemplate>
                <asp:Label ID="lblQtytoOrder" Text='<%# Eval("QtytoOrder") %>' runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="rntbQtytoOrder" runat="server" />
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="DollartoOrder" HeaderText="$ to Order">
            <ItemTemplate>
                <asp:Label ID="lblDollartoOrder" Text='<%# Eval("DollartoOrder") %>' runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="rntbDollartoOrder" runat="server" >
                    <NumberFormat DecimalDigits="2" />
                </telerik:RadNumericTextBox>
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="MinQty" HeaderText="Min Qty">
            <ItemTemplate>
                <asp:Label ID="lblMinQty" Text='<%# Eval("MinQty") %>' runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="rntbMinQty" runat="server" />
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="MinDollar" HeaderText="Min Dollar">
            <ItemTemplate>
                <asp:Label ID="lblMinDollar" Text='<%# Eval("MinDollar") %>' runat="server" />
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="rntbMinDollar" runat="server" >
                    <NumberFormat DecimalDigits="2" />
                </telerik:RadNumericTextBox>
            </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn UniqueName="SpiffDescription" DataField="SpiffDescription" HeaderText="Description" >
            <ItemStyle Width="200px" />
        </telerik:GridBoundColumn>
        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"/>
    </Columns>
</MasterTableView>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 24 Aug 2010
2 answers
112 views
Having read and re-read the forum about how it was all Words fault for pasting bullet points from MSWord into RadEditor, I spotted the ConvertWordLists option under StripFormattingOptions, which seems to work a treat, except it still seems to have all the other unhelpful MSWord formatting in the remaining content.  Is there any way to have both ConvertWordLists AND cleaner paragraph markup, etc? I want to get rid of all font and css styles and leave just clean html markup with no styles.

Any help would be much appreciated.
Andrew Johns
Top achievements
Rank 1
 answered on 24 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?