Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 views
Hello,

I've search high and low for help on what I am trying to do, which seems pretty simple.

Basically, I want to create a number of RadDocks depending upon how many rows I have in a table which holds photos and data associated with them.  I am trying to add a few buttons to the RadDock that will do stuff, like delete a photo.

Here is what I have so far:

DataTable dtPhotos = GetAllByGalleryID(ID);
 
        if (dtPhotos.Rows.Count > 0)
        {
            foreach (DataRow dr in dtPhotos.Rows)
            {
                RadDock dock = new RadDock();
                dock.ID = "rd" + dr["ID"].ToString();
                dock.Title = "<div style=\"position:relative; top:7px; height:70px;\"><img class=\"galleryPhoto\" src=\"/properties/images/" + dr["ImgName"].ToString() + "\" /></div>";
                dock.EnableDrag = true;
                dock.DockMode = DockMode.Docked;
                dock.UniqueName = Guid.NewGuid().ToString();
                dock.EnableEmbeddedSkins = false;
                dock.Width = Unit.Pixel(100);
                dock.Height = Unit.Pixel(75);
                dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.Close;
                 
                dock.ContentContainer.CssClass = "photoButtons";
 
                Button delete = new Button();
                delete.Text = "Delete";
                delete.CssClass = "deleteButton";
 
                delete.Command += new DockCommandEventHandler(DeletePhoto);
                delete.CommandArgument = dr["ID"].ToString();
                delete.CommandName = "DeletePhoto";
                delete.OnClientClick = "return confirm('Are you sure you want to delete this photo?')";
 
                dock.ContentContainer.Controls.Add(delete);
 
                RadDockLayout1.Controls.Add(dock);
                dock.Dock(rdz1);
            }
        }


How do I wire up a simple Button inside the RadDock to an Event Handler?
Slav
Telerik team
 answered on 11 Oct 2012
6 answers
267 views
We have an ASP.NET 4 web app and we are using RadSessionPageStateCompression by configuring it in the BrowserFile.browser file like this:

<browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression, Telerik.Web.UI, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    </controlAdapters>
  </browser>
</browsers> When working in just one tab in the browser ViewState is OK. When working in several tabs (IE 8/9, Chrome 14.x) part of the ViewState is lost. Can you advice what is wrong? Regards, alexander
David
Top achievements
Rank 1
 answered on 11 Oct 2012
3 answers
221 views
I have a web application which use telerik controls.
I'm using viewstate compression

In web.config:
-----------------
<httpModules>
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
</httpModules>

 <modules runAllManagedModulesForAllRequests="true">
   <remove name="RadCompression" />
   <add name="RadCompression" type="Telerik.Web.UI.RadCompression"
    preCondition="integratedMode" />
  </modules>

In browser file:
------------------
 <browser refID="Default">
        <controlAdapters>
            <adapter controlType="System.Web.UI.Page"
                     adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression"/>
           <!-- <adapter controlType="System.Web.UI.Page"
                     adapterType="Telerik.Web.UI.RadSessionPageStateCompression"/>-->
        </controlAdapters>            
    </browser>

The problem is when open a web page and do some actions like building a grid or filling RadComboBox, and then wait while doing nothing in the page (receive a call as i work in a call center and filling the data from this call) after about 10 minutes the page lost its data that has been filled (ComboBox items disappear and RagGrid rows disappear completely).

The page seems to be come from the server without running the load event at least.

This happened in many pages around the web application.

I Hope you can help me cause I'm stuck in it.

Thank you.
David
Top achievements
Rank 1
 answered on 11 Oct 2012
5 answers
83 views

I have the following code below At the top of the page I have a collapsible 
panel
within the panel is an ASP Accordion with a total of 5 ASP Accordion
panes.


When it runs it does a post back on the whole page and binds the info to the 
Rad Scheduler which is great.


But when I ajax the aspx page, first using ASP panels which didn't work
then using telerik:radAjaxPanels it stops
binding the appointments data to
the Rad Scheduler which I can't work out.

So when I remove the panels it works but when I add the panels it stops
working.

I want each pane to post back then for the rad scheduler to post back, 
instead of the whole page doing a post back of both controls.

