Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views
Overview of the Implementation

We are using the RadGrid extensively. And we had few common functionalities to be implemnted for each grid. That's the reason, we inherited RadGrid. We as well are overriding,
    OnInit, 
    OnItemCreated
    OnItemDataBound
    OnSortCommand

    OnRowSelect

for our own needs. But it is always ensured that the base function's for the overriden function is always called.
Also, for our purposes we have inherited, the GridBoundColumn as well as
GridHyperLinkColumn.

PROBLEM:

SCENARIO: EXCELML
The Export Format is set to ExcelML. and the code written for it is:

grid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
grid.ExportSettings.ExportOnlyData = true;
grid.ExportSettings.IgnorePaging = true;
grid.ExportSettings.OpenInNewWindow = true;
grid.MasterTableView.ExportToExcel();


The Export functionality is able to export the Hypelink Columns but, it fails to expport the GridBound Columns. So essentially we are just getting one column exported in excel, which tends to be the Hyperlink Column.

SCENARIO: HTML

//grid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
grid.ExportSettings.ExportOnlyData = true;
grid.ExportSettings.IgnorePaging = true;
grid.ExportSettings.OpenInNewWindow = true;
grid.MasterTableView.ExportToExcel();


Now the Export functionality is able to export all but the Hypelink Columns. So essentially we are just getting all the column exported in excel, ,other than the Hyperlink one.

When we use the trick provided in
RadGrid for ASP.NET AJAX Q2 2008
Exporting tips and tricks

We were able get all the columns exported in excel in Html Format.
But we would like to have it in pure Excel format.

Any help to resolve the issue would be greatly appreciated.
Thanks
Rosen
Telerik team
 answered on 20 Oct 2008
1 answer
95 views
Can u pls advise me how to display the rad alert window on certain condition (VB-codebehind)

For EX:

If

 

LstCPVStatus.SelectedValue = 0 Then
MsgBox1.alert("Select CPV Status") // this is some third pary control
Exit Sub
End If

Similaryly i need to use the radalert on this condition.How can i display with the above alert  msg ..

thanks & regards

 

Georgi Tunev
Telerik team
 answered on 20 Oct 2008
1 answer
34 views
I have a grid, some textboxes underneath for input and a search button.

When the search button is pressed a stored procedure is activated to use parameters from the input boxes to search the grid for the matching value.

However it only seems to work when all the fields are not null oterwise the grid collapses.

It works fine when testing the query from 'Configure data source' so the issue is with how I've coded the radgrid.

Can I somehow tell it to accept some null parameters?
Yavor
Telerik team
 answered on 20 Oct 2008
6 answers
343 views

Hi,
  I have an ASPX page which has a RadMenu and a RadWindowManager with a window defined in it as follows:

<telerik:RadWindowManager ID="_MasterRadWindowManager1" runat="server" ReloadOnShow="true" DestroyOnClose="false">  
    <Windows> 
        <telerik:RadWindow runat="server" NavigateUrl="~/ModalPage.aspx" Modal="true" 
            ID="_NewsWindow" Width="800" Height="500" Behavior="Close" DestroyOnClose="false" 
            ReloadOnShow="true" VisibleTitlebar="true" VisibleStatusbar="true" VisibleOnPageLoad="true" /> 
    </Windows> 
</telerik:RadWindowManager> 
 
<telerik:RadMenu ID="RadMenu3" runat="server">  
    <Items> 
        <telerik:RadMenuItem runat="server" Text="MenuItem1" NavigateUrl="~/MenuItem1.aspx" style="z-index:-1;" /> 
        <telerik:RadMenuItem runat="server" Text="MenuItem2" NavigateUrl="~/MenuItem2.aspx" style="z-index:-1;"/>  
        <telerik:RadMenuItem runat="server" Text="MenuItem3" NavigateUrl="~/MenuItem3.aspx" style="z-index:-1;"/>  
    </Items> 
</telerik:RadMenu> 
 

When the page loads, the window pops up correctly, however the menu items are still clikable.  I added a <a> and <div onclick="..."> to the page and both of these are disabled as i would expect, but the RadMenuItems are not disabled.

