Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
114 views
Hi,

We recently upgraded the MOSS RadEditor from 4.4 to 5.6.

On of our editors complained about some lack of functionality in the Image Manager. In one of the picture libraries, there are now almost 900 pictures.
They would very much like to have the ability to:
  • Define default sorting when selecting a library in the left menu in the dialog box (i.e. sort by filename, instead of ID) (set via config file)
  • Define which (builtin) columns to view in the dialog box (set via config file)
  • Browse the library with thumbnails (i.e. turn on and off viewing of thumbnails) (check box in dialog box)
  • Turn on or off preview (to the right), which makes sense if you are already have turned on thumbnail browsing (check box in dialog box)
  • Resizing of the dialog box

I don't know if you've received feature request on any of these in the past, but if so, here's on more. :-)

Thank you.
Kind regards,
Frank-Ove Kristiansen
IT Department
Top achievements
Rank 1
 answered on 04 Jan 2010
3 answers
215 views
Hello,
I have two RadToolTipManagers :

    <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"  RelativeTo="Mouse"
                                 OnAjaxUpdate="OnAjaxUpdate" Sticky="true"   MouseTrailing="false"
                    Position="MiddleLeft" Width="500px" Height="320px"
        Animation="None" Skin="Office2007" EnableViewState="False">
    </telerik:RadToolTipManager>

    <telerik:RadToolTipManager ID="RadToolTipManager2" runat="server"  RelativeTo="Mouse"
                                 OnAjaxUpdate="OnAjaxUpdate2" Sticky="true" 
        ManualClose="true" Modal="true"
                    Position="MiddleLeft" Width="850px" Height="620px"  MouseTrailing="false"
        Animation="None" Skin="Office2007" ShowEvent="OnClick">
    </telerik:RadToolTipManager>

They have different target controls.Say RadToolTipManager1 takes care of controls 1-10, RadToolTipManager2 takes care of controls 20-30;
The problem is:

whenever I mouse over controls 1-10,  "OnAjaxUpdate" fired, AND "OnAjaxUpdate2" fired.
whenever I click controls 20-30,  "OnAjaxUpdate" fired, AND "OnAjaxUpdate2" fired.
 which screw up the display.
I'm looking for a simple way to solve the problem: Whenever I mouse over controls 1-10, ONLY "OnAjaxUpdate" fired,
 AND whenever I click controls 20-30, ONLY "OnAjaxUpdate2" fired.

Please help.

Thanks in advance,
Long

Svetlina Anati
Telerik team
 answered on 04 Jan 2010
3 answers
223 views
Hi,

Here is the scenario -

On RadGrid, user can click on cell and changes background color of the cell from nothing to "Green" .  Any help is highly appreciated..

Javascript code..

  <script type="text/jscript">
               /*
               It enables click functionality on the grid CELL..
               */
               function CellClick(index, uniqueName) {
                   var grid = $find("<%=gridWord.ClientID %>");
                   var MasterTable = grid.get_masterTableView();
                   var row = MasterTable.get_dataItems()[index];
                   var cell = MasterTable.getCellByColumnUniqueName(row, uniqueName);
                   var celltext = cell.innerHTML;
                   if (cell.style.backgroundColor == "green") {
                       cell.style.backgroundColor = "";
                   }
                   else {
                       cell.style.backgroundColor = "green";
                   }

                   
               }   
        </script>

code behind snippet -

protected void gridWord_ItemDataBound(object sender, GridItemEventArgs e)
        {
            //This bit enables JavaScript Click Event..
            if (e.Item is GridDataItem)
            {
                foreach (GridColumn col in gridWord.MasterTableView.RenderColumns)
                {
                    GridDataItem dataItem = (GridDataItem)e.Item;
                    dataItem[col.UniqueName].Attributes.Add("onclick", "CellClick('" + dataItem.ItemIndex + "','" + col.UniqueName + "');");
                }
            } 
        }


 protected void btnSubmit_Click(object sender, EventArgs e)
        {
                foreach (GridDataItem item in gridWord.MasterTableView.Items)
                {
   //Hard -code to get the BackColor of the cell..
                    TableCell cell = item["1"];
                    lblError.Text = cell.BackColor.Name;
                }
        }

cell.BackColor.Name always returns 0 even when the cell has "Green" background color.

FYI, RadGrid has only one ROW with multiple Columns.

Many thanks.

Milan G




Iana Tsolova
Telerik team
 answered on 04 Jan 2010
5 answers
221 views
Hi,

