Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
127 views
Hi,

I am looking at the demo TabStrip - Dynamic PageView Creation via AJAX and I'm trying to implement something similar.
The problem with the demo is that the RadGrid on the second tab is not sending postbacks (cannot enter edit mode, cannot change pages, etc). And this also happens in my implementation. I tried to add an AjaxManagerProxy in the user control but with no luck.
As I said this bug seems to reproduce in the online demo, with Google Chrome and IE 10.
Do you have any idea why this happens and how can I fix it?

Thank you.
Nencho
Telerik team
 answered on 18 Sep 2014
0 answers
82 views
Hi, i need to bind a grid like attached image, any idea??
Velkumar
Top achievements
Rank 1
 asked on 18 Sep 2014
1 answer
137 views
Hello!

I have an issue with the grid layout when there are frozen columns and the grid width allows to show all columns without horizontal scrollbar.

The test page is very simple:

<div style="width: 50%;height: 200px">
    <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" Height="100%" AutoGenerateColumns="False" OnNeedDataSource="OnGridNeedDataSource">
        <MasterTableView Width="100%" CommandItemDisplay="None">
            <Columns>
                <telerik:GridBoundColumn HeaderText="Column 1" UniqueName="Column1" DataField="Column1" HeaderStyle-Width="100" />
                <telerik:GridBoundColumn HeaderText="Column 2" UniqueName="Column2" DataField="Column2" HeaderStyle-Width="100" />
                <telerik:GridBoundColumn HeaderText="Column 3" UniqueName="Column3" DataField="Column3" HeaderStyle-Width="100" />
                <telerik:GridBoundColumn HeaderText="Column 4" UniqueName="Column4" DataField="Column4" HeaderStyle-Width="100" />
                <telerik:GridBoundColumn HeaderText="Column 5" UniqueName="Column5" DataField="Column5" HeaderStyle-Width="100" />
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="2" />
        </ClientSettings>
        </telerik:RadGrid>
</div>

When the browser width is small and the horizontal scrollbar is shown, everything looks fine. But when I enlarge the browser window, the scrollbar disappears, but some space at the bottom still seems to be "reserved" for it.

Well, in the OnGridCreated event handler I could set the size of the scroll area

<script>
    function ResizeGrid(gridID)
    {
        var scrollArea = $get(gridID + "_GridData");
        scrollArea.style.height = (157 + 17) + "px";
    }
 
    function OnGridCreated(sender, ev)
    {
        ResizeGrid(sender.ClientID);
    }
</script>

but this does not work for me because (1) how should I get know whether the horizontal scrollbar is shown, and (2) more important, I need the grid be resized dynamically.

The following code does not work:

<telerik:RadScriptBlock runat="server">
    <script>
        window.onresize = function () { setTimeout(function() { ResizeGrid("<%=RadGrid1.ClientID%>"); }, 200) }
 
        function ResizeGrid(gridID)
        {
            var scrollArea = $get(gridID + "_GridData");
            scrollArea.style.height = (157 + 17) + "px";
            $find(gridID).repaint();
        }
    </script>
</telerik:RadScriptBlock>

This issue occurs only when FrozenColumnsCount is set to non-zero. The UseStaticHeaders parameter does not matter.

So, could you please guide me how to get rid of this layout issue for the grid with frozen columns?

Thank you!
Maria Ilieva
Telerik team
 answered on 18 Sep 2014
7 answers
182 views
Hello Support Team,

I am using rad async upload control in my project.

I have kept filtration for the images. If i am trying to browse file that filter is not working at first time.

Attached snap and zip file for the code.


 <script type="text/javascript">
        function validationFailed(radAsyncUpload, args) {
            var erorMessage = getErrorMessage(radAsyncUpload, args);
            if (erorMessage == false) {
                alert("The file must have the extension gif,jpeg,jpg,png");
                return false;
            }
            return true;
        }

        function uploadFile(radUpload, arguments) {
            $('#<%=btnUploadImage.ClientID %>').click();
        }
    </script>
    <div>
        <div id="divUploadControl" style="float: left; width: 100%;">
            <telerik:RadAsyncUpload runat="server" ID="radUploadImage" EnableFileInputSkinning="true"
                MultipleFileSelection="Disabled" MaxFileInputsCount="1" OnClientFileUploaded="uploadFile"
                PostbackTriggers="btnUploadImage" Width="250" Localization-Select="Browse" OnClientValidationFailed="validationFailed"
                EnableInlineProgress="false" TabIndex="3" AllowedFileExtensions="gif,jpeg,jpg,png">
                <FileFilters>
                    <telerik:FileFilter Description="Allowed files are gif,jpeg,jpg,png" Extensions="gif,jpeg,jpg,png" />
                </FileFilters>
            </telerik:RadAsyncUpload>
            <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
            <telerik:RadProgressArea ID="RadProgressArea1" Width="240px" runat="server" BackColor="Black"
                Skin="WebBlue" ToolTip="Uploading">
            </telerik:RadProgressArea>
        </div>
        <input type="button" id="btnUploadImage" runat="server" style="width: 0px; font-size: 0px;
            height: 0px;" value="" onserverclick="btnUploadImage_Click" />
    </div>