Any Suggestions

Thanks - John M 

<asp:Accordion>
<asp:AccordionPane ID="AccordionPane1" runat="server"">
            <Content>
              <telerik:RadAjaxPanel ID="PanelStaff" runat="server" LoadingPanelID="RadAjaxLoadingPanel2">      
                   <asp:TextBox ID"StaffTextBox" runat="server"/>
                   <asp:Button ID="StaffSearchButton" runat="server"/>
             </telerik:RadAjaxPanel>
           </Content>
<asp:AccordionPane>
</asp:AccordionPane>
  
//I have 5 of these Accordion panes I want to have RadAjaxPanel in each Accordion pane.
  
<telerik RadScriptManager ID="Radscriptmanager1" runat="server">
<scripts>
</scripts>
</telerick:RadScriptManager>
  
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelStaff" LoadingPanelID="RadAjaxLoadingPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
  
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet">
    <telerik:RadScheduler ID="RadScheduler1" >
    //Do Stuff
     </telerik:RadScheduler>
</telerik:RadAjaxPanel>



Ivana
Telerik team
 answered on 11 Oct 2012
1 answer
137 views
Hello,

I am trying to fix this issue since a few days, but I didn't find a solution. I hope you can help me.
I have a RadGrid and the Excel-Export worked fine. Then I put a RadAjaxPanel with RadAjaxLoadingPanel around it, and it stopped working. I have an asp:Button that starts the export. This button is in the panel too. I tried several solutions I found in this forum and the internet but none worked for me.

Either the error is like that:
The button-click exports the excel correct, but after that, the button is "dead". Nothing happens if you click it a second time. There are other controls in the panel (RadDatePicker) and they doesn't work too after the excel export.

Or the error is like that:
I click the export-button and then the loading icon appears. After a while it disappears but no excel is exported (but the controls are not "dead").

So either I have dead controls or nothing happens.

Does someone have an example code or a link for me?

I work in Sharepoint 2010 in a ModalDialog. Maybe this is why it is not working as expected?

Thank you!
Barbara
Top achievements
Rank 1
 answered on 11 Oct 2012
1 answer
79 views
Hi all,

do you know if it would be possible to use SPRadGrids to show search results items ?
I'v a list with a lot of items and wanted to customize the search results to show the result into a grid, and I would like the user to be able to sort and filter the results.

Thanks for your answers,

Steve
Tsvetoslav
Telerik team
 answered on 11 Oct 2012
0 answers
171 views
Hi problem solver,

Within website, I have one page having size about 2 MB. Hence it take time to load. I already tried view state minimization and other options.
I used Telerik RadGrid control and RadComboBoxes within this page. Now, if you see the attached screen, telerik.js take 731 KB within that 2 MB. Means telerik.js take almost half space within 2 MB. Is their any way to control size of run time generated telerik.js ?





Mandar
Top achievements
Rank 1
 asked on 11 Oct 2012
1 answer
115 views
I get error message on page where I have RadUpload control:

RadUpload Ajax callback error. Source url returned invalid content:
<html>
    <head>
        <title>The resource cannot be found.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}................

I get this error message only when I publish application on sever. When I run it from visual studio from my computer it works fine.
I have original version of telerik: Telerik_2012_Q2_912
Other controls work fine. Shluld I change something for server version?

Thanks,
Matej
Bozhidar
Telerik team
 answered on 11 Oct 2012
1 answer
105 views
Hi there,
is there any way of changing the current Skin of a RadToolTip on the client using jscript?

Thanks!
Princy
Top achievements
Rank 2
 answered on 11 Oct 2012
4 answers
200 views
I have a RadMenu which uses different types of drop-down menus. In this example the "Lists & Libraries" menu is a dynamic menu pulling from the SiteMapDataSource. As you can see it lists the titles and sub-content from the site. However, when using a Site Map control for the "Tools & Resources" the title of each group has a horizontal line separating it from the content of that group. I want these different types of menu to look exactly the same.  How do I accomplish this? What would be optimal is to include this horizontal line in every menu title, but if this is not possible I would settle for removing the horizontal line from every menu title. Any ideas?





thanks
Alex Dove
Kate
Telerik team
 answered on 11 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?