Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Productivity and Design Tools
private
List<DockState> CurrentDockStates
{
get
//Get saved state string from the database - set it to dockState variable for example
string
dockStatesFromDB =
""
;
_conn.Open();
SqlCommand command =
new
SqlCommand(
"select State from States where id='"
+ _userID +
"' "
, _conn);
dockStatesFromDB = command.ExecuteScalar().ToString();
_conn.Close();
List<DockState> _currentDockStates =
List<DockState>();
[] stringStates = dockStatesFromDB.Split(
'|'
);
foreach
(
stringState
in
stringStates)
if
(stringState.Trim() !=
.Empty)
_currentDockStates.Add(DockState.Deserialize(stringState));
}
return
_currentDockStates;
protected
void
RadDockLayout1_SaveDockLayout(
object
sender, DockLayoutEventArgs e)
List<DockState> stateList = RadDockLayout1.GetRegisteredDocksState();
StringBuilder serializedList =
StringBuilder();
int
i = 0;
while
(i < stateList.Count)
serializedList.Append(stateList[i].ToString());
serializedList.Append(
"|"
i++;
dockState = serializedList.ToString();
(dockState.Trim() != String.Empty)
SqlCommand(String.Format(
"update States set State='{0}' where id='"
"'"
, dockState), _conn);
command.ExecuteNonQuery();
RadDockLayout1_LoadDockLayout(
//Populate the event args with the state information. The RadDockLayout control
// will automatically move the docks according that information.
(DockState state
CurrentDockStates)
e.Positions[state.UniqueName] = state.DockZoneID;
e.Indices[state.UniqueName] = state.Index;