Hi All
I could do with getting some other thoughts on something that I am working on.
I am reworking my application to be as dry as possible. I want to have a data service that can return some data that can be consumed by the drop downs. I do not want to use entity framework or similar for this. I just want to have away to have one data source file that depending on the request will provide the relevant set of data.
I will secure it by way of checking the session variables that are in the main application so that only logged in users will have access to the data.
Keeping it simple lets say that I have 3 drop downs Client, Portfolio and Development and they are related to each other in the order shown.
When displaying the Client I will get data from datasource.svc/?src=client
Portfolio will be datasource.svc?src=portfolio&client=1
and unsuprisingly development will be datasource.svc?src=development&portfolio=5
What would be the most advisible technology to use for this type of approach? I have already decided that I want to separate the datasource from the aspx file so that I could potentially switch to Kendo or even use these datasources for a mobile app.
Thanks for any pointers,
Jon
Hi,
I have a RadGrid inside a AjaxPanel. On View Click, am hiding the grid and showing another div. I have back button inside that div and on click of that, am showing the grid back. But when showing the grid, the add new record is not showing up. Tried setting the ShowAddNewRecordButton to true while changing the visibility of the grid. Still it is not showing up. Any pointers why is the add record button is not showing ?
<div id="div1">
<asp:Button ID="BackButton" Text="Back"runat="server" OnClick="BackButton_Click" />
</div>
<div id="div2">
<telerik:RadGrid ID="Grid"
runat="server"
AllowSorting="True"
AllowPaging="True"
ShowFooter="True"
ShowStatusBar="True"
AutoGenerateColumns="False"
AllowAutomaticDeletes="True"
AllowAutomaticInserts="True"
AllowAutomaticUpdates="True"
OnInsertCommand="Grid_CreateCommand"
OnUpdateCommand="Grid_UpdateCommand"
OnNeedDataSource="Grid_NeedDataSource"
OnItemDataBound="Grid_ItemDataBound"
OnItemCreated="Grid_ItemCreated"
OnItemCommand="Grid_ItemCommand" >
<MasterTableView EditMode="EditForms" DataKeyNames="RecordID" CommandItemDisplay="Top">
<Columns>
<telerik:GridButtonColumn ButtonType="LinkButton" Text="View" CommandName="View" UniqueName="View" />
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="Edit" />
<telerik:GridBoundColumn UniqueName="Date" HeaderText="Date" DataField="Date" DataFormatString="{0:MM/dd/yyyy}"/>
<telerik:GridBoundColumn UniqueName="Type" HeaderText="Code" DataField="Type"/>
</Columns>
<CommandItemSettings AddNewRecordText="Add New Record" />
<EditFormSettings
InsertCaption="Add New Record"
CaptionFormatString="Edit Record"
PopUpSettings-Modal="true"
EditFormType="WebUserControl"
UserControlName="~/EditDetailUserControl.ascx">
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<ClientEvents OnCommand="RaiseCommand" />
</ClientSettings>
</telerik:RadGrid>
<div>
Hi,
I would like to have Items display one on top, one on bottom, and so forth... for better readability, is possible?
Boris
Hi,
I am using Radeditor and markdown.js for saving the rad editor value in markdown mode. When I try to convert markdown values in HTML mode then some of the scenario are breaking while conversion.
1. When bullets/Numbers are entered in the text
2. When underlined the text
Below is the method which I am using
markdown.toHTML(content, 'Maruku');
Thanks in advance.
I am using adRotator (Q2 2016 controls) to randomly display header images on a website with fade transition. So far so good, but now I would like to have a text title on a layer above the rotator so that the title remains fixed while the images change behind it.
Can you suggest a browser-independent way approach to achieve this?
Thanks for any suggestions!
Clive
Hello,
My grid is saving the old value for New Topic Number. Please assist.
<
telerik:RadGrid
ID
=
"gridApprovedTopics"
runat
=
"server"
GridLines
=
"None"
DataSourceID
=
"dsApprovedTopics"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
Skin
=
"WebBlue"
AllowAutomaticUpdates
=
"True"
OnItemCommand
=
"gridApprovedTopics_ItemCommand"
>
<
HeaderContextMenu
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
/>
</
HeaderContextMenu
>
<
MasterTableView
CommandItemDisplay
=
"Top"
DataKeyNames
=
"Old_Topic_Number"
EditMode
=
"EditForms"
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn"
ButtonType
=
"ImageButton"
EditImageUrl
=
"../App_Themes/WebBlue2/Grid/Edit.gif"
UpdateImageUrl
=
"../App_Themes/WebBlue2/Grid/Update.gif"
CancelImageUrl
=
"../App_Themes/WebBlue2/Grid/Cancel.gif"
>
</
EditColumn
>
</
EditFormSettings
>
<
CommandItemTemplate
>
<
div
style
=
"padding: 5px 5px; float: right;"
>
<
span
style
=
"margin-right: 15px"
>
<
asp:LinkButton
ID
=
"btnClearFilters"
runat
=
"server"
CommandName
=
"ClearFilters"
Text
=
"Clear Filters"
/>
</
span
>
<
asp:Button
runat
=
"server"
ID
=
"buttonRefresh"
CommandName
=
"Rebind"
CssClass
=
"rgRefresh"
Text
=
" "
/>
<
asp:LinkButton
ID
=
"btnRefresh"
runat
=
"server"
CommandName
=
"RebindGrid"
Text
=
"Refresh"
/>
</
div
>
</
CommandItemTemplate
>
<
Columns
>
<
telerik:GridEditCommandColumn
UniqueName
=
"EditCommandColumn"
HeaderText
=
"Edit"
ButtonType
=
"ImageButton"
EditImageUrl
=
"../App_Themes/WebBlue2/Grid/Edit.gif"
/>
<
telerik:GridBoundColumn
DataField
=
"Technology_Group_Abbreviation"
HeaderText
=
"Technology Office"
SortExpression
=
"Technology_Group_Abbreviation"
UniqueName
=
"Technology_Group_Abbreviation"
ReadOnly
=
"true"
/>
<
telerik:GridBoundColumn
DataField
=
"PM_User_Name"
HeaderText
=
"PM"
SortExpression
=
"PM_User_Name"
UniqueName
=
"PM_User_Name"
ReadOnly
=
"true"
/>
<
telerik:GridHyperLinkColumn
DataNavigateUrlFields
=
"Topic_Id"
DataNavigateUrlFormatString
=
"~/Topics/CreateViewTopic.aspx?id={0}&p=0"
HeaderText
=
"Topic Number"
DataTextField
=
"Old_Topic_Number"
UniqueName
=
"Old_Topic_Number"
AllowFiltering
=
"False"
ShowFilterIcon
=
"False"
ShowSortIcon
=
"False"
Target
=
"_blank"
/>
<
telerik:GridBoundColumn
DataField
=
"Status_Name"
HeaderText
=
"Status"
SortExpression
=
"Status_Name"
UniqueName
=
"Status_Name"
ReadOnly
=
"true"
/>
<
telerik:GridBoundColumn
DataField
=
"Title"
HeaderText
=
"Title"
SortExpression
=
"Title"
UniqueName
=
"Title"
ReadOnly
=
"true"
/>
<
telerik:GridBoundColumn
DataField
=
"TPOC"
HeaderText
=
"TPOC"
SortExpression
=
"TPOC"
UniqueName
=
"TPOC"
ReadOnly
=
"true"
/>
<
telerik:GridBoundColumn
DataField
=
"New_Topic_Number"
UniqueName
=
"New_Topic_Number"
HeaderText
=
"New Topic Number"
Display
=
"false"
/>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
EnablePostBackOnRowClick
=
"false"
AllowColumnsReorder
=
"True"
>
<
Selecting
AllowRowSelect
=
"True"
/>
</
ClientSettings
>
<
FilterMenu
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
/>
</
FilterMenu
>
</
telerik:RadGrid
>
Thanks!
I am wanting to programmatically select a page (item?) from the DataForm during page_load from a querystring.
I am using a RadListView for selecting an item and displaying/passing the RadListView's selection to the DataForm by making use of the ListView's DataItemIndex.
It seems to work as both controls are bound to the same datasource. (I was worried that perhaps the ordering and indexes would not match up between the two controls, but so far it seems to be fine).
It looks something like this:
protected void RequestsListView_ItemCommand(object sender, RadListViewCommandEventArgs e)
{
if (e.CommandName == "ItemSelect")
{
SelectedRequestDataForm.CurrentPageIndex = ((RadListViewDataItem)e.ListViewItem).DataItemIndex;
}
}
So my question is how do I basically do the same thing but instead of using DataItemIndex / CurrentPageIndex... how can I just use actual field values to match and select on? Can I set the selected page of the DataForm by matching a value of a particular page's DataKey (or any field)?
I have looked through the API reference to see if there was anything besides CurrentPageIndex that I could use, but I haven't found one. One idea I've had is to just loop through all pages and on each page attempt to match a DataItem's value... then use CurrentPageIndex to get the value. But, there doesn't seem to be a collection that corresponds to all the pages associated to the DataForm. Oddly enough, there is a PageCount property though!
What might I do? Does DataPager already accomplish all this and I just don't realize it?