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.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
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;