Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hi
I am using radcombobox with checkbox options.
I need onclientclosing event to be fired for a web part.
I was able to achieve this using aspx page as shown below

aspx
<telerik:RadComboBox ID="cmbSites" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"  runat="server" HighlightTemplatedItems="true" MaxHeight="200" EmptyMessage="+ Select Site +"
                        width="300px" Skin="MySkin_Default" EnableEmbeddedSkins="false" OnClientDropDownClosing="HandleCloseSite" />
java script
function HandleClose(combo) {
          var items = combo.get_items();
          var csv = "";
          for (i = 0; i < items.get_count(); i++) {
              var chk = getItemCheckBox(items.getItem(i));
              if (chk != null && chk.checked) csv += "," + items.getItem(i).get_value();
          }
          if (csv.length > 2) {
              return csv.substring(1);
          }
          else
              return combo.get_value();
      }
Now I need write the same code in code behind for a web part.
in createchildcontrols I am declaring the radcombobox
            cmbChildEntities = new RadComboBox();
            cmbChildEntities.Visible = true;
            cmbChildEntities.AutoPostBack = true;
            cmbChildEntities.EnableCheckAllItemsCheckBox = true;
            cmbChildEntities.HighlightTemplatedItems = true;
            cmbChildEntities.CheckBoxes = true;
            cmbChildEntities.Width = 275;
            cmbChildEntities.EnableEmbeddedSkins = false;
            cmbChildEntities.Skin = "MySkin_Default";
           
In render I have a javascript call
 string js;
                js = "function HandleCloseRegion(){\n";
                js += "alert('test.');\n";
                js += "}\n";

                Page.ClientScript.RegisterStartupScript(this.GetType(), "PIROptions", js, true);
            
Ivana
Telerik team
 answered on 11 May 2012
1 answer
159 views
I'm trying to sort the column selection list in the header context menu.  I am generating GridBoundColumns programatically.  I am using

grid.MasterTableView.Columns.Add  to add my columns in sorted order and that doesn't appear to affect the column chooser flyout.  Is there a way to sort the column chooser list or to control the order externally?


Tsvetina
Telerik team
 answered on 11 May 2012
7 answers
229 views
My page using radGrid. During form edit, I disable and enable the drop down based conditionally. It is working fine in IE9 and chrome,
but in IE8 I encounter error.

this._displayElement.style.borderRightWidth=parseInt($telerik.getComputedStyle(this._displayElement,"border-right-width",""))+parseInt($telerik.getComputedStyle(this._textBoxElement,"border-right-width",""))+"px";


Peter
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
103 views

Hi!

                I’m trying to position a vertical RadMenu on a page so that the main root items are a fixed width, while still allowing the child items to overlap anything next to the menu if its parent item is scrolled over. Our pages each have a header and footer, so, in between, I put a RadSplitter with two RadPanes, one for the menu and one for whatever data is on the page. I want the menu pane to be a fixed width and the pane next to it to fill in any remaining space.

                A problem I’ve been running into is that when I scroll down the page, sometimes the menu seems to shift up and cover the header. Since then it moves out of the area I wanted it in, I tried setting the CSS position of the RadPane to be relative, which will make the menu be contained in the pane, but then it doesn’t allow the child menu items to spread out over the pane next to it. I also tried setting the position of the entire splitter to be relative, but that didn’t seem to stop the menu from shifting up, either.

                Is there any way I can have the root items of the menu be contained in a pane of a fixed width that doesn’t shift up over other elements, but still allows the child items to overlap things next to it? If anyone has any ideas, I would really appreciate it! Thank you!

                                Holly

Kate
Telerik team
 answered on 11 May 2012
1 answer
84 views
Hi,

Im using ProgressArea along with asyncupload controls to upload files.

When we changed the environment to web-garden(increased the no. of workerprocesses to 2), the progressarea is not visible sometimes. sometimes it is shown for one or two seconds and dissappears, 
we have implemented the sql server based sessionstate.

please advice, how can show the progressarea, or if there is any workaround for this.

Thanks,
Srikanth
Peter Filipov
Telerik team
 answered on 11 May 2012
1 answer
82 views
Hello,

<telerik:GridClientSelectColumn UniqueName="IsSelected"></telerik:GridClientSelectColumn>

This is my code. I want to disable the whole row on unchecking the checkbox. only checkbox is enable to check again.

How can I do this using Jquery or Javascript on client side.

TIA
Pavlina
Telerik team
 answered on 11 May 2012
1 answer
305 views
Hi, we have just analized the 'Telerik.Web.UI' source code we the commercial tool owned by our final costumer: Parasoft DotTEST 9.3.

We carriedout a Security Check of the source code as recommended OWAS TOP 10, the result has been discouraging, we found nearly 500 violations serious (level 1):

[494]   Security (BD.SECURITY) 

        [438]   Prevent exposure of sensitive data (BD.SECURITY.SENS-1) 

        [10]   Protect against file name injection (BD.SECURITY.TDFNAMES-1) 

        [8]   Protect against network resource injection (BD.SECURITY.TDNET-1) 

        [2]   Protect against HTTP response splitting (BD.SECURITY.TDRESP-1) 

        [36]   Protect against XSS vulnerabilities (BD.SECURITY.TDXSS-1) 

  [1]   Security inspection (CS.SEC) 

        [1]   Use SecureString instead of String for password (CS.SEC.SSFP-2) 

  [28]   Security Inspection (License Required) (SEC) 

        [28]   Always cleanup before an exception filtering method is invoked (SEC.ACWFB-3) 


