<
asp:SqlDataSource
ID
=
"sqlGetDocs"
runat
=
"server"
OnInserting
=
"SqlGetDocs_Updating"
ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
SelectCommand="spAspGetEnrollDocs" SelectCommandType="StoredProcedure"
InsertCommand="spASPinsertClientDocDatabase"
InsertCommandType="StoredProcedure">
<
SelectParameters
>
<
asp:SessionParameter
Name
=
"SSN"
SessionField
=
"SSN"
Type
=
"String"
/>
</
SelectParameters
>
<
InsertParameters
>
<
asp:ControlParameter
ControlID
=
"DropDownList1"
Name
=
"Client"
PropertyName
=
"SelectedValue"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"SSN"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"DocDesc"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"FileType"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"ImageFile"
dbType
=
"Binary"
/>
<
asp:Parameter
Name
=
"Updated"
Type
=
"DateTime"
/>
<
asp:Parameter
Name
=
"Comments"
Type
=
"String"
/>
<
asp:ControlParameter
ControlID
=
"lblUserName"
Name
=
"UserID"
PropertyName
=
"Text"
Type
=
"String"
/>
</
InsertParameters
>
</
asp:SqlDataSource
>
Protected
Function
UpdateImageField(
ByVal
gridEditableItem
As
GridEditableItem)
As
Byte
()
Dim
bytes
As
Byte
() = (
DirectCast
(gridEditableItem.EditManager.GetColumnEditor(
"ImageFile"
), GridBinaryImageColumnEditor)).UploadedFileContent
If
bytes
Is
Nothing
OrElse
bytes.Length = 0
Then
bytes =
New
Byte
() {}
End
If
Return
bytes
End
Function
Protected
Sub
SqlGetDocs_Updating(
ByVal
sender
As
Object
,
ByVal
e
As
System.Web.UI.WebControls.SqlDataSourceCommandEventArgs)
Dim
imageBytes
As
Byte
() = UpdateImageField(TryCast(RadGrid.EditItems(0), GridEditableItem))
e.Command.Parameters(
"@ImageFile"
).Value = imageBytes
End
Sub
Could someone tell me what I'm doing wrong?
TextBox txtGameUPC = (TextBox)editForm.FindControl("txtGameUPC");
txtGameUPC.Visible = true;
txtGameUPC.Enabled = false;
//Call Java script function to validate the UPC code
txtGameUPC.Attributes.Add("onblur", "validateUPC('" + txtGameUPC.ClientID + "');");
protected void RadGridNextSteps_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
GridDataItem editItem = e.Item as GridDataItem; // found the row
TableCell cell = editItem["sDisplayText"]; // found the cell
TextBox txt = cell.Controls[0] as TextBox; // found the control
string itemValue = txt.Text; // found the control’s value
// Problem: itemValue is old value, not new value.
}
Hello Telerik Team,
I have a requirement where i need to bind the Radscheduler to two datasources.Meaning
I have developed a usercontrol which is wrapped in a Sharepoint webpart which consists of a
rad scheduler.As of now my rad scheduler pulls the information from a specific list.
But now i need to pull the information for the appointments not only from a specific list but also from a sql database table.
what is the method i need to follow.
Do i need to use this
Any sample for this is greatly appreciated.
Thank you,
Smith
Hi Team ,
I have created webpart where i have included RadScript manager as below . Webpart is displaying correctly where as when I take mouse over any item on left navigation bar i get error as "A runtime error has occured .Do you wish to Debug?" and when I debug the error control takes me over to "onmouseover="Menu_HoverStatic(this)" ,Can you suggest as how to go about the issue .
ScriptManager
_scriptManagerTree = ScriptManager.GetCurrent(this.Page);
if (_scriptManagerTree == null)
{
_scriptManagerTree =
new RadScriptManager();
this.Controls.AddAt(0, _scriptManagerTree);
}
Regards
Srujan.N
<
telerik:RadRating
ID
=
"ratingBinary"
runat
=
"server"
ItemHeight
=
"20px"
ItemWidth
=
"20px"
Orientation
=
"Horizontal"
SelectionMode
=
"Single"
AutoPostBack
=
"true"
OnRate
=
"ratingBinary_Rate"
>
<
Items
>
<
telerik:RadRatingItem
Value
=
"0"
HoveredImageUrl
=
"Assets/Collection/Images/Rating/Binary/downh.png"
HoveredSelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/downh.png"
SelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/downh.png"
ImageUrl
=
"Assets/Collection/Images/Rating/Binary/down.png"
ToolTip
=
"No"
/>
<
telerik:RadRatingItem
Value
=
"1"
HoveredImageUrl
=
"Assets/Collection/Images/Rating/Binary/uph.png"
HoveredSelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/uph.png"
SelectedImageUrl
=
"Assets/Collection/Images/Rating/Binary/uph.png"
ImageUrl
=
"Assets/Collection/Images/Rating/Binary/up.png"
ToolTip
=
"Yes"
/>
</
Items
>
</
telerik:RadRating
>