How to disable sorting in Movilizer table Columns - movilizer

In Movilizer how to disable Table columns sorting.
below is my table screen template
<question title="Preferrable Colors" type="9" key="#1">
<answer nextQuestionKey="END" key=**"#1_1"** position="0">
<text>DNO</text>
</answer>
<answer nextQuestionKey="END" key=**"#1_2"** position="1">
<text>Department</text>
</answer>
<answer nextQuestionKey="END" key=**"#1_3"** position="2">
<text>Location</text>
</answer>
</question>
Please share

You need to implement the attribute colSortable="false" in the answer tag.

Related

Getting the q-item-label text

I have this code using Quasar/VueJS. What I want to do is update the dropdown text label (keyDropDownLabel) based on the selected <q-item-label>.
So in this example below, I want the newLabelGoesHere part to be Key 1/2/3, depending on which was clicked.
<q-btn-dropdown stretch flat :label="keyDropDownLabel">
<q-list>
<q-item v-for="n in 3" :key="`x.${n}`" clickable v-close-popup tabindex="0">
<q-item-section #click="keyDropDownLabel = 'newLabelGoesHere'">
<q-item-label>Key {{ n }}</q-item-label>
<q-item-label caption>1234567890</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
Anyone help please??
Just modify the q-item-section click method like below:
<q-item-section #click="keyDropDownLabel('Key'+n)">

xpages dojo text area binding to a dialog list field

I have a Dojo Text Area control binding to a field from a form, the field is a Dialog list which uses a simple #DBColumn formula:
_view := "vwAuthor";
#Unique ( #DbColumn( "" : "NoCache" ; #DbName ; _view ; 1 ) )
I have saved one doc. with the Dojo text area control = Name1, but when I create another new doc. is there any chance to have that "auto-refresh" from Clasic Lotus Notes so that When I just type N the Name1 should be displayed?
Thanks for your time!
Create instead of the value picker for your Dojo Text Area a dialog box with an input text field with type ahead.
Feed the type ahead with the first column of your view "vwAuthor":
<xp:inputText
...>
<xp:typeAhead
mode="full"
minChars="1">
<xp:this.valueList><![CDATA[#{javascript:
#Unique(#DbColumn("", "vwAuthor", 1))
}]]></xp:this.valueList>
</xp:typeAhead>
</xp:inputText>
A text area by default does not offer any data entry assistance. Switch to a regular input box and use the type-ahead support build into XPages. Check the basic workshop, especially Exercise 7.

Radgrid inside editform settings

I have a radgrid inside the edit form.I am binding the radgrid on the itemdatabound.
int id= Convert.ToInt32(editForm.GetDataKeyValue("ID").ToString());
RadGrid SummaryGrid = (RadGrid)item.FindControl("SummaryGrid");
SummaryGrid.DataSource = spObj.Sp_GetProjectDetails(id);
SummaryGrid.Visible = true;
SummaryGrid.Enabled = true;
SummaryGrid.DataBind();
The problem is I am able to edit only the last row in the grid.I m able to see the data binding to the inner grid for the last row.For all other rows I get the below error.
"There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource."
My grid inside edit:
<telerik:RadGrid ID="SummaryGrid" runat="server" AllowPaging="True" PageSize="50" AutoGenerateColumns="true" Visible="true"
AllowMultiRowSelection="true" AllowSorting="true" Skin="Hay" Width ="500px" >
<MasterTableView DataKeyNames="ProjectID" CommandItemDisplay="Top" TableLayout="Fixed" Caption ="Position-Specific Network + Activity Code Totals" Font-Bold="true" Font-Size="Small" Font-Names ="Ericsson Capital TT" >
<PagerStyle Mode="NumericPages" Position="Top"></PagerStyle>
<CommandItemSettings ShowAddNewRecordButton="false"/>
</MasterTableView></telerik:RadGrid>
</telerik:RadAjaxPanel>
This issue is blocking the development.can some one suggest any help on this?Any help/ideas highly appreciated.
Thanks
int id= Convert.ToInt32(editForm.GetDataKeyValue("ID").ToString());
This should be using ProjectID instead of ID. ID is not a data key that you've specified in your MasterTableView.

How to get row id with Dojo dataGrid

I'm using dojo dataGrid, and i need to get the row id.
When i use the "rowIndex" event, i get the "id" of the row, but, if i sort the grid, the data keeps another value in the row "id".
Can someone tell me how to solve this problem ? Thanks
Do you need the row of the grid when selected? Why do you need the row id? Usually I find if I let dojo handle row and data sorting for me and just pull in the selected item when I need it I'm better off.
e.g.
function onSelectedGridParm(nRow){
var objGridParm = dijit.byId("gridParm");
var item = objGridParm.getItem(nRow);
// single select - use an array here for multi select
// and remove in onDeselect
_selectedVariable = item;
fnEnableButton( "VariableEdit" );
fnEnableButton( "VariableDelete" );
}
....
<div id="gridParm" dojoType="dojox.grid.DataGrid"
style="width: 100%; height: 550px;"
structure="layoutVariables"
selectionMode="single"
noDataMessage="No Data Found with current filters"
onSelected="onSelectedGridParm"
onDeselected="onDeselectedGridParm"
rowsPerPage="50"
>
</div>

How to make WPF ComboBox default selection to blank

I have an enum like:
enum Gender
{
Male = 1,
Female = 2
}
Then I have a Combobox binding to a list of Gender.
<ComboBox ItemSource = 'Binding GenderList, Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged'
SelectItem = 'Binding SelectedGender' />
When user opens the view, how can I make ComboBox selection default to blank? Then after user made a selection, the blank selection is removed from the ComboBox source.
Thanks
Thanks all the replies. I fixed my problem by manully assigning the selected item to null.
What you are describing is the default behavior of the ComboBox. You don't need to do anything (except for correct the typos in your XAML. It should look like:
<ComboBox ItemsSource="{Binding GenderList}" SelectedItem="{Binding Path=SelectedGender}" ></ComboBox>

Resources