Any help would be much appreciated!
Thanks!
Georgi Tunev
Telerik team
 answered on 20 Oct 2008
1 answer
103 views
I have a grid with two template image buttons.  I register both on the Grid_ItemCreated event so that they will do a postback.  On the first page of the grid the postbacks work fine.  When I page to the second or third page of the grid the buttons will no longer postback.

The grid and the rest of the page use an Ajaxmanager control.  If I use an AjaxPanel around the whole page instead of the AjaxManager it works fine.  How do I go about getting a button in a grid templatecolumn to do a postback when the grid page has changed?

Using an AjaxPanel around the whole page is not effecient.

Thanks


Sebastian
Telerik team
 answered on 20 Oct 2008
1 answer
59 views
Hi,

I am using latest RadControls  for ASP.NET AJAX (Telerik.Web.UI.dll)
My custom skin is not picked. Pelase suggest how should I approach this issue?

We have been using older versions as well RadGrid from (RadGrid.Net2.dll) and setting RadControlsDir="~/RadControls/" works. It picks our custom skin.

Can I not point Telerik.Web.UI.RadGrid to pick the same skin?
I have also set EnableEmbeddedSkins="false".


Thanks.
Dimo
Telerik team
 answered on 20 Oct 2008
4 answers
145 views
Hello.

I have made a small script that controls the visibility of columns, client side.

To write out columns that should be hidden by default, I set the property Display to false. (As opposed to when Visible is false, where the column wouldn't get rendered at all).

When I choose to display a column, hidden by default, so that the total amount of columns is larger than it was when the page was loaded, one column sticks out, beyond the header and footer.

I find that this is because the colSpan of the header and footer rows' cell, is set to the amount of visible columns during load, and not the total amount of columns in the grid.

Is there a workaround for this?
Sebastian
Telerik team
 answered on 20 Oct 2008
4 answers
169 views
Hi,

    I am facing a problem when i am working with radgrid checkbox column. When i checked the check box in comes into editmode, but when unchecked the column it not comes out from edit mode and checkbox remains in checked form.

plzz help me out.....

tks in advance.....

here is the code which i used...
protected void grdSearchResult_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            CheckBox chkbox = (e.Item as GridDataItem)["clmSelect"].Controls[0] as CheckBox;
            GridDataItem item = e.Item as GridDataItem;
            chkbox.Attributes.Add("onclick", "RowDblClick(" + item.ItemIndex + "," + chkbox.ClientID + ")");
            chkbox.Enabled = true;

        }
}
  protected void grdSearchResult_PreRender(object sender, EventArgs e)
    {
        if (!IsPostBack)
            return;

      if (!IsPostBack)
            return;

        foreach (GridItem item in grdSearchResult.MasterTableView.Items)
        {
            CheckBox chkbox = (item as            GridEditableItem)["clmSelect"].Controls[0] as CheckBox;
          if ((item is GridEditableItem) && (item.IsInEditMode))
            {               
                chkbox.Checked = true;
            }
        }
    }

On Client Side :
function onCheckClick(itemIndex, checkbox) {

                if (checkbox.checked == true) {
                   $find("<%= grdSearchResult.ClientID %>").get_masterTableView().editItem(itemIndex);
                }
                else {
                    $find("<%= grdSearchResult.ClientID %>").get_masterTableView().updateItem(itemIndex);
                  
                }
            }
Yogi
Top achievements
Rank 1
 answered on 20 Oct 2008
1 answer
207 views

Hi,

I am using the OnItemClick event of the RadMenu to perform some action in the server side like

OnItemClick

 

="cmbLanguage1_ItemClick"


This is working fine in Internet explorer but in Mozilla FireFox the event itself is not getting fired.

Is there any way by which I can fire the server side event cmbLanguage1_ItemClick on clicking a menu item.


Regards,
Avik

Shinu
Top achievements
Rank 2
 answered on 20 Oct 2008
1 answer
106 views
For example:
I have three appointments called "A" and one appointment called "X". All appointments start in one day and at one time. I would want that in scheduler displayed at the top of a cell event "X".
Peter
Telerik team
 answered on 20 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?