var
grid = $find(
"<%= rgMain.ClientID %>"
);
we have found a issue that adding duplicate attributes to a perticular tag if src attribute is there.
it is occured when When I added following Java script
“<script src="¬test-test.js"></src>” to an existing HTML content “<STRONG><FONT size=6 face="Courier New">test jayani<BR>
<BR>
<IMG title=test alt=test src="/CurrentCourse/logo.jpg"> </FONT></STRONG>”
after adding those scripts and switching between design and html views it comes like this
<strong><font size="6" face="Courier New">test jayani<br>
<br> <script src="¬test-test.js"></src>
<IMG title=test alt=test src="/CurrentCourse/logo.jpg" originalAttribute="src" originalPath="/CurrentCourse/logo.jpg" originalAttribute="src" originalPath="/CurrentCourse/logo.jpg" originalAttribute="src" originalPath="/CurrentCourse/logo.jpg"> </FONT></STRONG>
</body></script></font></strong>
here originalAttribute and originalPath attributes keep on adding to the IMG tag. This is happens when "MakeUrlsAbsolute" filter is on. This will work as same for the java scripts as well.
Please take a look on this and do needful.
Thanks
public
static
RadSchedulerContextMenu BuildSiteAppointmentContextMenu(Page page)
{
RadSchedulerContextMenu cxt =
new
RadSchedulerContextMenu();
cxt.ID =
"SiteSchedulerContextMenu"
;
cxt.ClientIDMode = ClientIDMode.Static;
//QUICK ASSIGN
cxt.Items.Add(
new
RadMenuItem()
{
Text =
"Quick Assign"
,
Value =
"QuickAssignJob"
,
ImageUrl =
"~/Images/Menu/tiny/nav_right_blue_quick.png"
,
DisabledImageUrl =
"~/Images/Menu/tiny/nav_right_blue_quick_bw.png"
});
//ADVANCED ASSIGN
cxt.Items.Add(
new
RadMenuItem()
{
Text =
"Advanced Assign"
,
Value =
"AdvancedAssignJob"
,
ImageUrl =
"~/Images/Menu/tiny/nav_right_blue.png"
,
DisabledImageUrl =
"~/Images/Menu/tiny/nav_right_blue_bw.png"
});
//UNASSIGN
cxt.Items.Add(
new
RadMenuItem()
{
Text =
"Unassign Employee"
,
Value =
"UnassignJob"
,
ImageUrl =
"~/Images/Menu/tiny/nav_right_red.png"
,
DisabledImageUrl =
"~/Images/Menu/tiny/nav_right_red_bw.png"
});
return
cxt;
}
SiteSchedule.OverflowBehavior = OverflowBehavior.Expand;
SiteSchedule.ShowNavigationPane =
false
;
SiteSchedule.AppointmentContextMenus.Add(ContextMenu.BuildSiteAppointmentContextMenu(
this
.Page));
function
GetSchedulerContextMenu() {
var
menu = document.getElementById(
"SiteSchedulerContextMenu"
);
return
menu;
}
Hi,
I have the following problem, in my RadGrid i have the operation update select and delete. Update and Select works fine. but the delete operation give me always the error that the parameter is null.
this is my grid
<
telerik:RadGrid
ID
=
"radGrid1"
AutoGenerateEditColumn
=
"True"
DataSourceID
=
"objectDataSource1"
runat
=
"server"
GridLines
=
"None"
Skin
=
"Office2010Blue"
AutoGenerateColumns
=
"False"
>
<
MasterTableView
AllowAutomaticUpdates
=
"True"
AllowAutomaticDeletes
=
"True"
CommandItemDisplay
=
"Top"
DataSourceID
=
"ObjectDataSource1"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
/>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn"
>
<
ItemStyle
CssClass
=
"MyImageButton"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridDropDownColumn
DataField
=
"AddressType"
DataSourceID
=
"objectDataSource1"
HeaderText
=
"Category"
ListTextField
=
"AddressType"
ListValueField
=
"AddressType"
UniqueName
=
"AddressType"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDropDownColumn
DataField
=
"CategoryType"
DataSourceID
=
"objectDataSource1"
HeaderText
=
"CategoryType"
ListTextField
=
"CategoryType"
ListValueField
=
"CategoryType"
UniqueName
=
"CategoryType"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"NotificationDate"
HeaderText
=
"NotificationDate"
UniqueName
=
"NotificationDate"
/>
<
telerik:GridCheckBoxColumn
DataField
=
"NoticeOfReceipt"
UniqueName
=
"NoticeOfReceipt"
HeaderText
=
"NoticeOfReceipt"
/>
<
telerik:GridBoundColumn
DataField
=
"id"
HeaderText
=
"id"
SortExpression
=
"id"
UniqueName
=
"id"
/>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete this product?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
Text
=
"Delete"
UniqueName
=
"DeleteColumn"
>
<
ItemStyle
HorizontalAlign
=
"Center"
CssClass
=
"MyImageButton"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
and this is my datasource
<
asp:ObjectDataSource
ID
=
"objectDataSource1"
TypeName
=
"ESTV.A3.Logic.AddressCaseRelationBll"
SelectMethod
=
"Select"
UpdateMethod
=
"Update"
DeleteMethod
=
"Delete"
runat
=
"server"
>
<
SelectParameters
>
<
asp:QueryStringParameter
Name
=
"addressId"
Type
=
"String"
Direction
=
"Input"
QueryStringField
=
"id"
>
</
asp:QueryStringParameter
>
</
SelectParameters
>
<
UpdateParameters
>
<
asp:Parameter
Name
=
"id"
Type
=
"String"
Direction
=
"Input"
/>
<
asp:Parameter
Name
=
"NotificationDate"
Type
=
"DateTime"
/>
<
asp:Parameter
Name
=
"NoticeOfReceipt"
Type
=
"Boolean"
/>
<
asp:Parameter
Name
=
"AddressType"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"CategoryType"
Type
=
"String"
/>
</
UpdateParameters
>
<
DeleteParameters
>
<
asp:Parameter
Name
=
"id"
Type
=
"String"
/>
</
DeleteParameters
>
</
asp:ObjectDataSource
>
in my DAO i have for the delete method the following code
public
void
Delete(
string
id)
{
Guid guidId =
new
Guid(id);
AddressCaseRelation addressCaseRelation = entityDao.GetById(guidId);
entityDao.Delete(addressCaseRelation);
entityDao.CommitChanges();
}
Regards
Acc = DirectCast(DirectCast(Me.Parent.Parent, Telerik.Web.UI.GridTableCell).Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem.GetDataKeyValue("Acc")
<
telerik:RadGrid
ID
=
"rgdQueue"
runat
=
"server"
CellSpacing
=
"0"
DataSourceID
=
"dsQueue"
AllowFilteringByColumn
=
"True"
GridLines
=
"None"
AllowPaging
=
"true"
AllowSorting
=
"true"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataSourceID
=
"dsQueue"
DataKeyNames
=
"Acc"
>
<
NestedViewTemplate
>
<
table
style
=
"width: 100%;"
>
<
tr
>
<
td
>
<
span
style
=
"font-size: 18pt; color: #010101; line-height: 30px;"
>Report</
span
>
</
td
>
</
tr
>
<
tr
>
<
td
style
=
"width: 100%;"
>
<
div
style="border: 1px solid gray; padding-left: 25px; padding-right: 10px; padding-top: 10px;
padding-bottom: 10px;">
<%# Eval("OriginalReport") %>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<%# Eval("Acc") %>
<
uc4:PeerReview
Acc='<%# Eval("Acc") %>' ID="PRNested" runat="server" />
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Button
ID
=
"btnSave"
runat
=
"server"
Text
=
"Save"
CausesValidation
=
"true"
OnClick
=
"btnSave_Click"
ValidationGroup='<%# Eval("Acc") %>' />
<
asp:Button
ID
=
"btnSign"
runat
=
"server"
Text
=
"Sign"
CausesValidation
=
"true"
ValidationGroup='<%# Eval("Acc") %>' />
<
asp:Button
ID
=
"btnNext"
runat
=
"server"
Text
=
"Next"
OnClick
=
"btnNext_Click"
CausesValidation
=
"false"
/>
</
td
>
</
tr
>
</
table
>
</
NestedViewTemplate
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridTemplateColumn
DataField
=
"QueueDate"
FilterControlAltText
=
"View Peer Review History"
HeaderText
=
"Date Added to Queue"
SortExpression
=
"QueueDate"
UniqueName
=
"QueueDate"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"QueueDateLabel"
runat
=
"server"
Text='<%# ConvertDateToInternational(Eval("QueueDate")) %>'></
asp:Label
>
</
ItemTemplate
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"rcbHistoryFilter"
runat
=
"server"
OnSelectedIndexChanged
=
"rcbHistoryFilterr_SelectedIndexChanged"
OnDataBound
=
"rcbHistoryFilter_DataBound"
Width
=
"120"
DataSourceID
=
"dsQueueHistory"
DataTextField
=
"Text"
AutoPostBack
=
"true"
DataValueField
=
"Months"
>
</
telerik:RadComboBox
>
</
FilterTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Images"
UniqueName
=
"Images"
>
<
ItemTemplate
>
<
asp:Image
Style
=
"border-style: none;"
ID
=
"imgViewImages"
Acc='<%# Eval("Acc") %>'
PatID='<%# Eval("PatientID") %>' SiteCode='<%# Eval("SiteCode") %>' Width="20"
Height="20" ImageUrl="../images/workstation.jpg" runat="server"></
asp:Image
>
</
ItemTemplate
>
<
FilterTemplate
>
</
FilterTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>