Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
257 views
my code below.
no loading is shown - I have min time = 14 seconds
no alert is ever called
my grid I create and bind with code behind.

why is the loading panel not showing? what am I missing
is there a way for me to explicit call the show loading?
function requestStart(sender, eventArgs) {
    alert('Request start initiated by: ' + eventArgs.get_eventTarget());
}
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" MinDisplayTime="14000"  Skin="Default" Modal="true">
<asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>
<asp:Image ID="Image1" runat="server" Width="224px" Height="48px" ImageUrl="/colors.png"></asp:Image>
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="requestStart" />
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gv">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gv" LoadingPanelID="LoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid RenderMode="Lightweight" ID="gv" runat="server" AutoGenerateColumns="false" CellSpacing="1" EnableViewState="true" />
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
1 answer
115 views

Until recently I was exporting to Excel using ExcelML format.  The GridEditCommandColumn was not exported (ExportOnlyData is set to true).
I am now exporting using XLSX format.  Since then, the GridEditCommandColumn is exported along with data.
I would expect the same behaviour (no edit column). 

Is it a bug ? 
Is there an option to hide GridEditCommandColumn when exporting to xlsx ?

<telerik:RadButton ID="ButtonExportExcelML" runat="server" Text="Export to ExcelML" OnClick="ButtonExportExcelML_Click" />   
<telerik:RadButton ID="ButtonExportXLSX" runat="server" Text="Export to XLSX" OnClick="ButtonExportXLSX_Click" />   
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" ExportSettings-ExportOnlyData="true" OnNeedDataSource="RadGrid1_NeedDataSource">
    <MasterTableView>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    RadGrid1.DataSource = new List<int> { 1,2,3,4,5,6};
}
 
protected void ButtonExportExcelML_Click(object sender, EventArgs e)
{
    RadGrid1.ExportSettings.FileName = "TestExcelML";
    RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
    RadGrid1.ExportToExcel();
}
 
protected void ButtonExportXLSX_Click(object sender, EventArgs e)
{
    RadGrid1.ExportSettings.FileName = "TestXlsx";
    RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
    RadGrid1.ExportToExcel();
}
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
3 answers
98 views
Hi,

Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination?

For example:

In RadGrid standard Page UI Pagination, if you have page size of 25, when the data source is bound then the whole dataset (e.g. 500 member records) is retrieved from the database, but only renders the first 25 records. When the user clicks to go to page 2 the query is run to get the 500 records again and the telerik control will then render the next batch of 25 records in order. Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination that can limit the records retrieved from the database to, say 100 records rather than retrieving 500 records?
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
3 answers
594 views
Hi,

Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination?

For example:

In RadGrid standard Page UI Pagination, if you have page size of 25, when the data source is bound then the whole dataset (e.g. 500 member records) is retrieved from the database, but only renders the first 25 records. When the user clicks to go to page 2 the query is run to get the 500 records again and the telerik control will then render the next batch of 25 records in order. Does RadGrid has built-in Database Pagination in addition to the standard Grid UI Pagination that can limit the records retrieved from the database to, say 100 records rather than retrieving 500 records?
Viktor Tachev
Telerik team
 answered on 23 Aug 2016
30 answers
464 views
I have successfully been able to hide items from the context menu.  Is it possible to remove the separator bars that also appear in the menu?  Also I am struggling to be able to add my own items.  I have seen the examples in c#, however these do not translate well to vb.  Below is the code I am using to hide the items.  It would be much appreciated if someone could show me how to add new items.  Once added I would also need to know how to capture the fired event when the menu item is clicked.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        AddHandler RadGrid1.HeaderContextMenu.ItemCreated, AddressOf Me.HeaderContextMenu_ItemCreated
 
     ...
End Sub
 
Private Sub HeaderContextMenu_ItemCreated(ByVal sender As Object, ByVal e As RadMenuEventArgs)
        Select Case (e.Item.Text)
            Case "Clear Sorting"
                e.Item.Visible = False
            Case "Sort Ascending"
                e.Item.Visible = False
            Case "Sort Descending"
                e.Item.Visible = False
        End Select
End Sub
Jon
Top achievements
Rank 1
 answered on 23 Aug 2016
1 answer
130 views

Hi,

Beside data binding, is there any way to create a task programmatically with code?

Andy Ho

Veselin Tsvetanov
Telerik team
 answered on 23 Aug 2016
1 answer
194 views

Hi

In below link, we can see combo-box with  checkbox.

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx

When Page load i will use loop to mark selected items like below

RadComboBoxItem item = ComboBox.FindItemByValue(myValue);
 if (item != null)
 {          item.Checked = true;          }

My Requirement:

Use ComboBox - Load on Demand Modes and use web service to load data

When Page load, how to show items initially (if it is a web service call)?

Can we do this? as in my project, i have userlist in drop down as webservice (normal combo box) and i need to change with combobox with checkbox functionality

Senthil

 

Ivan Danchev
Telerik team
 answered on 23 Aug 2016
6 answers
274 views
I tried the following solution but unfortunately, only the visible rows - displayed at the top of the grid - are printed, not those that you see on the screen after scrolling down. AutoGenerateColumns and AllowPaging are set to false.

http://www.telerik.com/community/code-library/aspnet-ajax/grid/print-radgrid-contents.aspx

function PrintRadGrid() 
    var previewWnd = window.open('about:blank', '', '', false); 
    var sh = '<%= ClientScript.GetWebResourceUrl(radGrid1.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",radGrid1.Skin)) %>'
    var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>"; 
    var htmlcontent = styleStr + "<body>" + $find('<%= radGrid1.ClientID %>').get_element().outerHTML + "</body></html>"; 
    previewWnd.document.open(); 
    previewWnd.document.write(htmlcontent); 
    previewWnd.document.close(); 
    previewWnd.print(); 
    previewWnd.close(); 


I'm using Visual Studio 2008 / .Net 3.5 along with Telerik RadControls for ASP.NET AJAX 2009.3.1103.35

Any thoughts?

Thanks
Konstantin Dikov
Telerik team
 answered on 23 Aug 2016
1 answer
132 views

I am using RadEditor with DNN Evoq Content 8.0.3. Is there a way to load Google fonts in the editor? I've included the following in my custom CSS file:

@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i);

but, the editor is not loading the fonts in the iframe. Can anyone assist? Thank you.

Stanimir
Telerik team
 answered on 23 Aug 2016
4 answers
88 views
Hi,

We are using the full featured RAD Editor for MOSS for one of our clients who want to use "Form element". It seems to work fine, except that it does not save everything. We can add a text input and then add a name attribut to it, but when we check in the page the attribute is removed (and we need to be able to add the name attribute). I think it might be Sharepoint who validates the html code and removes it somehow(?), but how should we go around this? Is "Form element" not suppose to work in RAD editor for MOSS (even though you can add it)?

For now we have added a javascript, setting the name attribute to the same as the id attribute (that we can save with the page). But this does not work for radiobuttons.

Best regards
Maria
Stanimir
Telerik team
 answered on 23 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?