<script type="text/javascript">function pageLoad() {var pager = $find('<%=RadListView1.FindControl("RadDataPager1").ClientID %>').get_element();$telerik.$(pager).find(".rdpWrap a img")[0].src = "PagingFirst.gif";$telerik.$(pager).find(".rdpWrap a img")[1].src = "PagingPrev.gif";$telerik.$(pager).find(".rdpWrap a img")[2].src = "PagingNext.gif";$telerik.$(pager).find(".rdpWrap a img")[3].src = "PagingLast.gif";}</script>Hello,
I am using the rad window for the first time. Here is the code, how I have declared rad window.
<telerik:RadWindowManager ID="RadWindowMyImage" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" Modal="true">
<ContentTemplate>
<placeholder id="iframe1" runat="server" width="400px" height="400px">
</placeholder>
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
and I am loading an image and launching the window like this.
PlaceHolder mybox = RadWindow1.ContentContainer.FindControl("iframe1") as PlaceHolder;
System.Web.UI.WebControls.
Image appImage = new System.Web.UI.WebControls.Image();
string base64String = Convert.ToBase64String(myimage, 0, myimage.Length); //myimage is byte array
appImage.ImageUrl = "data:image/png;base64," + base64String;
appImage.Width = Unit.Pixel(100);
appImage.Height = Unit.Pixel(100);
iframe1.Controls.Add(appImage);
RadWindow1.Visible = true;
Am I doing correctly?? My rad window is not getting poped up when I click the button. Can any one help me out in this? Where I am doing wrong?
Thanks in Advance.
Thanks,
Geetha Rani.
Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, theDate) { ... }if (e.CommandName == RadGrid.UpdateCommandName){ if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode)) { GridEditableItem item = (GridEditableItem)e.Item; TextBox txtAmount = new TextBox(); TextBox txtQuantity = new TextBox(); int ID_Profil = Convert.ToInt32(item.GetDataKeyValue("ID_Profil")); if (ID_Profil != 0) { DataTable objectifsTable = this.GridSource; //Locate the changed row in the DataSource DataRow[] changedRows = objectifsTable.Select("ID_Profil = " + ID_Profil.ToString()); if (changedRows.Length != 1) { e.Canceled = true; return; } //Update new values Hashtable newValues = new Hashtable(); grd_objectifs.Items[item.ItemIndex].ExtractValues(newValues); changedRows[0].BeginEdit(); try { foreach (DictionaryEntry entry in newValues) { changedRows[0][(string)entry.Key] = entry.Value; } changedRows[0].EndEdit(); } catch (Exception ex) { changedRows[0].CancelEdit(); e.Canceled = true; } } }}