Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views
Hi,

We use Telerik grid for VS2008, version 2011.3.1115.0.

We load grid dynamically into our user control that wrapped Telerik grid. There are master and content pages and our user control is placed on content page.

I need to export grid data to MS Excel file and save it to web server. There are 2 options. I can choose between exporting whole grid or selected rows.

How can I do that?

Thank you in advance.

Goran
Princy
Top achievements
Rank 2
 answered on 15 Feb 2013
1 answer
208 views
I am trying to see if there is some kind of solution for adding the Telerik.Web.UI.WebResource.axd to the web.config on different servers in both IIS6 and IIS7.   

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


I know how to get them to work in both, but I want to deploy my application to a server running IIS6 and a server running IIS7 without having to change the web.config.

Is this possible?

Thanks.
Slav
Telerik team
 answered on 15 Feb 2013
3 answers
137 views
hi,
I set the backgroundcolor dell'ajaxloadingpanel transparency in order to see only the animated gif? And you can set the size of animated gif? I use the default skin of the "simple"

bye
Daniel
Telerik team
 answered on 15 Feb 2013
2 answers
306 views
Hi,

We are trying to select the grid's first row, after applying a (client-side) filter. Our code is as follows :
However, the following line of code : alert(Rows.length); still returns the original number of items in the grid (meaning no filter applied)
Apparently the filtering happens after the remaining code? Any ideas on this behaviour?
function selectFirstRow() {
                    var grid = $find("<%=OnderzoekenGrid.ClientID %>")
                    if (grid != null)
                        grid.get_masterTableView().selectItem(0);
                }
 
                function filterPatType(sender, args) {
                    var t = sender.get_text();
                    var masterTable = $find("<%= OnderzoekenGrid.ClientID %>").get_masterTableView();
                    masterTable.clearFilter();
                    if (t == "Ambulanten") {
                        masterTable.filter('typepatient', 'A', Telerik.Web.UI.GridFilterFunction.EqualTo, true); 
                    }
                    else if (t == "Gehospitaliseerden") {
                        masterTable.filter('typepatient', 'H', Telerik.Web.UI.GridFilterFunction.EqualTo, true);
                    }
                    var Rows = masterTable.get_dataItems();
                    alert(Rows.length);
 
                    selectFirstRow();
                }
Bart Reekmans
Top achievements
Rank 1
 answered on 15 Feb 2013
6 answers
374 views
Hi all,
I'm using Asp.net ajax radgrid. Does it provide any mouseover event?? if Yes please give me some examples.
I want to display tooltip on mouseover for each cell for which i have to fetch records from database server. After successful execution of query result will display as tooltip for particular cell.
Any suggestions .. please let me know..

Thanks in advance!!!
Eyup
Telerik team
 answered on 15 Feb 2013
2 answers
428 views
Hi,

I have an AsyncUpload control within a div.
I selected several files to upload.
Questons:
How to hide uploaded file list during uploading process?
How to prevent parent div from expanding by height after files ware added for uploading.overflow:hidden didn't work;
Example:
    <div  style=" overflow: hidden" >
        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MultipleFileSelection="Automatic"
            OnClientFilesSelected="RadAsyncUpload1_FilesSelected" OnClientFileUploaded="RadAsyncUpload1_FileUploaded"
            UploadedFilesRendering="BelowFileInput" OnClientAdded="RadAsyncUpload1_Added"
            Height="25px" OnClientFileSelected="RadAsyncUpload1_FileSelected" OnClientFileUploading="RadAsyncUpload1_FileUploading"
            OnClientFilesUploaded="RadAsyncUpload1_FilesUploaded" EnableInlineProgress="False"
            OnFileUploaded="RadAsyncUpload1_FileUploaded" PostbackTriggers="btDoZip" Width="300px">
        </telerik:RadAsyncUpload>
    </div>

Thank you in advance.
Denius Valiant
Top achievements
Rank 1
 answered on 15 Feb 2013
1 answer
162 views
We use Telerik's grid for VS2008 and added context menu to it. The code looks as following:

