Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
132 views
Hi, ive added a custom button to my FileExplorer toolbar and want to make it a ExplorerMode switcher using Ajax refreshing. Im unable to make it work correctly but i think im very close. When I click the button, the ExplorerMode property changes (when looking in RadAjaxManager1_AjaxRequest) but nothing happens visually. Here's the code:

<telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Skin="WebBlue" Width="99.7%" Height="250px" AllowPaging="true" PageSize="50" ExplorerMode="Default" CssClass="rfeLargeThumbnails" EnableFilterTextBox="true" EnableFilteringOnEnterPressed="false" FilterTextBoxLabel="Filter By"  meta:resourcekey="labFilterBy" DisplayUpFolderItem="false"  OnClientFileOpen="OnClientFileOpen" OnClientLoad="attachHandlers">
    <Configuration EnableAsyncUpload="true" MaxUploadFileSize="10485760" />
</telerik:RadFileExplorer>

function toolbarClicked(toolbar, args) {
    var buttonValue = args.get_item().get_value();
 
    if (buttonValue == "ViewMode") {
        var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
        ajaxManager.ajaxRequest("RadFileExplorer1_ViewMode");
    }
 
}
 
function attachHandlers(explorer, args) {
   
    var toolbar = explorer.get_toolbar();
    toolbar.add_buttonClicked(toolbarClicked);
}
 protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
  RadToolBarButton customButton =
new RadToolBarButton("ViewMode");
 customButton.CssClass = "custom_button";
 customButton.Value = "ViewMode";
 customButton.Text = "View Mode";
 RadFileExplorer1.ToolBar.Items.Add(customButton);

     }
}

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
       {
           if (e.Argument == "RadFileExplorer1_ViewMode")
           {
               if (RadFileExplorer1.ExplorerMode == Telerik.Web.UI.FileExplorer.FileExplorerMode.Default)
               {
                   RadFileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Thumbnails;
               }
               else
               {
                   RadFileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Default;
               }
 
           }
       }

Can someone let me know what im doing wrong. It can become a nice feature to share to other members if this can work.

TIA
Vessy
Telerik team
 answered on 18 Sep 2012
1 answer
94 views
Hi,

I am using VS 2008, i want to reproduce the wizard example from http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/wizard/defaultcs.aspx link in my code. 
When i fill the personal data and click Next it gives me the error on IE9 saying, 
Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object. 
On mozilla it doesn't give any error and won't show any data in the Preview Control as well not go to the next step. 

Help appreciated.
Thank You. 
Nencho
Telerik team
 answered on 18 Sep 2012
1 answer
69 views
Hi there,

I am using the Telerik Ajax chart component to display two data series: the first series is a bar series showing some key figure values for specific points in time. The second series shows a target value for each key figure / bar. This is to illustrate whether each key figure value lies above or beneath the defined target value.

Therefore I created the second series as point series, defining the "point" as rectangle of 2px height and 25px width.

For some reasons sometimes the points of this second series seem to be invisible. You can see their label and debugging tells me that they should be visible but you just cannot see them. I used to set the rectangle height to 1px and when I was first facing this problem. So I changed it to 2px. My problem seemed to be solved. Now I found a use case where even the increased rectangle height does not solve the problem.

I am creating the series "manually" in code.

Can you think of any reason the described could happen? What may I be doing wrong?

Thanks a lot in advance,
Simone
Petar Kirov
Telerik team
 answered on 18 Sep 2012
1 answer
84 views
Hi, I haven a question using the filterexpression.

I have a situation where I have to use two fields as a key.  

Parent Id can be used for two cases, bakery and grocery ( kind)
same Child id can be used for both bakery and grocery as well.

The hierarchy i want to see is following:

123 bakery
-  456 bakery
123  grocery
- 456 grocery

However, this is how it shows up now.
123 bakery
456 bakery
456 grocery
123  grocery
456 bakery
456 grocery

Is there any way that I can add filter so I can check "kind" column when I create the hierarchy?
Antonio Stoilkov
Telerik team
 answered on 18 Sep 2012
1 answer
84 views
Hi,
    I would like to give tooltip to the header context menu. I want to give the menu text itself as the tool tip. How do I accomplish this. Have any idea anyone?? Please share if you have.
Savyo
Shinu
Top achievements
Rank 2
 answered on 18 Sep 2012
4 answers
101 views
Hi, I HAD problems with Hotfix Q2 703.

In your opinion, the release 2012 Q2 SP1 rolls before August ?

Thanks,
Marco
Vessy
Telerik team
 answered on 18 Sep 2012
35 answers
1.8K+ views
How is the popup window location determined when editmode is set to popup?  And how can it be changed? 

I've created a simple page with a radgrid using editmode=popup.. The simple page works fine and the popup displays up near the top when edit/insert are clicked.  We moved the code to another page the uses radtabs and put the code under on of the tabs.  When clicking edit the popup edit form displays  but it must be scrolled to.  When clicking insert the popup edit form doesn't even appear.  The grid is using an EditTemplate.  Any ideas how why this is occurring and what can be done to remedy the situation?

I've looked at the documentation and searched on popup location but didn't come up with anything.  Thanks
Rob
Top achievements
Rank 1
 answered on 18 Sep 2012
1 answer
55 views

Hai,

        I have used telerik controls in my Application.I have added Reference to the Dll Telerik.Web.UI.dll.I have added Prefix in Webconfig.

<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral,PublicKeyToken=121fae78165ba3d4"/>

I got the error "Unable to Create Designer Telerik.web.UI".When i searched in net,I found that i need to add Telerik.web.design.dll File.

Iam using VS 2008.Anyone pls tell me how to solve this problem?I didnt get telerik.web.design dll.is there any other way to solve this problem.Thanks in Advance

Eyup
Telerik team
 answered on 18 Sep 2012
1 answer
38 views

Hai,

        I have used telerik controls in my Application.I have added Reference to the Dll Telerik.Web.UI.dll.I have added Prefix in Webconfig.

<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral,PublicKeyToken=121fae78165ba3d4"/>

I got the error "Unable to Create Designer Telerik.web.UI".When i searched in net,I found that i need to add Telerik.web.design.dll File.

Iam using VS 2008.Anyone pls tell me how to solve this problem?I didnt get telerik.web.design dll.is there any other way to solve this problem.Thanks in Advance

Eyup
Telerik team
 answered on 18 Sep 2012
6 answers
85 views
I have an issue with the RadScheduler and November 4th is showing up twice in the Month View.  Any ideas why something like this would happen?

Chris
Plamen
Telerik team
 answered on 18 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?