Peter Filipov
Telerik team
 answered on 18 Sep 2014
1 answer
100 views
Hi Guys,

Scenario:
1. Select the “HTML” mode;
2. Add the following iframe:
<iframe src="http://www.sitecore.net/" width="500px" height="500px" myattr1=”1” myattr2=””></iframe>
3. Switch to the “Design” mode;
4. Switch to the “HTML” one.
Actual result:
<iframe src="http://www.sitecore.net/" width="500px" height="500px" myattr1=”1”></iframe>
Expected result:
<iframe src="http://www.sitecore.net/" width="500px" height="500px" myattr1=”1” myattr2=””></iframe>
Please take a look at the video at http://screencast.com/t/jnqcsNmIcx0

Best regards,
Andrey
Marin Bratanov
Telerik team
 answered on 18 Sep 2014
1 answer
65 views
Sometimes I answered my own question (and wants to remove the clutter) or wants to update the original email but I do not see such features available.
Georgi Tunev
Telerik team
 answered on 18 Sep 2014
1 answer
105 views
Hi Team,

Our requirement is to show more than 30 columns in the grid .Refer the attachment for the html.

We have placed a button below to grid to export only 20 columns from the grid into excel and pdf. So we have tried this functionality by setting Exportable="false"  in the rest of the 10 columns which we don't want to be the part of export.

Those 20 columns which are needs to be part of export is combination of GridTemplate column,GridBound Column and GridNumeric column. Please refer the attachment.

The problem which we are facing is even though we put Exportable="false" to the 10 columns which are not to be part of export to excel are getting exported .For example in the attachment right now we are trying to block the below columns from export but it not working.

Columns that needs to be blocked from export:-
1) AuditTrail
2) AuditTrailId
3) SystemMessage
4) ErrorIdMessage
5) ErrorDivid
Kostadin
Telerik team
 answered on 18 Sep 2014
1 answer
152 views
        <telerik:GridTemplateColumn DataField="FIRSTANDLASTNAME"
                                    HeaderText="[FIRSTANDLASTNAME]" SortExpression="FIRSTANDLASTNAME" UniqueName="FIRSTANDLASTNAME"
                                    GroupByExpression="FIRSTANDLASTNAME GROUP BY FIRSTANDLASTNAME">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkFIRSTANDLASTNAME" runat="server" Text='<%# AntiXSSEncoder.HtmlEncode(this.GetDataFromContainer(Container.DataItem, "FIRSTANDLASTNAME")) %>'
                                            OnCommand="ContactSelected_Command" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>


The value I assign to "[FIRSTANDLASTNAME]" is a dynamic value from database based on language. I wanted it to be encoded so it will not be open to xss attacks.

///  Below fix works but I 10s of columns in differen pages. Is there a way to encode the value without encoding one by one via UniqueName ?
        protected void MPViewGridContact_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridHeaderItem)
            {
                GridHeaderItem headerItem = e.Item as GridHeaderItem;                var button = headerItem["FIRSTANDLASTNAME"].Controls[0] as LinkButton;
                button.Text = AntiXSSEncoder.HtmlEncode(button.Text);            }        }
Angel Petrov
Telerik team
 answered on 18 Sep 2014
25 answers
1.6K+ views
Neither my radio buttons nor checkboxes are displayed on Chrome or Safari. Any clue why? Here is an example how I use one (checkbox): (sample image is also attached)

<form id="form1" runat="server"
         
            <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator> 
 
        <%-- other form controls --%> 
 
            <asp:Label ID="lblRememberMe" CssClass="rememberMe" AssociatedControlID="chkRememberMe" runat="server" Text="remember me"></asp:Label> 
            <asp:CheckBox ID="chkRememberMe" runat="server" /> 
 
    </form> 

Any help is appreciated.
Mike
Top achievements
Rank 1
 answered on 17 Sep 2014
0 answers
71 views
I would like to know what Telerik web form control(s) you would use to accomplish the following goals: In an existing .net 2010 web form application, I need to add the functionality of allowing the help desk people to do the following: 1. search to see if users have access to specific active directory group(s), 2. If the user does not have access to a specific active directory group, they need to be added to the active directory group. 3. Search a user table to see if the user is in the table and the user has the correct permissions in the table. Can you tell me what Telerik web form controls you would use and why you would use those controls?
 
Diane
Top achievements
Rank 1
 asked on 17 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?