This situation could cause rejection by the customer of your product (Rad Control for asp.net Ajax).

I'm sure you've already dealt with similar situations, we are sure Telerik has a justification for this behavior that reassures our customer on the quality of your product.

Please tell us how solve this problem.

Could you notify me a email address where send the detailed violations report?

Thank you in advance,
Federico
Niko
Telerik team
 answered on 11 May 2012
1 answer
338 views
I am trying to use a hyperlink to initiate an export to excel and can't locate the code to do this.  I would prefer not posting the page. 

I am also trying to use a hyperlink to convert the grid to allow scrolling with a frozen header row.  Again, I would like to do this client side and not post the page back to the server.  Is this possible?  If not, what is the process for implementing this with a postback? 

I am using the latest build of the AJAX Controls (2012.1.411.35) and trying to do this for all browsers.  My language preference is C#.

<div class="ProfileGridHeader" >
    <asp:HyperLink ID="ExcelExportLink" runat="server" CssClass="excel" NavigateUrl="javascript:void(0);" >Export to Excel</asp:HyperLink>
    <asp:HyperLink ID="FreezeHeaderLink" runat="server" CssClass="lock" NavigateUrl="javascript:void(0);" >Unlock Table Headers</asp:HyperLink>
</div><br /><br />
<div>
    <telerik:RadGrid ID="ActivityGrid" runat="server" ShowFooter="True"  >
        <MasterTableView CssClass="last grid" TableLayout="Fixed" Width="100%">
            <Columns>
                <telerik:GridBoundColumn HeaderText="Account"
                                         FooterText="Total"
                                         DataField="AccountIDField"
                                         HeaderStyle-CssClass="first"
                                         ItemStyle-CssClass="first" 
                                         FooterStyle-CssClass="gridfooter"/>
                  
                <telerik:GridBoundColumn HeaderText="Date"
                                         DataField="dateField"
                                         DataFormatString="{0:MM/dd/yyyy}"
                                         ItemStyle-CssClass="date" 
                                         FooterStyle-CssClass="gridfooter"/>
                  
                <telerik:GridBoundColumn HeaderText="Category"
                                         DataField="categoryField" 
                                         FooterStyle-CssClass="gridfooter"/>
                                           
                <telerik:GridBoundColumn HeaderText="Activity Type"
                                         DataField="typeField" 
                                         FooterStyle-CssClass="gridfooter"/>
                                           
                <telerik:GridBoundColumn HeaderText="Description"
                                         DataField="descriptionField"  
                                         FooterStyle-CssClass="gridfooter"/>
                                           
                <telerik:GridBoundColumn HeaderText="Quantity"
                                         DataField="quantityField"
                                         DataFormatString="{0:#,##0.0000;(#,##0.0000)}"
                                         ItemStyle-CssClass="numeric" 
                                         FooterStyle-CssClass="gridfooter"/>
                                           
                <telerik:GridBoundColumn HeaderText="Price"
                                         DataField="priceField"
                                         DataFormatString="{0:$#,##0.000;$(#,##0.000)}"
                                         ItemStyle-CssClass="numeric" 
                                         FooterStyle-CssClass="gridfooter"/>
                                                                                                                                    
                <telerik:GridBoundColumn Aggregate="Sum"
                                         HeaderText="Amount"
                                         DataField="amountField"
                                         DataFormatString="{0:$#,##0.00;$(#,##0.00)}"
                                         ItemStyle-CssClass="numeric" 
                                         FooterStyle-CssClass="numeric"/>
                                           
                <telerik:GridBoundColumn HeaderText="Additional Detail"
                                         DataField="additionalDetailField"
                                         HeaderStyle-CssClass="last"
                                         ItemStyle-CssClass="last" 
                                         FooterStyle-CssClass="gridfooter"/>
                                           
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</div>
Eyup
Telerik team
 answered on 11 May 2012
1 answer
132 views
Hi Masters,

I'm setting the zooming via hard code

using the following settings:
.....
            radChartPreview.ClientSettings.EnableZoom = true;
            radChartPreview.ClientSettings.ScrollMode = ChartClientScrollMode.Both;
            radChartPreview.ClientSettings.XScrollOffset = 1;
            radChartPreview.ClientSettings.YScrollOffset = 1; 
......
Plus, all my data is dynamically display (hard coded)
.....
           this.radChartPreview.AddChartSeries(framePreviewStatsMaxTime);
            this.radChartPreview.AddChartSeries(framePreviewStatsAvgTime);
            this.radChartPreview.DataBind();
......

When I test it on FF the image I get in the chart is a static loading image (see attachment) that never disappears.

I need some help in order to fix this problem, so I would appreciate your help, Thanks!
Peshito
Telerik team
 answered on 11 May 2012
2 answers
66 views
Hi,

I have a tabstrip with radmultipage.
Is it possible to share controls between different radpageviews?

For example, my tabs are:  France, Italy, Spain
in every radpageview I want a radcombobox with a list of cities.
I want to share the radcombobox and to fill the values according to the tab selection.

Thanks.
Dimitar Terziev
Telerik team
 answered on 11 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?