telerik

Telerik OpenAccess and multiple conditions in the where clause

老子叫甜甜 提交于 2019-12-11 04:46:40
问题 I have just written a few unit tests and to my horror it failed. Here is my test... [TestMethod] public void FetchWithMoreThanOneConditionUsingKnownTypes() { using (var scope = EntityObjectScopeProvider.GetNewObjectScope()) { var temp = new TempClient() { FirstName = "Rohan", Surname = "West" }; var entity = scope.Extent<ClientEntity>().Where(c => temp.FirstName == c.FirstName && temp.Surname == c.Surname).FirstOrDefault(); Assert.IsNotNull(entity); Assert.AreEqual(entity.FirstName, temp

Calculate month different using radMonthYearPicker

最后都变了- 提交于 2019-12-11 04:34:06
问题 I have 2 radMonthYearPicker(1 is for start Date another 1 is for end Date) I want to calculate the month different between this 2 date. for my start Date, I set my month as dec and year 2012. for my end Date, I set my month as dec and year 2013 Base on this 2 RadMonthYearPicker, the month apart should be 12 month The only code I can find out is RadMonthYearPicker.selectedDate P.S. I was not allow to upload image file due to lack of repulation point 回答1: int monthsApart = 12 * (startDate.Year

Kendo Grid - Filter Row as kendoDropDown

喜欢而已 提交于 2019-12-11 04:14:59
问题 After posting question as answer here, I correct this by creating new question. I'm trying to create row filter in kendo grid to appear as DropDown of possible values in that column. So far, closest I got is Pluc's example in linked question. Still it doesn't work as intended. In columns of kendoGrid I defined a field like this: { field: "Herkunft", title: "Herkunft", width: "120px", type: "string", filterable: { cell: { showOperators: false, template: herkunftDropDownEditor } } } This is

Finding records in RadGrid Telerik with pagination

混江龙づ霸主 提交于 2019-12-11 04:06:29
问题 How is it possible to find given record by key in the radGrid when pagination is enabled ? After insert of an element I would like to select new row that why I need this functionality. thanks for any help 回答1: One way is to disable paging, then make a Rebind , then iterate through all the items, find the page the item should be in and then enable paging. The other way is to make separate Rebind per page, like this: int count = RadGrid1.MasterTableView.PageCount; for (int i = 0; i < count; i++

show dynamically selected columns in asp.net mvc grid at runtime

寵の児 提交于 2019-12-11 03:57:35
问题 I have an asp.net MVC application where I am using telerik grid to show the data/records.I am using the Entity Model. My requirement is that sometime I want to show only some of the columns specified at the runtime/may the user select. How do I bind View with only those columns as selected by the user . Initially view is binded with Model class with all columns . Is there any other way other than telerik to show the customized columns as selected by the user then it will be also OK . 回答1: You

Multi-Color Line

早过忘川 提交于 2019-12-11 03:48:22
问题 In the data, there is a object property called clr which is actually contains color information of corresponding object. I would like to draw a single line with multiple colors. However so far, I could not able to make it work. Here is a small sample of my dataset. {x: 11,y: 599,k: 500,clr:'blue'}, { x: 6,y: 699,k: 800,clr:'yellow'} Here is the code sample which I had expected to work: series: [{data: mydata,color: mydata.clr}], http://jsfiddle.net/epvg86qu/19/ 回答1: As mentioned here, the

Telerik RadGrid - How do I set default data on insert?

筅森魡賤 提交于 2019-12-11 03:24:29
问题 When I click on the add record button I want one of my columns to have a default value in it. How do I do this in the code behind? It is a dynamic date and can change all the time? 回答1: If the column is not a GridTemplateColumn , you can specify a default value using the column's DefaultInsertValue property, like this: <telerik:GridBoundColumn DefaultInsertValue="12/21/2012" DataType="System.DateTime" DataField="Column1" UniqueName="Column1"></telerik:GridBoundColumn> Otherwise, if it is a

Detecting Drop down with Selenium WebDriver

我与影子孤独终老i 提交于 2019-12-11 03:19:31
问题 http://i.stack.imgur.com/L4WUv.jpg Link to Grid I'm trying to detect the different drop downs on this page (depicted by the filters by the text boxes). The problem i'm having is that it seems that the filters all have the same ids. I can get the webdriver to find the initial filter button but not target the options in the drop down. Note the filters I'm talking about are the ones from the funnel buttons. For example contains, isEqual, between etc * This is wrong but an example it('Should

What is the best invisible character can I use to replace  ?

☆樱花仙子☆ 提交于 2019-12-11 02:28:47
问题 I use some telerik report to print some report. I need to use Telerik.Reporting.TextBox to print labels. Some labels are stock in .txt files, like " Apple". When I see a label with spaces, it means I have to indent it in the report, so in the TextBox. The thing is when we export the report in pdf, we have the indentation, but not when we see in the browser. If I replace the spaces by "& nbsp;", we see the indentation in the browser, but when exporting to pdf, we see the "& nbsp;". One way to

Horizontal scroll whitespace in the bottom of the RadGrid

别说谁变了你拦得住时间么 提交于 2019-12-11 02:18:47
问题 I am retrieving data from database using RadGrid. I have more columns in my RadGrid, so I need to show RadGrid horizontal scroll to keep the page from expanding but disable the vertical scroll so height of the grid should expand to always display all rows in the grid. I got the result but there is whitespace in the bottom of the RadGrid. My UI of the RadGrid: <table style="table-layout: fixed;" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td> <telerik:RadGrid ID="RadGrid1"