Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
166 views
I have a date field in a RadGrid called, "DueDate".  I would like to make sure the user does not enter invalid data into the filter.  To contemplate matters, this date field may not always be present.  I may set the DueDate to an empty string in the grid ItemDataBound event depending on business rules.  So, the Due Date in the grid may be a valid date or an empty string.

Does anyone know how I can check the filter after the user clicks a filterig menu option so I can throw an error before the grid tries to rebind the data?
Dexter McCloud
Top achievements
Rank 1
 answered on 19 Feb 2010
0 answers
92 views
When I walk thru the items passed to grid_ItemCreated I see the following items
  • GridCommandItem
  • GridPagerItem
  • GridHeaderItem
  • GridFilteringItem
  • GridDataItem
  • GridEditFormItem
  • GridFooterItem
  • GridCommandItem
  • GridPagerItem

Which I have had fun using to customize the grid by adding attributes.  In the output I see:
  <colgroup>
    <col  />
    <col  />
    <col  />
    <col  />
    <col  />
  </colgroup>

But there appears to be no associated item that I may use to add attributes to these items, i,e,

void grid_ItemCreated(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridColGroupItem)  
            {  
                GridColGroupItem headItem = e.Item as GridColGroupItem;  
         
 
Thanks!
Ken Lassesen
Top achievements
Rank 2
 asked on 19 Feb 2010
2 answers
186 views
Is it possible to have vertical column headers in RadGrid?
Please refer attached snapshot.
Lee Malo
Top achievements
Rank 1
 answered on 19 Feb 2010
2 answers
198 views
I'm using 2009.3.1314 and I have started getting exceptions from the Microsoft AJAX incporated into the control when I try to filter on a column containing numbers.  The column setup in the aspx:
<telerik:GridBoundColumn DataField = "PRICE" 
    HeaderText = "PRICE" 
    HeaderTooltip = "AMDF Price of new item"   
    DataType="System.Int32"    
    EmptyDataText="No Data" 
    FilterListOptions="VaryByDataType" 
    FilterImageToolTip="Use numbers only with filter!"   
    ItemStyle-HorizontalAlign = "Right"    
    EditFormColumnIndex = "2" 
    UniqueName = "price" 
    DataFormatString = "{0:c0}">  
</telerik:GridBoundColumn> 
 
And when I insert a number in the filter textbox and select, say, "Greater Than," the following error occurs:
A Runtime Error has occurred.  
 
Line 6  
Error:Sys.Webforms.PageRequestManagerServerErrorException:  
Specified cast is not valid. 
Line 6 is the function:
/* START MicrosoftAjax.js */  
//----------------------------------------------------------  
// Copyright (C) Microsoft Corporation. All rights reserved.  
//----------------------------------------------------------  
// MicrosoftAjax.js  
Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){  
 // 60,000 characters of code  
}  
Assertion Failed: {0}","invalidOperation":"Operation is not valid due to the current state of the object.","breakIntoDebugger":"{0}\r\n\r\nBreak into debugger?"};  
/* END MicrosoftAjax.js */ 

Is this a bug?

Cheers!
Mark
Mark Galbreath
Top achievements
Rank 2
 answered on 19 Feb 2010
1 answer
113 views
Okay I have a couple questions, please dont be afraid to tell me its not possible or if you have a solution please let me know.  I am trying to prototype this site, fast so I can propose it to managment, get funding for your controls and embark on a larger project.  However I need to cross this bridge first, and before my trial runs out.

First:
I have a User control which consists of a RadMenu (loaded from a database), and 2 RadComboBoxes.

I then put this control in my master page. So that it would be formatted the same on every page, would keep a consistent look and feel, and above all limit my over head on changes.
 
So that is the contents of the master page, on the actual pages I have a grid and a couple graphs.  Which are date sensitive.  (the 2 RadComboBoxes are for date types)  So as the dates are changed in the drop down I wanted to change the data binding of the grid and the charts. 

The first drop down is  ('Year', 'Week', 'Month', 'Quarter') and the second drop down is the valid data ranges based on the first drop down.  Using this example it works great!  
      http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

