Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
482 views

I was trying to use RadAjaxLoadingPanel, but somehow I am not sure what I am missing. I am just trying to show the Panel on different occasion and is being used only for purpose of indication of progress, and hence am not using any AjaxManager or UpdatePanel in the code.

My aspx file would maybe contain:    

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" CdnSettings-TelerikCdn="Disabled">
    <Services>
        <asp:ServiceReference Path="~/CR.asmx" InlineScript="True" />
    </Services>
</telerik:RadScriptManager>

 

Loading Panel:

<telerik:RadAjaxLoadingPanel ID="loadingPanel" runat="server">
</telerik:RadAjaxLoadingPanel>

 

Then I have a Grid Control:

<telerik:RadGrid AllowFilteringByColumn="False" AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False" CellPadding="0" CellSpacing="0" CssClass="gridCrossRoads" GridLines="None" ID="gridObject" runat="server">
    <ClientSettings AllowGroupExpandCollapse="false" EnableAlternatingItems="false" EnableRowHoverStyle="true">
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowDataBound="GridRowBound"></ClientEvents>
    </ClientSettings>
    <MasterTableView AllowFilteringByColumn="False" AllowNaturalSort="False" ClientDataKeyNames="Id" DataKeyNames="Id" EnableColumnsViewState="False" EnableViewState="False" HierarchyLoadMode="Client" NoMasterRecordsText="<div class='noRec'>No records to display.</div>" TableLayout="Auto">
        <Columns>
            <telerik:GridHyperLinkColumn DataNavigateUrlFields="Id" DataNavigateUrlFormatString="javascript:ShowWindow({0});" DataTextField="MasterObject" DataTextFormatString="{0}" HeaderText="Eye Color" UniqueName="MasterObject">
                <HeaderStyle CssClass="gridHeader" Width="40%"></HeaderStyle>
                <ItemStyle CssClass="gridItem" Width="40%"></ItemStyle>
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn DataField="Code" EmptyDataText="---" HeaderText="Code" UniqueName="Code">
                <HeaderStyle CssClass="gridHeader" Width="20%"></HeaderStyle>
                <ItemStyle CssClass="gridItem" Width="20%"></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Status" EmptyDataText="---" HeaderText="Status" UniqueName="Status">
                <HeaderStyle CssClass="gridHeader" Width="20%"></HeaderStyle>
                <ItemStyle CssClass="gridItem" Width="20%"></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="Temp">
                <HeaderStyle CssClass="gridHeader" Width="20%" />
                <ItemStyle HorizontalAlign="Center" Width="20%" />
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

I populate the code using JavaScript

<script type="text/javascript">
    $(document).ready(function()
    {
             _grid = $find("<%= gridObject.ClientID %>");
      
_loadingPanel = $find("<%= loadingPanel.ClientID %>");
        isLoadingPanelDisplayed = false;
 
        ShowLoadPanel(window._grid);
        setTimeout(GetEyeColorData, 100); //this is a ajax function which populates the grid using javascript
       ResizeAdminGrid();
    });

 

//This function is in a .js file, there is another function HidePanel which hides the panel but it is commented.

function ShowLoadPanel(control)
{
    if (window._loadingPanel && !window.isLoadingPanelDisplayed)
    {
        if (!control)
        {
            control = window._grid;
        }
        if (control)
        {
            window._loadingPanel.show(control);
        }
        window.isLoadingPanelDisplayed = true;
    }
}

</script>

 

I don't know what's wrong in this script, though the Loading Panel never shows. To see if the Panel is rendered into the DOM, I tried to set the display property of loading panel via jQuery to inline and it worked though it shows before the Grid, but I know the Loading Panel has properly being rendered.

Mani
Top achievements
Rank 1
 answered on 24 Jul 2020
3 answers
1.0K+ views

I have a RadioButtonList like this:

   <asp:RadioButtonList ID="myRbl" runat="server" AutoPostBack="true">
                                                    <asp:ListItem Selected="True" Value="0">Option 0</asp:ListItem>
                                                    <asp:ListItem Value="1">Option 1</asp:ListItem>
                                                    <asp:ListItem Value="2">Option 2</asp:ListItem>
                                                </asp:RadioButtonList>

 

