Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
80 views
Hi All,
I am using Q2 raduploadhandler and version is 2010.2.714.35. I have some issue when I upload files. It is saving the files in the folder where radhandler is present(12 hive) and we have to give "write" permission for the folder to all site users which leads to security issue. Please give me an alternate solution. Thanks a lot inadvance.
vijaya
Top achievements
Rank 1
 answered on 28 Jul 2011
1 answer
97 views
I have the following simple javascript function that fires when the user clicks OK in a RadConfirm window.  The function should return the DataKeyValue for the selected row.  However it currently returns null and I can figure out why.  Can someone please tell me what my mistake was?

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
    function confirmCallBackFn(arg) {
        if (arg == true) {
        var grid = $find("<%=RadGrid1.ClientID %>");
        var MasterTable = grid.get_masterTableView();
        var selectedRows = MasterTable.get_selectedItems();
        for (var i = 0; i < selectedRows.length; i++) {
            var row = selectedRows[i];
            var PackageID = MasterTable.getCellByColumnUniqueName(row, "PackageID")
            alert(PackageID);
        }
 
        }
        else {
        }
    }
</script>
 
</telerik:RadCodeBlock>


Below is the relevant portion of my RadGrid1 code.  My DataKeyName and Column Unique Name are both "PackageID" as required by the JavaScript function.
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource2" DataKeyNames="PackageID, Status">
                       <CommandItemSettings ExportToPdfText="Export to PDF" />
                       <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                       </RowIndicatorColumn>
                       <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                       </ExpandCollapseColumn>
                       <Columns>
                           <telerik:GridBoundColumn DataField="PackageID"
                               FilterControlAltText="Filter PackageID column" HeaderText="PackageID"
                               SortExpression="PackageID" UniqueName="PackageID" DataType="System.Int32"
                               ReadOnly="True" Visible="false">
Princy
Top achievements
Rank 2
 answered on 28 Jul 2011
2 answers
152 views
Hi,

I'm having issues with my RadButtons within a RadPane. I have three panes, title, content and button pane at the bottom.

The problem is when I resize the browser to a shorter height, the RadButtons overlap the button pane. This happens only in IE 7 and 8. The odd thing is that the scroll bar does appear noticing the overflow however, it doesn't affect the Radbuttons AT ALL. It seems the z-index or something similar that is causing the overlap with a fixed position as soon as the pane overflows.

<head id="Head1" runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all" EnableRoundedCorners="False" />
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Black">
        </telerik:RadSkinManager>
        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Height="100%"/>
        <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%" Orientation="Horizontal">
            <telerik:RadPane ID="TitlePane" runat="server" Height="75" MinHeight="75" MaxHeight="75" Scrolling="none" BackColor="Lime">
            </telerik:RadPane>
            <telerik:RadPane ID="NestedPane" runat="server" Scrolling="none">
                <telerik:RadSplitter ID="NestedSplitter" runat="server" Height="100%" Width="100%" Orientation="Horizontal">
                    <telerik:RadPane ID="LeftPane" runat="server" width="50%" BackColor="Blue">
                            <div style="display:block; height:200px;"></div>
                            <div><telerik:RadButton ID="RadButton0" runat="server" Text="RadButton0"></telerik:RadButton></div>
                            <div><telerik:RadButton ID="RadButton1" runat="server" Text="RadButton1" ButtonType="ToggleButton" ToggleType="CheckBox"></telerik:RadButton></div>
                            <div><telerik:RadButton ID="RadButton2" runat="server" Text="RadButton2" ButtonType="ToggleButton" ToggleType="Radio"></telerik:RadButton></div>
                            <div><telerik:RadButton ID="RadButton3" runat="server" Text="RadButton3" ButtonType="LinkButton"></telerik:RadButton></div>
                            <div><asp:Button ID="RadButton4" runat="server" Text="RadButton3" ButtonType="LinkButton"></asp:Button></div>
                    </telerik:RadPane>
                    <telerik:RadPane ID="ContentPane" runat="server" Scrolling="none" Width="100%" Height="100%">
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </form>
</body>
</html>


Cheers,
Toby
Toby
Top achievements
Rank 1
 answered on 28 Jul 2011
2 answers
65 views
Hi,
Would like to understand more on the workings of using RadAjaxManager.
Does it still perform a full postback page lifecycle, meaning that the actual response time using RadAjaxManager or a full postback is the same?

