Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views

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.

 

Marin Bratanov
Telerik team
 answered on 03 Sep 2012
2 answers
56 views
1) first time, I installed the ASP.NET AJAX RadControls, then also installed the SharePoint Acceleration Kit, but after I put RadTreeView control inside a web part project, i was getting error message saying "Telerik.Web.UI" could not be found when I tried to view a page hosting this web part-but I could see "Telerik.Web.UI" was clearly in the GAC
2) second attempt, after uninstalling both the Acceleration Kit and the ASP.Net AJAX RadControls, and removing Telerik related entries in the GAC, I only installed the SharePoint Acceleration Kit, and interestingly, nothing showed up in the Toolbox in VS2010!
3) third attempt, removed the Acceleration kit, I installed only the ASP.NET AJAX RadControls this time, and now I really cannot find "Telerik.Web.UI" in the GAC, I am only seeing "Telerik.Web.Design" in the GAC!
4) after manually registering the Telerik.Web.UI DLL into GAC, the issue remains, see the attached picture.

And the control I am interested here is the RADTreeView, I presume it is under Telerik.Web.UI, not Telerik.Web.Design? What am I missing?
Kate
Telerik team
 answered on 03 Sep 2012
1 answer
112 views
How can I change a property on a RadDatePicker that will reflect any RadDatePicker on a given web form?

I can prototype an event such as parseDate() using: 
Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, theDate) {
    ...
}

How can I do something similar with a property such as ShowRowHeaders=false??

Basically I do not want any RadDatePicker added to a web project to have this default of True.
Vasil
Telerik team
 answered on 03 Sep 2012
1 answer
145 views
Hello,

I have a radgrid created dynamically. It contains an GridTemplateColumn with an ItemTemplate and an EditItemTemplate created programmatically too.
The MasterTableView's EditMode is set to InPlace. When i update my row, I fire the UpdateCommand event, but the hashtable does not contain any value.
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;
                }
        }
    }
}
Andrey
Telerik team
 answered on 03 Sep 2012
1 answer
67 views
Hi, I'm using ASP.NET AJAX version 2011.3.1305.35.

I'm trying to do something as simple as:
1)  Add all RadComboBoxItems to the combobox by looping through a List.
2)  Add an Attribute to each RadComboBoxItem, in that same loop.

When I bind the combo box by setting the DataSource Property to my List, the items display as expected. 

PROBLEM:
When I loop through the List and add the items and attributes, all of the items and  attributes are added, but the items do NOT display in the combo box.  The combo box appears blank / empty.

I can tell they are there though, by using a javascript Alert on the selectedindexchanged event of the combo box.

The combo box displays in a Rad Grid row, when the row is in edit mode.
The combo box is populated during the ItemDataBound event of the RadGrid, when the row is put into edit mode.

My code follows (but I've tried a whole bunch of variations of it):

I've tried not doing a DataBind;  I've tried doing the DataBind after adding all of the items, I've tried setting the AppendDataBoundItems property to True.  No matter what I do, my combo box is populated BUT IT displays as being EMPTY / BLANK.

comboBox.DataValueField = "emEventID"
comboBox.DataTextField = "emEventTitle"
comboBox.DataBind()
 
Dim cbItem As RadComboBoxItem
For Each project As EM_EventsItem In filteredEventsList
    cbItem = New RadComboBoxItem(project.emEventTitle, project.emEventID)
    cbItem.Attributes.Add("UserPermissionLevel", project.UserPermissionLevel)
    comboBox.Items.Add(cbItem)
    cbItem.DataBind()
Next

Nencho
Telerik team
 answered on 03 Sep 2012
5 answers
329 views
Hi i just can't seem to get it working i get this

Warning   1   Error updating JScript IntelliSense: Telerik.Web.UI.Common.jQuery-vsdoc.js:Telerik.Web.UI: 'jQuery' is undefined @ 8060:0

and i have KB958502 installed but this is really annoying and i was looking forward to this update.

Regards
wong
Top achievements
Rank 1
 answered on 03 Sep 2012
1 answer
138 views
Hi,

if i add FormDecorator for a page the controls looks fine, but if i add RadAutoCompleteBox in the form the decorator applies for all controls except for button. i have attached screenshots

after adding RadAutoCompleteBox inside RadPageView,  RadDatePicker is not working. Please check the image after_autocomplete_err1.png

Thanks,
Harish P
Ivan Zhekov
Telerik team
 answered on 03 Sep 2012
1 answer
31 views
I'm creating a chart that contains both stackedbar series and a bar series.  I want to have the bar series appear after the stackbar, but even if I add the bar series last, it always appears first.  Is there any solution for this?

Petar Marchev
Telerik team
 answered on 03 Sep 2012
3 answers
132 views
In Telerik,RadGrid - When we have only 2 records in a single page - why does it show as "2items in 1 pages" -- why cant be "2items in 1 page" ? 
Radoslav
Telerik team
 answered on 03 Sep 2012
2 answers
657 views
In textbox,cant we restrict to type only alphabets - if we give not to enter numbers.

Its been heard that Telerik controls cant work with asp.net ajax validations?
Vasil
Telerik team
 answered on 03 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?