I know that the default (and only as far as I can find) width that the collapse on a RadSplitter drops to is 0px.
Has anyone managed to find a way to collapse to a minimum width of say 25px, so as not to obscure the pane completely?

Any pointers will be very welcome.

Yours thankfully

Dale
Svetlina Anati
Telerik team
 answered on 04 Jan 2010
1 answer
90 views

Problem: I have a RadGrid that upon updating, deleting, and inserting needs to update a RadChart on the page.  I have tried the RadAjaxManager codeblock below (fig. 1) but they seem to update all at the same time and the new changes do not appear until the next ajax action.  The chart is in a control which is on a RadAjaxPanel (RadAjaxPanel1).

 

I have also tried to create a trigger in the codebehind (fig. 2) but I get errors.  I’m not sure if this is even possible being that I am using the built in buttons in the radgrid that do not have IDs.

 

Finally, I tried setting ClientEvents-OnResponseEnd="updatechart" to try to update the chart after insert insert which seemed to be the most promising being that I could see the alert get fired at the end of the radgrid update which I put in to test it but I kept getting null errors.  That java script code is below also (fig. 3).

 

I have spent hours on the telerik website trying to find a solution that works on this problem.  Any help would be greatly appreciated.

 

------------------------------------------------------

(Fig. 1)

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"

        UpdatePanelsRenderMode="Inline">

        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="RadGrid1">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

 

------------------------------------------------------

 (Fig. 2)

protected void RadAjaxPanel1_AjaxSettingCreating(object sender, AjaxSettingCreatingEventArgs e)

    {

        AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();

        trigger.ControlID = Button1.ID; //<--not sure what this is suppose to be

        e.UpdatePanel.Triggers.Add(trigger);

    }

 

------------------------------------------------------

(Fig. 3)

                function updatechart() {

 

                    //shot alert after steps updated!

                    //alert("alert");

                    $find("<%=RadAjaxManager1.ClientID%>").ajaxRequest('Node_Clicked');

                   

                    //var ajaxMgr = $find("<%=RadAjaxManager.GetCurrent(Page).ClientID %>");

                    //ajaxMgr.ajaxRequest("ToDoRefreshAjax");

                    }

Iana Tsolova
Telerik team
 answered on 04 Jan 2010
1 answer
74 views
Hi,

In our application we are using default .Net themes and skins. We are having a default skin for each control, and if something different is needed then we are creating a custom skin for that control.

Now i want to use a formdecorator to rounded corners of textbox. But there is already a default skin for textboxes , that overrides the properties set by formdecorator. So is there any way to keep formdecorator in .Net skin file.

Thanks

Parimal Modi
Georgi Tunev
Telerik team
 answered on 04 Jan 2010
3 answers
121 views
Not sure if this is a bug, but it was not easy to trace the issue:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> 
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%"> 
        <telerik:RadPane runat="server" ID="RadPane1" Width="300px" Scrolling="None"> 
            left sidebar 
        </telerik:RadPane> 
        <telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Both" /> 
        <telerik:RadPane runat="server" ID="Radpane2"> 
            top zone 
            <div id="centerContent"> 
                <div style="float: left; max-width: 50%; height: 100%;"> 
                    left zone 
                </div> 
                <div style="float: right; max-width: 50%; height: 100%;"> 
                    Right zone 
                </div> 
            </div> 
            <div style="width: 100%; min-height: 10px; clear: both;"> 
                bottom zone 
            </div> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 

With the test page as above the page displays correctly until your collapse the splitbar either way, then when you open it back the content that was hidden stays hidden.

To fix all I had to do was remove the Height="100%" from the RadSplitter element, but this does not seem right.
Svetlina Anati
Telerik team
 answered on 04 Jan 2010
3 answers
60 views
As one of the early proponents of RadControls support for Mono, I'm finally at a point where I have a license for the Telerik Premium Collection, and maybe some time to do some testing.

Is there any documentation for getting started with Telerik ASP.NET AJAX and Mono? Downloads? Tutorial?  I know there were demos online but http://mono.telerik.com is down at the moment.

I am currently running with .NET 3.5 but can understand if Mono is only supported for v2.0.  Would I find info about Mono in a v2.0 download?

I don't suppose there is a VMware or similar appliance anywhere with all components pre-installed for a test drive over Linux?

Really, I'm "just" looking for a complete introduction to this offering with installation info, getting started info, code samples if there are differences from Microsoft .NET and ASP.NET.  Notes about caveats, bugs, gotchas, and anything that's not yet implemented would help so that I don't bang my head against a virtual wall on something that is known to not work.  :)  I'll be happy to take scrap notes, I don't need pretty web pages...