The only difference is the perceived response time because only the affected control is updated?


STEVEN
Top achievements
Rank 1
 answered on 28 Jul 2011
3 answers
196 views
I can tell a column to do a sum of all its values and the sum will be displayed in the footer fo the grid. How exactly does the grid do this? Is it using Linq? I ask because I need to do a custom aggregate, and in order to do this custom aggregate i need all of the values in the column for each group.

For example, if I could do something along the lines of "select all values from rad grid where column = e.column and group =  ??" that would be great. As you can see I'm not really sure how to know what group I am in either. I've seen examples using looping in the PreRender event but how can this be done in the CustomAggregate event?

Thanks!
nFocus
Top achievements
Rank 1
 answered on 28 Jul 2011
2 answers
196 views
when in my Window i call oWindow.close(); it works perfect for both IE/89 and Mozila 4/5
but in Chrome somthing funny is happening. it closes the window then it opens an empty  window !!!

this is how i call the window (MainPage.aspx)

            <telerik:RadWindow ID="RadWindow_QuikInfo" runat="server" Behavior="Default" InitialBehavior="None"
                    ShowContentDuringLoad="false" OpenerElementID="Button1" 
                    VisibleOnPageLoad="false" NavigateUrl="~/Win1.aspx" 
                    Behaviors="Close,Move,Resize,Reload" >
            </telerik:RadWindow>

and this is how i try to close window (Win1.Aspx)

            function AdjustRadWidow() {
                var oWindow = GetRadWindow();
                if (1 == 1) oWindow.close();
                setTimeout(function () { oWindow.autoSize(true); if ($telerik.isChrome || $telerik.isSafari) ChromeSafariFix(oWindow); }, 500);
            } 
Ashim
Top achievements
Rank 1
 answered on 28 Jul 2011
4 answers
368 views
This must be very simple, so I assume I am at fault for not knowing how to do it!

I have a RadGrid with a check-box (not populated from the data-source) as follows:

<telerik:RadGrid ID="rgYoungWeber" runat="server" AllowSorting="true" AllowPaging="true" PagerStyle-Position="Top" DataSourceID="sdsYoungWeber" AutoGenerateColumns="false">
  <MasterTableView>
    <Columns>
      <telerik:GridBoundColumn DataField="Year" HeaderText="Year"></telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="Author" HeaderText="Author"></telerik:GridBoundColumn>      <telerik:GridBoundColumn DataField="Page" HeaderText="Page"></telerik:GridBoundColumn>
      <telerik:GridTemplateColumn>
        <ItemTemplate><asp:CheckBox id="cb" runat="server" /></ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

I want to be able to select certain items for printing by ticking the relevant boxes.  I can tick the boxes perfectly well but if I change page and then come back again, the ticks are removed.  How can I enable them to retain their state?  I am using a RadAjaxManagerProxy on the page (with a RadAjaxManager in the corresponding master-page) for partial post-backs: I have tried removing this but the check-boxes still lose their state after paging.

I am using Telerik DLL 2010.2.713.40 under Windows Server 2008.

All answers gratefully received,

Ed Graham
Allen
Top achievements
Rank 2
Iron
Veteran
 answered on 27 Jul 2011
0 answers
98 views
Hi,
I am displaying a grid in the window.sohwModalDialog(xxx.aspx).
When I try to add a new record or refresh on that modal dialog it is opening a new window.

Can anyone help me out with this.

Regards,
Arvind
Top achievements
Rank 1
 asked on 27 Jul 2011
1 answer
89 views
Scroll Bar Add Extra White Sapace instead of Grid Header Theme Continue whenever we are using Static Header with Scroll Bar its Showing in Attached image .
Tell me how i should remove this problems.



ram
James Daresta
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
71 views
Class People
    Property Name As String ()
    Property IsAssigned As Boolean
End Class

Class Assignment
    Property ManagerName As String ()
    Property AssignmentDetails As String ()
    Property AssignedToList As List (Of People)
End Class

I have a requirement where i have a Telerik grid which is bound to a list of a custom collection. The structure of the collection is
List (Of Assignment), which is bound to my grid. I have a couple of bound columns which are bound to the string properties. I also have a template column, where i want to have another grid, which gets bound to AssignedToList. This binding should be two-way. How can I achieve this ?

Pavlina
Telerik team
 answered on 27 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?