Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
291 views
Hello,

I have a problem with displaying a specific website (www.oritajewellery.com) using the radwindow. All other websites are displayed well.

Please open the following web page in order to view the problem: http://www.israel-jewelry-center.com/Pages/Categories/Rings.aspx.
By hovering over the image which is displayed in the attached image (1.jpg), a radtooltip will be displayed, and then click the displayed big image in order to view the website in a radwindow control. Here is the problem, the above website is not displayed (view attached image 2.jpg).

My code:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">   
        <Windows>   
            <telerik:RadWindow runat="server" Width="600px" Height="550px" VisibleStatusbar="false" style="z-index:10000;"
                ID="ExplorerWindow" Modal="true" Behaviors="Default">
            </telerik:RadWindow>
        </Windows>   
    </telerik:RadWindowManager>

I want to indicate again that just the above website is not displayed using the radwindow control.

Regards,
Bader
Georgi Tunev
Telerik team
 answered on 03 Jan 2011
1 answer
89 views
I have a RadListView inside an item template of RadPanelBar, the RadPanelBar is being managed by the ajaxmanager. I can successfully rebind the listview but new items don't display until a full postback.

How can I rebind the listview and have the items display without a full postback  when cannot reference the nested control directly in the ajaxmanager settings?

Shinu
Top achievements
Rank 2
 answered on 03 Jan 2011
0 answers
46 views
Hello Team,

I am using Rad Upload control and Rad Progress area for file upload functionality.I need to perform a custom functionally when i cancel the uploading of the files. From the telerik forums, i found that OnClientProgressUpdating event cant be used. My custom functionality exist in the corresponding cs file of the page where my Rad Upload controls are present.I want to know how can i get the cancel event of the cancel button click. If OnClientProgressUpdating is the method to achieve it, i found that it is invoked each time when the progress updates. I need to invoke it only when the cancel button is clicked. Also how can i call my custom function present in the cs code frm the javascript function OnClientProgressUpdating(). Please let me  know how can i achieve the same. How can i invoke a custom functionality in the cancel button of the RadProgressArea.

Thanks,
Divya

Divya
Top achievements
Rank 1
 asked on 03 Jan 2011
1 answer
43 views
I want to implement this functionality:
  1. Select multiple rows in radgrid.
  2. Click in a command item.
  3. Show a popup window to let the user enter additional common data.
  4. Make the post with selected rows and additional common data.
  5. In the server, process selected rows with additional common data.
Thanks in advance
Jaume Aguiló
Pavlina
Telerik team
 answered on 03 Jan 2011
7 answers
140 views
Thanks Telerik team for replying on my previous thread. Somehow I lost it so opening a new one. Thanks for sending me the exact solution to my problem. I have started working towards the example you send me. http://www.telerik.com/help/aspnet-ajax/grdcustomoptionforfiltering.html 

It's throwing an error "Object reference not set to an instance of an object." on "string[] values = tbPattern.Text.Split(' ');". Don't know why ??

if (e.CommandName == RadGrid.FilterCommandName)
            {
                Pair filterPair = (Pair)e.CommandArgument;
                if (filterPair.Second.ToString() == "DateCreated")
                {
                    string colName = filterPair.Second.ToString();
                    TextBox tbPattern = (e.Item as GridFilteringItem)[colName].Controls[0] as TextBox;
                    string[] values = tbPattern.Text.Split(' ');
                    if (values.Length == 2)
                    {
                        e.Canceled = true;
                        string newFilter = "(([" + filterPair.Second + "] >='" + values[0] + "') AND ([" + filterPair.Second + "] <='" + values[1] + "'))";
                        if (taskGrid.MasterTableView.FilterExpression == "")
                        {
                            taskGrid.MasterTableView.FilterExpression = "('" + startDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "' <= [DateCreated] AND [DateCreated] <= '" + endDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "')" + newFilter;
                        }
                        else
                        {
                            taskGrid.MasterTableView.FilterExpression += " AND ('" + startDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "' <= [DateCreated] AND [DateCreated] <= '" + endDate1.Value.ToString("MM/dd/yyyy HH:mm:ss") + "'  )";
                        }
  
                    }
                }
  
            }
Please help
Marin
Telerik team
 answered on 03 Jan 2011
3 answers
77 views
I am looking for an example on using 'set_eventArgument()' in OnRequestStart event. I see no documentation on how to use it,
When I tried to use it in following manner, I get an error. So some documentation would help.
function OnRequestStart(sender, args) {
                //get a reference to the current RadWindow
                var oWnd = GetRadWindow();
                args.set_eventArgument(oWnd["EmailAddress"]);
            }

Thanks
Sunil
Iana Tsolova
Telerik team
 answered on 03 Jan 2011
