or
Hi
How use ClickToOpen and OnItemClick when clicked Level 0 I have postback how it block?
Thanks
| protected override void RenderContents(HtmlTextWriter writer) |
| { |
| writer.RenderBeginTag(HtmlTextWriterTag.Div); |
| RadBinaryImage image = new RadBinaryImage(); |
| image.DataValue = customer.Avatar; //byte array |
| image.Width = image.Height = Unit.Pixel(80); |
| image.AlternateText = customer.Name; |
| //image.DataBind(); |
| image.RenderControl(writer); writer.WriteLine(); writer.RenderEndTag(); |
| } |
When the control is rendered on the page, the image shown is the browsers default image not found placeholder. I know the customer object being used in the test has an avatar specified so the DataValue property should be set correctly.
I tried calling databind also because all the examples show it being used in a databound control, but that didnt seem work either.
Let me know if I'm doing something wrong or if this is just not supported.
Thanks,
Adam
| function contextMenuItemClicked(sender, args) { |
| var action = args.get_item().get_value(); |
| var radGridClickedRowIndex = document.getElementById("radGridClickedRowIndex").value; |
| var grid = $find('<%= UnscheduledGrid.ClientID %>'); |
| var masterTableView = grid.MasterTableView; |
| var row = masterTableView.get_dataItems()[radGridClickedRowIndex]; |
| var cell = masterTableView.getCellByColumnUniqueName(row, "AppointmentID"); |
| if (action == "Add") { |
| NewUnscheduledAppointment(); |
| } |
| if (action == "Edit") { |
| ShowAppointment(cell.innerHTML); |
| } |
| if (action == "Delete") { |
| //How to delete an appointment by ID?! |
| } |
| } |
Hi
How add loading progess when load RadGrid in Ajax?
thank