Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
295 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
325 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
128 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
63 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
3 answers
86 views
Hi,
I am new in Rad control implementation in ASP.NET,I am using two RadListBoxes in my project.
when i select an item at Source RadListbox then destination RadListBox is flickering,
i used Update panel the whole page is not flickring but only inside RadListBox(at Destination) is flickering.
i used OnTexrtChanged server event and made autopostback=true at source side.

so how to avoid flickering after postback happen?

Please support.

Thanks & Regards,
ShanthKumar Naik
Bozhidar
Telerik team
 answered on 11 May 2012
4 answers
129 views
Hey guys,
Is there a way to set a tool tip or something similar for the filter icon in the grid? I was hoping to have a distinct one for each column. Is there a setting for this?
Thanks
mdk
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 May 2012
1 answer
215 views
Hello Team,

i would like to use all telerik controls in my page to have the same look and feel.
Can u please suggest which control i can use to have the functionality of Asp.Net CheckboxList

Thanks in advance,
Hari
Slav
Telerik team
 answered on 11 May 2012
1 answer
161 views
Hi,
I am using 2 Radlistbox controls in my application for trnasferring items.
the item is transferring well when i press inbuilt transfer button but same it not working on server side after publishing my application in IIS.
i wrote below code:
<telerik:RadListBox runat="server" ID="RadListBoxSource" OnItemDataBound="RadListBoxSource_ItemDataBound"
OnTransferring="RadListBoxSource_Transferring" AllowTransferOnDoubleClick="true" AutoPostBack="true"
AllowTransfer="true" SelectionMode="Multiple" TransferToID="RadListBoxDestination"
AutoPostBackOnTransfer="true" OnSelectedIndexChanged="RadListBoxSource_SelectedIndexChanged">
</telerik:RadListBox>

<telerik:RadListBox runat="server" ID="RadListBoxDestination" AllowTransferOnDoubleClick="true"
EnableDragAndDrop="false" OnSelectedIndexChanged="RadListBoxDestination_SelectedIndexChanged"
SelectionMode="Multiple" OnItemDataBound="RadListBoxDestination_ItemDataBound" AutoPostBack="true"
AutoPostBackOnTransfer="true" />

in c# code behind:

protected void RadListBoxSource_Transferring(object sender, RadListBoxTransferringEventArgs e)
        {            
                if (e.SourceListBox.ID == "RadListBoxSource")
                {
                    if (e.Items.Count == e.SourceListBox.Items.Count)
                    {
                        RadListBoxSource.ClearSelection();
                    }
                    if (RadListBoxSource.SelectedIndex == -1)
                    {
                        if (e.SourceListBox.ButtonSettings.ShowTransferAll == true)
                        {
                            for (int i = 0; i < RadListBoxSource.Items.Count; i++)
                            {
                              if (RadListBoxSource.Items[i].Text == RadListBoxSource.Item[i].Value)
                                    RadListBoxSource.Items[i].Selected = false;
                                else
                                    RadListBoxSource.Items[i].Selected = true;
                            }
                            foreach (RadListBoxItem item in RadListBoxSource.SelectedItems)
                            {
                                AddToDestination(item.Text, item.Value);
                                BindListBoxes();
                            }
                            e.Cancel = true;
                        }                       
                    }
                    else
                    {
                        LeftLstboxSelection();
                        e.Cancel = true;
                    }
                }
                if (e.SourceListBox.ID == "RadListBoxDestination")
                {
                    if (e.Items.Count == e.SourceListBox.Items.Count)
                    {
                        RadListBoxDestination.ClearSelection();
                    }
                    if (RadListBoxDestination.SelectedIndex == -1)
                    {

                        if (e.SourceListBox.ButtonSettings.ShowTransferAll == true)
                        {
                            for (int i = 0; i < RadListBoxDestination.Items.Count; i++)
                            {
                   if (RadListBoxDestination.Items[i].Text == RadListBoxDestination.Items[i].Value)
                                    RadListBoxDestination.Items[i].Selected = false;
                                else
                                    RadListBoxDestination.Items[i].Selected = true;
                            }
                            foreach (RadListBoxItem item in RadListBoxDestination.SelectedItems)
                            {
                                AddToSource(item.Text, item.Value);
                            }
                            BindListBoxes();
                            e.Cancel = true;

                        }
                    }
                    else
                    {
                        RightLstboxSelection();
                        e.Cancel = true;
                    }
                }
                if (RadListBoxDestination.Items.Count == 0)
                {
                                    
                    btnExportTemplate.CssClass = "my_custom_button_gray_l";
                    btnExportTemplate.Enabled = false;
                }
                else
                {                                   
                    btnExportTemplate.CssClass = "my_custom_button_l";
                    btnExportTemplate.Enabled = true;
                }          
           
        }

after publishing on server item is not tranferring when  double click or selecting item.

Please support.waiting for quick response from Telerik Team


Thanks & Regards,
Santhosh Naik
Dimitar Terziev
Telerik team
 answered on 11 May 2012
1 answer
67 views
Hello,

I tried to setup server side autoload with a combobox in an ascx control - however it didn't seem to work.  Tracing in fiddler I could see the requests to the page but a breakpoint was never reached.

Is this a supported scenario, or would I need to use a web service or page method?


Also ... is it possible to add a 'context key' or something to the control that's included in the load on demand requests?  For example, if I'm loading foo's for a given customer, I need the customer ID and I was hoping to set a value on the control during page load... rather than have to retrieve it every ajax request.

Thanks
Adam
Top achievements
Rank 1
 answered on 11 May 2012
2 answers
67 views
The build in filtering features of RadGrid are great in most cases, but there is still room for improvements I feel. One are is what happens after you filter, if you want to do multiple searches (filterings) after one another, which are not related to each other (like in a Customer Telephone support). This means that the customer service rep would have to manually clear the filters in order to be able to search for something else. This is especially tricky if you have enabled the AutoPostBackOnFilter which means that when you clear the previous filter, and moves to another filter, a select for EVERYTHING will be executed (as there now is no filter).

As far as I know, there is no "ClearFilterAfterSelect" option on the RadGrid, which could be a solution to this problem. The idea would of course be to clear (reset) the filters after a search/filter has been completed. What we have done is to implement this ourselves as:
       

foreach (GridColumn column in radGrid.MasterTableView.Columns)
{
            column.CurrentFilterFunction = GridKnownFunction.NoFilter;
            column.CurrentFilterValue = string.Empty;
 }

radGrid.MasterTableView.FilterExpression = string.Empty;

after the Select has been executed, but it would be nice to have this option. Or perhaps it already exists?

Also, it would be interesting to know if there are any drawbacks to this (besides having to fill in filter data again of course)?
John
Top achievements
Rank 1
 answered on 11 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?