Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
107 views
(This is probably silly.)  

I was looking at refreshing the screen in Javascript.  I've not used that reload command before.  I put the following button on my screen.

<telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="False" Text="test" OnClientClicked="window.location.reload(true)">
                             </telerik:RadButton>

Now it looks like that OnClientClicked is continuously firing. 
Slav
Telerik team
 answered on 15 Feb 2013
3 answers
304 views

Hi,
Can you please let me know the way to set the alternate row styling for telerik radcombobox ?

I saw following thread which suggest using databound and setting the classes. I would want it to default it via Skin or some other way so that I don't have to worry about writing these lines of code for each and every combobox.

http://www.telerik.com/community/forums/aspnet-ajax/combobox/creating-alternate-row-background-colors.aspx


Thanks,
Manisha
Boyan Dimitrov
Telerik team
 answered on 15 Feb 2013
1 answer
116 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
201 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
127 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
300 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
366 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
420 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
155 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
162 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?