3 answers
133 views
I want to cancel edit-, insert-form in my needdatasource when I bind a new table when the previous table had an a form opened up! (otherwhise this will cause problems!

//h
Pavlina
Telerik team
 answered on 03 Jan 2011
3 answers
177 views
Hi,

I am using RadToolTipManager for showing ToolTip for my RadTreeView Nodes. I want to show tooltip for my specific RadTreeView Node not for every Node. Is there anyway that I can achieve with some ajaxrequest so that I can hide my tooltip or show for that node which I would like to show. 

I am having one more problem that on AjaxUpdate I am sorting my Radlistbox items but they do not sort. Any help would be really appreciated.

Protected Sub RadToolTipmanager_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs)


        Dim roleName As String = e.Value
        Dim listOfUsersInToolTip As New RadListBox
        listOfUsersInToolTip.Width = 150
        listOfUsersInToolTip.Height = 200
        Dim usersList As ArrayList = rc.GetUserRolesByRoleName(DNN.GetPMB(Me).PortalId, roleName)
        If usersList.Count <> 0 Then
            For Each user As DotNetNuke.Entities.Users.UserRoleInfo In usersList
                listOfUsersInToolTip.Items.Add(New RadListBoxItem(user.FullName, user.UserID))
            Next
            listOfUsersInToolTip.SortItems()
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(listOfUsersInToolTip)
        Else


        End If




    End Sub
Svetlina Anati
Telerik team
 answered on 03 Jan 2011
1 answer
80 views
I am working on an application which is accessing server frequently. I have multiple rad windows on the page. Whenever a post back occurs, all closed windows reopen with the last one in markup sequence on top. Any idea how to resolve this issue. 

Princy
Top achievements
Rank 2
 answered on 03 Jan 2011
4 answers
713 views
Dear All,

I´m pretty new to Telrik controls and have the following question.

I´m using a RadPanelBar to be able to let the user push the RadPanelBar and display 1-n activities presented as checkBoxes (I need to add these dynamically as I do not know how many acitivities there might be). The checkboxes should be presented as subItems and with that I mean that I want the user to push the RadPanelBar and the different activities/checkboxes should slide open/out. My idea is to grab the CheckBox2 in the RadPanelBar and add the actitivities to it. 

For achiving this I use the follwing code in my .ascx file:

 <telerik:RadPanelBar ID="RadPanelBar1" runat="server"> 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Activities"> 
                <Items> 
                    <telerik:RadPanelItem runat="server" Value="templateHolder"> 
                        <ItemTemplate> 
                            <asp:CheckBox ID="CheckBox2" runat="server" /> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items>  
 </telerik:RadPanelBar>

This is my  .ascx.cs file:

public override void DoLayout( )
  {
     //Get collection
     TrackableCollection<ProjectActivityBooking> acitivities = existingRegistration.ProjectParticipant.ProjectEntity.ProjectActivityBooking;
     //Here it is possible to get hold of the checkbox
     CheckBox cb = RadPanelBar1.FindItemByValue("templateHolder").FindControl("CheckBox2") as CheckBox;
     //Add datasource and bind
     this.RadPanelBar1.ItemDataBound += new RadPanelBarEventHandler(itemDatabound);
     this.RadPanelBar1.DataSource = acitivities;
     this.RadPanelBar1.DataBind();
  }

The code below let me add a new instatited CheckBox, but it is not added as subitem. Instead I´m getting a "static" RadPanelBar without the nice feature of being pushed and sliding out the subitems ie. activities

void itemDatabound(Object sender, RadPanelBarEventArgs e)
  {
     //Get panelItem
     RadPanelItem item = (RadPanelItem)e.Item;
     //Create Checkbox
     CheckBox chk = new CheckBox();
     //Get Activity
     ProjectActivityBooking activity =  item.DataItem as ProjectActivityBooking;
     //Set activity name
     chk.Text = activity.ProjectActivity.ActivityName;
     //Add control
     item.Controls.Add(chk);
   }

I think the way forward is something like below, but that will not get me my CheckBox.
void itemDatabound(Object sender, RadPanelBarEventArgs e)
{
   //This will throw an exception
   //CheckBox cb1 = RadPanelBar1.FindItemByValue("templateHolder").FindControl("CheckBox2") as CheckBox;
   //This will return null as it will now find the templateHolder RadPanel item
   //How will I then get hold of the CheckBox2 when the templateholder do not find/returns null
   //RadPanelItem item = e.Item.FindControl("templateHolder") as RadPanelItem;
}

Please let me know what I´ve done wrong?

Best Regards,

Thomas Andersson

Simon
Telerik team
 answered on 03 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?