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