| 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
I want to dyanmically populate the Resource types. Meaning, I have three resource type on my schudeler. I want to populate the Second resource type based on the selected value of the First Resource type. And I want to populate the Thrid Resource Type based on the second resource type selection. How we can achieve this using the telerik Scheduler. Present Scheduler developed in plain Telerik Scheduler not by AdvancedScheduler. Please let me know if any one knows how to implement this.
One More thing I have to mention here. We are using VB.Net for Developement. Please provide the suggestions on VB.Net.
thanks,
KG
var tableView = $find("<%=gvTest.ClientID %>").get_masterTableView();
tableView.set_dataSource(seltestRows);
tableView.dataBind();
In a popup window using RadWindowManager I have a RadAjaxPane and a RadTreeView containing a RadTreeViewContextMenu.
When i click any RadMenuItem nothing happens - no post back.
Click any RadMenuItem a second or more times post back occurs.
What could be causing the first postback not to work.
Take away ajax panel and no problems with postback
**********
string p1 = "~/Reports";
string p2 = p1 + "/Images";
string p3 = p1 + "/Documents";
var PathsRoot = new[] {p1};
var PathsAll = new[] { p1,p2,p3 };
RadFileExplorer1.Configuration.ViewPaths = PathsRoot;
RadFileExplorer1.Configuration.UploadPaths = PathsAll;
RadFileExplorer1.Configuration.DeletePaths = PathsAll;
***************
if i use "PathsAll" for ViewPaths the RadFile Explorer shows 2 Images folder and 2 Documents folder.
How can i let users to delete files from subfolders ?