Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
518 views
Hi Telerik Guys !

Guys ! Iam using the Q2 2009 version for the ASP.NET RAD CONTROLS

I have set the SKIN property to DEFAULT for the  RAD GRID.

Im using DATA TABLE to bind it with OBJECT DATA SOURCE.

I have used  all the mentioned solution provided at your end , but all in vain.

Could you plz help me how to show up the header of the grid .

Right now , RAD GRID is behaving just like a HORIZONTAL SCROLL BAR.

Below is the code that I have been using :-
.CS File :-
//

At Page_Load :

  SearchResultsRadGrid.MasterTableView.GetColumn("RowIndicator").Display = false;

//

protected void SearchResultsRadGrid_PreRender(object sender, EventArgs e)
        {
            SearchResultsRadGrid.MasterTableView.ShowHeadersWhenNoRecords = true;
           
        }


Help !

Ajay Jamwal

atefe mohamadzade
Top achievements
Rank 1
 answered on 13 Jun 2010
1 answer
92 views
Hi,

Recently, I working on an item: I need to click a row in the RadGrid, and show details for that row (without edit & update functions). Also, when click some "edit" button, I can edit the data.

What I have now:
There is a user control in edit template with update functions already. And I build another user control with only labels in it.

What I have tried are:
Replace these 2 control by using the sample in grd different edit forms on edit and insert.
ISSUE: "RowClick" Event is not an "edit related" event, so the edit template wouldn't show. Even if I use a javascript to make the RowClick to be an "edit related" event, this will fire "Edit" Event, and show the wrong control with data in it.

What I want to try:
1. Build another user control to wrap these to control, and make some "visible" functions
2. Maybe there are some template in RadGrid I can use to show the detail information

Do you have advices for this? I believe some sample have to be right there, but I didn't find them.

Regards
Mark
Top achievements
Rank 1
 answered on 13 Jun 2010
1 answer
76 views
I want to show a RadToolTip centered in the browser window when I click on a google marker but I cannot make this happen.

Here is my vb code behind

Public Sub GMAP_OverlayClick(ByVal sender As Object, ByVal e As Reimers.Map.OverlayEventArgs) Handles GMAP.OverlayClick
        MsgBox("You have clicked on overlay " & e.Overlay.ID.ToString)
        RadToolTip1.Show()
End Sub

The msgbox shows up and that tells me that the code behind fires but the tooltip does not show

However, if I put a button outside the google map, the tooltip shows

Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        RadToolTip1.Show()
End Sub

Any hints on this would be greatly appreciated

Best Regards

Henkemota
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 12 Jun 2010
4 answers
159 views

If Telerik cannot fix the underlying bug, perhaps one could chaneg the designer to prevent  the dta entry which producs the bug..

When ever a RadNumericTextBox  has a type of Decimal, it thows the  wobbly below..
This ahs been reported amny monns ago, and is still broken..
The default of nothign or system.double works fine..


<telerik:RadNumericTextBox  id="UnitPriceCurrent"
runat="server"  Type="Currency"  width="100px" DataType="System.Decimal"  >
Line 71:                             <NumberFormat AllowRounding="False"
DecimalDigits="4" KeepNotRoundedValue="True" />
Line 72:                         </telerik:RadNumericTextBox>

Parser Error Message: Cannot create an object of type 'System.Type' from its
string representation 'System.Decimal' for the 'DataType' property.
Ray
Top achievements
Rank 1
 answered on 12 Jun 2010
1 answer
106 views
There's another thread with this topic but nobody answered.

I'm creating my contexmenu item at run time but I don't know why the event Item_click does not fire. When I add items at desing time, contextmenu works fine. The problem is when  I build my menu from DataBase. When I create my contexmenu item at run time, and clic an item of it, the page postbacks but never fire the item_Click events. 

My code