Thanks!
Daniel
Telerik team
 answered on 04 Jan 2010
7 answers
325 views
Hi, I would like to allow users to export all data from radgrid even if only 1 page is showing. So for example the grid may show 10 of 100 items. I would like users to be able to export all rows, not just the first 10 on a button click. This is a problem as I'm using custom paging so radgrid's ignorepaging does not help.

Does anybody know how I should go about doing this? I assume one way would be to increase the pagesize to the total number of rows available just before the export then set it back afterwards, but I'm not sure how to do this. 

Thanks!
Adam Hubble
Top achievements
Rank 1
 answered on 04 Jan 2010
5 answers
181 views
2009.1.527.35 Build
If I have any of these in the aspx page it will not render in FF 3.0.10, FF 3.5b4, Chrome.  It renders in IE 7 fine.

                        OnClientFileSelected="checkExtension"    
                        OnClientDeleting="OnClientDeletingHandler"
                        OnClientDeletingSelected="OnClientDeletingSelectedHandler"

(System Generated Code) Working in FF: 
 
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadUpload, {"_skin":"Default","allowedFileExtensions":"[\".mht\",\".txt\",\".pdf\",\".htm\",\".html\",\".doc\",\".xls\",\".ppt\",\".gif\",\".jpg\",\".tif\"]","clientStateFieldID":"myUpload_ClientState","controlObjectsVisibility":"2","enabled":true,"inputSize":80,"localization":{"Select":"Select","Remove":"Remove","Add":"Add","Clear":"Clear","Delete":"Delete"},"readOnlyFileInputs":false}, null, null, $get("myUpload")); 
}); 
 
 
Not Working in FF when additional client script events are defined: 
 
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadUpload, {"_skin":"Default","allowedFileExtensions":"[\".mht\",\".txt\",\".pdf\",\".htm\",\".html\",\".doc\",\".xls\",\".ppt\",\".gif\",\".jpg\",\".tif\"]","clientStateFieldID":"myUpload_ClientState","controlObjectsVisibility":"2","enabled":true,"inputSize":80,"localization":{"Select":"Select","Remove":"Remove","Add":"Add","Clear":"Clear","Delete":"Delete"},"readOnlyFileInputs":false}, {"deleting":OnClientDeletingHandler,"deletingSelected":OnClientDeletingSelectedHandler,"fileSelected":checkExtension}, null, $get("myUpload")); 
}); 


      function OnClientDeletingHandler(sender, eventArgs) { 
          var numberOfInputs = sender.getFileInputs().length; 
          if (numberOfInputs == 1) { 
              sender.clearFileInputAt(0); 
              eventArgs.set_cancel(true); 
          } 
      } 
 
      function OnClientDeletingSelectedHandler(sender, eventArgs) { 
          var numberOfInputsToDelete = eventArgs.get_fileInputFields().length; 
          var totalNumberOfInputs = sender.getFileInputs().length; 
 
          if (totalNumberOfInputs == numberOfInputsToDelete) { 
              eventArgs.set_cancel(true); 
          } 
      } 
 
      function checkExtension(radUpload, eventArgs) {           
          var input = eventArgs.get_fileInputField(); 
          if (!radUpload.isExtensionValid(input.value)) { 
              var inputs = radUpload.getFileInputs(); 
              for (i = 0; i < inputs.length; i++) { 
                  if (inputs[i] == input) { 
                      alert(input.value + " does not have a valid extension."); 
                      radUpload.clearFileInputAt(i); 
                      break; 
                  } 
              } 
          } else { 
              radUpload.addFileInput(); 
          } 
      } 
            <div id="divNewAttachments" runat="server" style="float:none; height:auto; border-style: none; padding:5px 5px 5px 5px;"> 
                    <span id="lblAttachments" style="float:left" class="labelA">Add Document:&nbsp;</span> 
                    <telerik:RadUpload ID="myUpload" runat="server" InputSize="80" Width="700px" TabIndex="20"  
                        ControlObjectsVisibility="RemoveButtons"  
                        EnableFileInputSkinning ="true" 
                        AllowedFileExtensions=".mht,.txt,.pdf,.htm,.html,.doc,.xls,.ppt,.gif,.jpg,.tif" 
                        OnClientFileSelected="checkExtension"     
                        OnClientDeleting="OnClientDeletingHandler" 
                        OnClientDeletingSelected="OnClientDeletingSelectedHandler"> 
                    </telerik:RadUpload> 
            </div>    
T. Tsonev
Telerik team
 answered on 04 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?