I want to use SfCalendar from Syncfusion's pack with multiselect mode for WP8.1 project, but it doesn't work.
I can see the calendar. If I tap to any date, it selects, but SelectedDates has 0 elements, SelectionChanged event reports RemovedItems = 1 and this item is null. Also I can't select multiple items: if I tap to other date, it selects, but previous date deselecting.
<input:SfCalendar SelectionMode="Multiple" SelectedDates="{Binding TestDates, Mode=TwoWay}"
SelectionChanged="SfCalendar_OnSelectionChanged"/>
Related
When I select an item in datatable with editMode="cell" (e.g. inputText , selectOneMenu) only that specific component is selected which is normal, but I want to select to whole row when I click on it, not just the component.
my problem is kind of UI related, there are specific areas on the row when you click on, the whole row gets selected, but when you click on the component in the row, only that component gets selected not the row and if you're collecting the object in backing bean, you don't have that row object.
You can use the clientId from AjaxBehaviorEvent to get the index of the data.
ClientId is look like this
form:feeTbl:0:j_idt49
0 is the index. To get the index, you need to split it.
I'm using Report Builder 2012 to create a report. I have inserted multiple text boxes and other controls inside a list box so that I can hide all the controls at once just by hiding the list box. I'm using a SQL Server stored procedure to fetch rows of data. I'm using below expression to hide/show the list box.
=iif(Fields!certificateType.Value = "CT", False, True)
It works fine but it only checks the first row of data. If certificateType field is "CT" in the first row of data, it shows the list box but it doesn't hide the list box back for the next row of data in which certificateType is not "CT". It seems like list box visibility only checks the first row of data and applies it for all the other rows as well. How can i check the visibility of list for all the data rows?
Okay, based on our chat I have updated this solution.
I mocked up some data that looks like this:
certificateType
---------------
AT
BT
CT
DT
ZT
I created a quick and dirty report with a list. In that, I added a rectangle with a textbox in it. I set the dataset for the list to the main dataset (DataSet1 in my case). I set the expression for the textbox to this:
=Fields!certificateType.Value
Image in design mode:
I clicked on the list, and in the Row Groups pane, I right-clicked the Details rows, and chose Group Properties. On the General section, I clicked Add to add a new group expression. Then I chose certificateType from the dropdown.
I moved to the Page Break section of the Group Properties dialog and ticked the Between each instance of a group check box. Click OK.
Now, the report will break for each instance of a certificate type that comes in the dataset. So, if you have ten different cert types in the data, you will get one page for each.
You can't see it in my image below, but there are 5 pages now.
Hope this helps!!
I have three product
like brand-1, brand-2, brand-3,
I want to setup in custom option like this.
if select brand-1 so second selection option visible liquid,
if select brand-2 so second selection option visible capsule,
if select brand-3 so second selection option visible tablet,
How to set this type of values please give me full information.
I have a Form that has a continous subformcontining a few fields, important to this question is an ID field which is unique text and a due date field. Right not the form loads all records and they are sorted by the ID field by the OrderBy property of the subform, not the query.
In the parent form I have headers for each column and a toggle button to sort activate and deactivate sorting by due date. Right now the form loads sorted by ID and when the toggle button is clicked it sorts by date as I want it to. But when the toggle button is clicked again, deactivating it, the form retains its sort by date.
Here is the code I currently have behind the toggle button:
Private Sub tglSortDueDate_Click()
If Me.tglSortDueDate = True Then
Me.sbfrmFindRecords.Form.OrderBy = "DueDate, ID"
Me.OrderByOn = True
Else
Me.sbfrmFindRecords.Form.OrderBy = "ID"
Me.OrderByOn = True
End If
Me.sbfrmFindRecords.Requery
End Sub
Is this possible or should I instead change the record source to switch between 2 queries with different sorts based on my record source table?
Thanks in advance
I ended up taking a different approach, rather than sort on the form side I instead made 2 queries with the 2 diffent sorts based on the source query. I then switch between the 2 queries when the button is toggled.
I'm getting this exception whenever i try to access m list picker control in my app.
+ this {App_name.App} App_name.App
+ sender {App_name.App} object {App_name.App}
- e {System.Windows.ApplicationUnhandledExceptionEventArgs} System.Windows.ApplicationUnhandledExceptionEventArgs
+ base {System.Windows.ApplicationUnhandledExceptionEventArgs} System.EventArgs {System.Windows.ApplicationUnhandledExceptionEventArgs}
+ ExceptionObject {System.ArgumentException: Value does not fall within the expected range.} System.Exception {System.ArgumentException}
Handled false bool
+ Non-Public members
Code for my list picker is
<ListBox Margin="0,417,0,0">
<ListBoxItem>
<toolkit:ListPicker Name="LearnerFileChooser" Width="431" >
<toolkit:ListPickerItem Content="A" />
<toolkit:ListPickerItem Content="B" />
<toolkit:ListPickerItem Content="C" />
<toolkit:ListPickerItem Content="E" />
<toolkit:ListPickerItem Content="F" />
<toolkit:ListPickerItem Content="G" />
<toolkit:ListPickerItem Content="H" />
</toolkit:ListPicker>
</ListBoxItem>
If i reduce the no. of items to 4 then it works properly but it crashes on more then 4 items.
I'm trying to create a list of alphabets from which user can choose.
It's a known issue.
You must bind the items to be able to use more than 5.
Explanation on Codeplex:
ListPicker as an ItemsControl, gets its Items property set to a list
of ListPickerItems in your example. ListPickerItems are UIElements,
and the ListPicker renders them in its presenter. When there are 5 or
less items, the expanded mode opens on the current page, and you can
see all the items in the presenter.
But when 6 or more items are present, opening the list picker goes to
full mode which opens a new page. This new page has a listbox, which
gets its items property set to the listpicker's items. This is where
it breaks. By setting the listbox's items to the listpicker's items
(in this case a list of listpickeritems), the listbox will put those
UIElements into its view. Now a single listboxitem is included in two
places on the visual tree.
Because of this issue, ListPicker only supports databinding and
templating. DO NOT set the ListPicker's items to specific UIElements.