Markup:

<telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" DataSourceID="SqlDataSource1" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
    AutoGenerateColumns="false" AllowMultiRowSelection="true">
    <MasterTableView PageSize="10" AllowPaging="True" Width="100%" DataKeyNames="ContinentID" DataSourceID="SqlDataSource1" EditMode="InPlace">
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="checkBox"></telerik:GridClientSelectColumn>
            <telerik:GridBoundColumn HeaderText="ContinentID" DataField="ContinentID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="ContinentName" DataField="ContinentName"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Selecting AllowRowSelect="true"></Selecting>
    </ClientSettings>
</telerik:RadGrid>

Code behind:

protected void contextMenu_ItemClick(object sender, RadMenuEventArgs e)
{
    int rowIndex = int.Parse(HiddenField1.Value);
    switch (e.Item.Text)
    {
        case "Edit":
            RadGrid1.Items[rowIndex].Edit = true;
            RadGrid1.Rebind();
            break;
        case "Add":
            RadGrid1.MasterTableView.IsItemInserted = true;
            RadGrid1.Rebind();
            break;
        case "Delete":
            RadGrid1.MasterTableView.PerformDelete(RadGrid1.Items[rowIndex]);
            break;
        case "Export To Excel":
            RadGrid1.MasterTableView.GetColumn("checkBox").Visible = false;
            RadGrid1.ExportSettings.ExportOnlyData = true;
            RadGrid1.ExportSettings.OpenInNewWindow = true;
            RadGrid1.MasterTableView.ExportToExcel();
            break;
    }
}

JavaScript:

function RowContextMenu(sender, eventArgs, menu, hiddenField) {
    var evt = eventArgs.get_domEvent();
 
    if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
        return;
    }
 
    var index = eventArgs.get_itemIndexHierarchical();
    hiddenField.value = index;
    menu.show(evt);
 
    evt.cancelBubble = true;
    evt.returnValue = false;
 
    if (evt.stopPropagation) {
        evt.stopPropagation();
        evt.preventDefault();
    }
}

I'd like to show popup window when click to "Export To Excel"" option:

case "Export To Excel":

The execution of program should be stopped and wait for selecting option in combo box in popup window. After selecting we click "OK" and the control of program execution is returned back to ASP.NET code. How can I do that?

Thank in advance.

Goran
Princy
Top achievements
Rank 2
 answered on 15 Feb 2013
1 answer
165 views
I have a problem with intellisense not working in the code behind for my web project.  I have uninstalled and reinstalled both Visual Studio (2012 Premium) and Telerik packages.  The activity log (/Users/{MyProfile}/AppData/Roaming/Microsoft/VisualStudio/11.0/ActivityLog.xml) shows this error:

CreateInstance failed for package [Telerik.Web.UI.VSPackage.VSPackage {plus version information}]

I have a feeling this is the cause of intellisense not working.

I'm working on a Windows 7 x64 platform with 8G of RAM.

Any help would be greatly appreciated.
Teodor
Telerik team
 answered on 15 Feb 2013
2 answers
130 views
Hey Peeps,

I'm trying to use a RadDateTimePicker to allow a user to select a date, and according to the date selected, populate the TimeView with custom time values. According to this forum, you can use the following to allocate custom time values:

RadDateTimePicker1.TimeView.CustomTimeValues = new string[] { "12,10,10,57,4", "5,6,3,38,9", "3,8,11,5,7" };

Unfortunately, with my controls (2012 Q1), there is no such property/method (CustomTimeValues) in the RadDateTimePicker or RadTimePicker. How can I go about assigning custom time values to this control?
Juan
Top achievements
Rank 1
 answered on 15 Feb 2013
2 answers
165 views
hi Telerik,

I try to call $find('<%= radPane1.ClientID %>') after page is rendered on client side javascript function, but it is always null -- can't find it. Any idea what i did wrong?

thanks,

roger
Shen Li
Top achievements
Rank 1
 answered on 15 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?