private void CreaMenuContextual(string sTipoCompromiso) 
    { 
        StringBuilder sSql = new StringBuilder(); 
        SqlCommand cmd = new SqlCommand(); 
        ClsData ObjData = new ClsData(ConfigurationManager.ConnectionStrings["MyCnnStr"].ConnectionString); 
 
 
        MenuCompromisos.DataTextField = "text_field"
        MenuCompromisos.DataValueField = "value_field"
 
        sSql.Append("   SELECT text_field, value_field"); 
        sSql.Append(" FROM TABLE"); 
         
        cmd.CommandText = sSql.ToString(); 
 
        MenuCompromisos.DataSource = ObjData.GetDataTable(cmd); 
        MenuCompromisos.DataBind(); 
 
    } 

Gilberto Anino
Top achievements
Rank 1
 answered on 11 Jun 2010
1 answer
47 views
Look at this code:
<
telerik:RadCalendar ID="RadCalendar1" runat="server" Width="280px"
    NavigationNextText="Next>" NavigationPrevText="<Prev" />
<Prev does not show. I guess "<" is a special char. Could some body show me how to make this work?

Thanks!

Joseph
 
Daniel
Telerik team
 answered on 11 Jun 2010
15 answers
1.0K+ views
Hi all,

I'm having problems exporting my radGrid to Excel.
I want to format my excel file by using the GridExportExcelMLRowCreated and GridExportExcelMLStyleCreated events.
Therefore I'm following the instructions of the demo on the telerik site:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/Exporting/DefaultCS.aspx

The first thing I don't understand is that the sample code sets the exportonlydata = true;
But when you read the description, it says that you need to set the exportonlydate = false when you want to use Excel.Format.

But if I do the following, I get an error: Object not set to an instance of an object. NullReferenceException. This is not an error in de code, but this error appears when it wants to load the excel file --> after calling the ExportToExcel() Method.

rgd.ExportSettings.Excel.Format =

GridExcelExportFormat.ExcelML;
rgd.ExportSettings.ExportOnlyData =
true;
rgd.ExportSettings.OpenInNewWindow = true;
rgd.MasterTableView.ExportToExcel();

When I set the ExportOnlyData = false, my excel file opens, but nothing appears on the worksheet. If I set OpenInNewWindow = false --> my .aspx page hangs. Nothing happens.

The second issue I have is that I've set the GridExportExcelMLRowCreated and GridExportExcelMLStyleCreated events on my radGrid, but this code is not executed. I've placed a breakpoint, but nothing happens with these events.


Can someone please help me further? A simple export succeeds or when I place the GridExcelExportFormat.HTML  as Excel.Format, everything works fine, but I'm not able to place any style on my excel export like in the example of telerik.

Thanks in advance!

Regards,
Tineke

Daniel
Telerik team
 answered on 11 Jun 2010
2 answers
104 views
Go to the Menu Overlay demo page.

Clicking on items on the menu does exactly what you'd expect; it overlays the dropdown box and the flash movie.

Now click on the dropdown to open the list. With the dropdown open, hover over the menu. The menu still overlays the dropdown control but fails to overlay the dropped down list.

I've tried this in IE8 and chrome, but YMMV.
-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 11 Jun 2010
4 answers
441 views
Telerik.WebControls.RadPanelItemCollection must have items of type 'Telerik.WebControls.RadPanelItem'. 'RadP:RadPanelBar' is of type 'Telerik.WebControls.RadPanelbar'

I added the dll to bin folder and still on aspx page it is showing error "Element Radpanelbar is not known element.."

what else I need to do?
jaws1021
Top achievements
Rank 1
 answered on 11 Jun 2010
4 answers
213 views
Hi,

I have been going through instances to populate the Grid from xml. But, my issue is I want to use the DOM model to populate the grid dynamically from Server side.
If I have a xml that looks something like this:
<Listing> 
  <Customer Name="Browning Bob" CustNumber="345" CustomerID="1" Address="123 Street1, 1 Coast, UK 89869" /> 
  <Customer Name="Williams" CustNumber="235" CustomerID="2" Address="123 Street2, Coast2, UK 89863" /> 
</Listing> 
I create an instance of xmldocument and try to load this xml into it but it says: data at root level is invalid.
Would be great if provided with sample code to use xpath + xmldom to populate the columns Name, CustNumber and Address dynamically from server side. Also, Please suggest, how to get paging controlled.
smith spd
Top achievements
Rank 1
 answered on 11 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?