and a ToolTipManger:

Dim controlClientID As String = myRbl.ClientID
DirectCast(Page.Master.FindControl("RadToolTipManager1"), RadToolTipManager).TargetControls.Add(controlClientID, True)

I don't know how to add a tooltip for each listed item in my RadioButtonList .

If I do something like listItemOpen.Attributes.Add("title", "Option 0") it does add a tool tip to the listed item and it doesn't work with the tooltipmanager. It work only with a tool tip at the button level.


 

Peter Milchev
Telerik team
 answered on 24 Jul 2020
7 answers
309 views
I want to show a target line in my stacked bar chart for one of the series. Is it possible to do so?
Vessy
Telerik team
 answered on 24 Jul 2020
8 answers
547 views
I have been following this example here:

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export/defaultcs.aspx

But I am unable to select GridExcelExportFormat.Xlsx from the list when I am setting this value:

rgTools.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;

The only options are ExcelML, Biff and Html.

The ExcelML works as a .xls file but keeps throwing warnings every time the spreadsheet is opened in Excel 2013.

How to fix that?
Doncho
Telerik team
 answered on 23 Jul 2020
1 answer
218 views

 

   Hi, 

        I want to Hide a Week Number in GridDateTimeColumn. I dont know how to do this. Is there any property to hide this. Please let me know if any solution for this.

 

 

Thanks,

muthukumar c

Doncho
Telerik team
 answered on 23 Jul 2020
3 answers
214 views

TLDR Version:

In situations where a databound value falls outside the options on a RadComboBox, how can I over-ride the default behavior (selecting the first option in the list) with showing the value as empty?

Example:

If I have a RadComboBox with selectable options A,B,C and D and it is bound a field with current value of G, I want the value of the RadComboBox to be empty, rather than defaulting to option A.

Business details (If interested)

We have a business object that contains an employee who is responsible for it.  This is selected and edited by a RadComboBox.  This works well in typical usage.

However, when an employee leaves the company, the business object will still list them as the person responsible for it.  The next time the item is edited, the ex-employee will no longer be in the drop-down select list.  This causes the RadComboBox to default to the first employee on the list, with no warning that the field needs to be intentionally selected before saving.

We would like to be able to control the behavior when an ex-employee is on the object, the combobox will show up as empty, and thus trigger the required field validation.  (Our rule is that the person must be updated upon the first edit after they leave.)

Eyup
Telerik team
 answered on 23 Jul 2020
7 answers
513 views


 Hi,

 I Tried to acces RadGrid2, but i cannot acces it.
How is it possible to access Radgrid2?

Radgrid2 is within a radtap

Hope you can help me


     </asp:ScriptManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateHierarchy="True" CellSpacing="0" Culture="de-DE" GridLines="None">
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <NestedViewTemplate>
                    <asp:Panel runat="server" ID="configControlContainer" CssClass="viewWrap" Visible="true">
                                            <telerik:RadTabStrip runat="server" ID="TabStrip1" MultiPageID="Multipage1" SelectedIndex="0">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Satzart 2" PageViewID="PageView1">
                                                       </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Satzart 3" PageViewID="PageView2">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Satzart 4" PageViewID="PageView3">
                            </telerik:RadTab>  </Tabs>
                    </telerik:RadTabStrip>
                         
                            <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                        <telerik:RadPageView runat="server" ID="PageView1">
                             
                           <telerik:RadGrid ID="RadGrid2" runat="server"    AutoGenerateHierarchy="True" CellSpacing="0" Culture="de-DE" GridLines="None"/>
                             
                        </telerik:RadPageView>
                        </telerik:RadMultiPage>
 
                       
                    </asp:Panel>
                </NestedViewTemplate>
    <Columns>
        <telerik:GridBoundColumn DataField="id" FilterControlAltText="Filter column column" UniqueName="column">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Satzart" FilterControlAltText="Filter column1 column" UniqueName="column1">
        </telerik:GridBoundColumn>
   
             
              
           
    </Columns>
