Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.ItemCommand
Dim strCommandName As String = e.CommandName.ToLower()
Dim sTitle As String = ""
Dim intIndex As Integer
If (strCommandName = "browse" Or strCommandName = "modify" Or strCommandName = "attachment") Then
intIndex = Convert.ToInt32(e.CommandArgument)
Select Case strCommandName
Case "modify"
EditSolution(intIndex)
Case "attachment"
End Select
End If
Protected Sub EditSolution(ByVal iSolutionID As Integer)
Dim strScript As String = String.Empty
strScript = "javascript:EditSolution(" & iSolutionID & ");"
ScriptManager.RegisterStartupScript(Me.RadGrid1, Me.GetType, "OpenAttachments", strScript, True)
End Sub
The js file should be fine since it is used by production. I just start to use telerik grid. I believe last line code is wrong, but not sure how to fix it. ScriptManager.RegisterStartupScript(Me.RadGrid1, Me.GetType, "OpenAttachments", strScript, True)
Thanks in advance!
<form runat="server" id="frmLogin"><telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager><telerik:RadWindowManager ID="LoginWindowManager" runat="server" EnableShadow="true" Skin="Telerik" /> <div class="loginDiv"> <asp:Image ID="ivxLogo" AlternateText="iVidix Logo" ImageUrl="./img/ividix_logo.jpg" Height="150px" Width="110px" runat="server" /> <p>Welcome to the Instructional Video Exchange. Please login to access your videos.</p> <div align="center"> <table border="0" cellpadding="0" cellspacing="10"> <tr> <td>UserName:</td> <td> <telerik:RadTextBox ID="txtUserName" runat="server" Width="150px" TabIndex="0" Skin="Vista" /> </td> </tr> <tr> <td>Password:</td> <td> <telerik:RadTextBox ID="txtPassword" runat="server" Width="150px" TabIndex="1" TextMode="Password" Skin="Vista"> </telerik:RadTextBox></td> </tr> <tr> <td>Institution:</td> <td> <telerik:RadComboBox ID="ddlInstitutions" runat="server" DataSourceID="srcInstitutions" DataTextField="Name" DataValueField="InstID" TabIndex="2" Skin="Vista" AllowCustomText="True"> </telerik:RadComboBox> </td> </tr> <tr> <td colspan="2" align="right"><asp:Button ID="btnSubmit" runat="server" Text="Login" onclick="btnSubmit_Click" TabIndex="3"/></td> </tr> </table> </div> </div></form>try{ String encryptPwd = CryptoHelper.Encrypt(password); //log.Debug("Encrypted version of the password: " + password + " is " + encryptPwd); userSession = SessionManager.CreateSession(userName, encryptPwd, instID);}catch (IvidixException ex){ String ErrorMessage = "UserName and/or Password in combination with the Institution were not valid. Please try again.\n"; ErrorMessage = ErrorMessage + "Specifically, " + (String) ex.LocalMessages[0] + "\n"; ErrorMessage = ErrorMessage + "Please contact Ividix Support if you feel that this error is incorrect."; log.Error("UserDetail Session was not created properly and therefore not stored within the HttpSession."); log.Debug("End btnSubmit_Click"); LoginWindowManager.RadAlert(ErrorMessage, 350, 200, "Error", ""); return;}CheckBox
ch = (CheckBox)e.Container.Controls[1].FindControl("IsPrivateCheckbox");
ch.Checked = System.
Convert.ToBoolean("True");
RadTextBox SubjectTextbox = (RadTextBox)e.Container.Controls[1].FindControl("SubjectText");
SubjectTextbox.Text = Session[
"PersonName"].ToString() + " On Call";
<telerik:RadCalendar runat="server" Skin="Windows7" ID="RadCalendar1" AutoPostBack="true" TitleFormat="MMM-yy" EnableMultiSelect="false" MultiViewRows="3" MultiViewColumns="1" PresentationType="Interactive" HideNavigationControls="true" DayNameFormat="FirstTwoLetters" ShowOtherMonthsDays="false" FastNavigationStep="1" EnableNavigation="true" EnableMonthYearFastNavigation="False"> <ClientEvents OnCalendarViewChanged="CheckSelections" /> </telerik:RadCalendar>function CheckSelections(sender, eventArgs) { var selDates = sender.get_selectedDates(); var calendar = $find("<%=RadCalendar1.ClientID%>"); var dates = calendar.get_selectedDates() var date = dates[0] var year = date[0]; var month = date[1]; var day = date[2] var mydate = month + "/" + day + "/" + year mydate = DateAdd(mydate, "M", 1); var datearray = mydate.format("yyyy, M, d"); var arr = [datearray]; calendar.selectDate(arr,true); }<span style="font-family: arial; font-size: 12px;"><p><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br /><br />There are many different categories of information for your maintenance purposes. These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor. Of course, if you want, we can maintain this information for you.<br /><br /></span></p></span><p> </p><span style="font-family: arial; font-size: 12px;"><p> </p></span><p> </p><ul> <li><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br /> <br /> There are many different categories of information for your maintenance purposes. These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor. Of course, if you want, we can maintain this information for you.<br /> <br /> </span></li></ul>
| <table cellspacing="0" class="rgMasterTable rgClipCells" border="0" id="Domestic_userControl_rgDomestic_ctl00_Header" style="width:100%;table-layout:fixed;overflow:hidden;text-overflow:ellipsis;empty-cells:show;"> |
| <table cellspacing="0" class="rgMasterTable rgClipCells" border="0" id="Domestic_userControl_rgDomestic_ctl00_Header" style="table-layout:fixed;overflow:hidden;text-overflow:ellipsis;empty-cells:show;"> |
| <telerik:RadGrid runat="server" ID="rgDomestic" AllowFilteringByColumn="true" |
| AllowSorting="true" ShowFooter="True" EnableLinqExpressions="false" |
| AllowPaging="True" AllowMultiRowSelection="true" |
| ShowGroupPanel="true" ShowHeader="true" |
| PageSize="15" |
| AutoGenerateColumns="false"> |
| <ClientSettings Selecting-AllowRowSelect="true" ClientEvents-OnGridCreated = "DomesticGridCreated" AllowDragToGroup="true" AllowGroupExpandCollapse="true" EnableRowHoverStyle="true" ClientEvents-OnRowDblClick="RowDoubleClick" > |
| <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" FrozenColumnsCount="2"/> |
| </ClientSettings> |
| <GroupingSettings ShowUnGroupButton="true" /> |
| <MasterTableView GroupsDefaultExpanded="false" GroupLoadMode="Client" HierarchyLoadMode="Client" ClientDataKeyNames="DocNum" DataKeyNames="DocNum"> |
| <Columns> |