However, I want the 2nd Drop Down to relate to the grid, which because of the user control and master page it is hidden.  I can access it programatically and obtain the values, however because of the AJax the selected value of the second drop down never changes.  It stays the selected value at page load.  I know this might just me failure on my part to be an Ajax guru,  but I was hoping to get some ideas or help on how to do this efficently.  I mean i can code it all and it works fine,  I was just trying to leverage the funtionality of your controls so I can create a better app, and postback a little less,  as I dont think its need that much for the data that I am trying to display.



Second:
  In my RadMenu I have a Heading Export.  I was trying to have the menuItem when selected export the grid and the chart images.  Again I have this working when I click a button, I was just trying to add this to the RadMenu as it will be used on 30 or so pages with the same functionality,  just differnt SQL.  I can not see how to pass the value of the radgrid properly so that the eport function could be called.  Or is there a way to leverage the export feature ouside of a control, and pass it the SQL? 




I technicly could just put my user control code in the master page and remove one layer, however I am still drawing blanks on how to past postback or an ajax request across the child/master page barrier and have the data line up accruatly.  I mean the export buttons should be able to be dynamically changed to point to the child control on the page and execute its export feature, and the drop downs should be able to cause the grids and charts to change, I just cant seem to wrap my head around how to tackle this appropriatly.  Any help or ideas would be greatluy appreciated.  Let me know if more data is needed too.

Thanks for your time!!!
  

Dimitar Milushev
Telerik team
 answered on 19 Feb 2010
3 answers
81 views
When we first open the Calendar, the radtooltips come up fine.  When we move to another week, they stop working.  We are following the example in /Scheduler/RadToolTip/

Our version is 2008.02.1001.20

How do we resolve this?
vincent
Top achievements
Rank 1
 answered on 19 Feb 2010
2 answers
91 views
Hi

when i try to create a new Radcontrols vb.net web site from telerik menu i got this error
Error this Template attempted load an untrusted.....
you can see the picture for all message
i hope you help me
mshooot
Top achievements
Rank 1
 answered on 19 Feb 2010
2 answers
125 views

Ok I am having some very odd behavior.

For one when running a site wiht telerik controls in firefox I don't get the skin, and none of my buttons that cause a rad window to pop up work.  They work finr in IE.

 

The other issue is in IE everything works great untill you hit the refresh button.  If you hit the refresh button you get the same behavior as Firefox, rad windows won't work, don't get skins.  But if you expand or collapse a grid group you get th eskins and the rad windows work again.  but instead of having the nice clean url

http://gofilepointtest.fairviewinvest.com/chesapeake

you get

http://gofilepointtest.fairviewinvest.com/documentlist.aspx?fund=chesapeake

 Everything works fine with out using the rewrite.

More info when I hit the error in ie I get 'Sys' is undefined
don't seem to get an error in firefox

Eric Klein
Top achievements
Rank 1
 answered on 19 Feb 2010
1 answer
224 views
I have searched and surprisingly couldn't find any match on this topic.  I want my ordered list to start from a specific number and couldn't find any bullet list wizard tool to do it like in Adobe Indesign.

Thanks.
Rumen
Telerik team
 answered on 19 Feb 2010
2 answers
98 views

Hello.

 

I have a problem with a view and openaccess, i have 3 fields to return for build  a multicolumn radcombobox, in the examples for create multicolumn radcombo typed the following:

e.Item.Text = (DirectCast(e.Item.DataItem, DataRowView))("Field1").ToString() + _
                "; " + (DirectCast(e.Item.DataItem, DataRowView))("Field2").ToString() + _
                "; " + (DirectCast(e.Item.DataItem, DataRowView))("Field3").ToString()

Now to create a RadCombo with OpenAccess I've typed the following,

e.Item.Text = (DirectCast(e.Item.DataItem, TelerikORM.Mivista).Field1).ToString() + _
 " - " + (DirectCast(e.Item.DataItem, TelerikORM.Mivista).Field2).ToString() + _
 " - " + (DirectCast(e.Item.DataItem, TelerikORM.Mivista).Field3).ToString()

and the problem is that when I run the form displays all records repeated with data from the last returned in the query, the number of records that is well add, delete and the number of records is OK, but the description is the only is the last record that casts the query OpenAccess.
As if to create the records only reads the last record is of the number of records resulting in the query.

 

thanks for the Colaboration

Alex Alfonso
Bogotá - Colombia

Simon
Telerik team
 answered on 19 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?