Eyup
Telerik team
 answered on 23 Jul 2020
1 answer
223 views

I have a problem with this page, it does not display correctly:

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Prueba2.aspx.cs" Inherits="Prueba2" %>
 
<!DOCTYPE html>
 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="~/Content/bootstrap-grid.min.css" rel="stylesheet" />
    <link href="~/Content/bootstrap-reboot.css" rel="stylesheet" />
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/font-awesome.css" rel="stylesheet" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadCodeBlock runat="server">
        <script type="text/javascript">
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
 
    <telerik:RadAjaxManager ID="RadAjaxManagerEspecies" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnFecha">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnFecha" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" CssClass="loadingPanel" Transparency="20">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadWindowManager ID="rdwManager" runat="server">
    </telerik:RadWindowManager>
 
    <div class="container-fluid">
        <div class="card" runat="server">
            <div class="card-body">
                <telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1" SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Prueba" PageViewID="rpvFicha" Value="rpvFicha"></telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" CssClass="card">
                    <telerik:RadPageView runat="server" ID="rpvFicha" CssClass="card-body">
                        <telerik:RadPanelBar runat="server" ID="rpnFicha" Width="100%" Style="margin-bottom: 0px">
                            <Items>
                                <telerik:RadPanelItem runat="server" Expanded="False" Text="Coordenadas" Visible="true" Value="habitats">
                                    <ContentTemplate>
                                        <telerik:RadTextBox ID="RadTextBox1" runat="server" Rows="3" MaxLength="3500" Wrap="false" Width="100%" TextMode="MultiLine"></telerik:RadTextBox>
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                            <Items>
                                <telerik:RadPanelItem runat="server" Expanded="False" Text="Bibliografía" Visible="true" Value="bibliografia">
                                    <HeaderTemplate>
                                        <a class="rpExpandable">
                                            <span class="rpExpandHandle"></span>
                                        </a>
                                        <asp:Label Text="label1" ID="label1" runat="server" CssClass="rpText"> </asp:Label>
                                    </HeaderTemplate>
                                    <ContentTemplate>
                                        <telerik:RadTextBox ID="rdtSituacion" runat="server" Rows="3" MaxLength="3500" Wrap="false" Width="100%" TextMode="MultiLine"></telerik:RadTextBox>
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                            <Items>
                                <telerik:RadPanelItem runat="server" Expanded="False" Text="Observaciones" Visible="true" Value="observaciones">
                                    <ContentTemplate>
                                        <telerik:RadTextBox ID="RadTextBox2" runat="server" Rows="3" MaxLength="3500" Wrap="false" Width="100%" TextMode="MultiLine"></telerik:RadTextBox>
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelBar>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </div>
        </div>
    </div>
    </form>
</body>
</html>

In my webconfig i have this configuration:

<add key="Telerik.Web.UI.RenderMode" value="lightweight" />

 

But if i change the rendermode from the panel to Classic  it is displayed well, What is the problem?

Thank you in advance

Vessy
Telerik team
 answered on 23 Jul 2020
1 answer
189 views

Hello,

in my aspx page I have 3 combobox.

The First, the only one enabled, shows States. When the user select one state, the other 2 combo read the database and select cities and clients from that state.

At the moment I reload the page when the search take place.

Is It possible to avoid the page reloading?

 

Luigi

Vessy
Telerik team
 answered on 23 Jul 2020
3 answers
307 views

Hi, I am using the Radcombobox to load data from filter table. When i change the selected item , i am calling Selected Index Change and reload data in a radgrid. This works good.

Now i am adding a new filter in the table in top of the for on a button click (same Page). The user requested to see the newly added filter without refreshing the page or any button click. I tried to do the same using Ajax and it works fine.. But my Selected Index Change Event is not firing, If i rever back the changes the selected Index change event first and the data loaded to the radgrid.

Is there any changes any settings i need to do to work both selected index change and the Ajax data load for the Radcombobox.

Quick reply will be really appreciated.

Thanks

Ravi
Vessy
Telerik team
 answered on 23 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?