Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views
We use radwindow to display reports online, but when the minimize is clicked the window does reduce down to the title bar as expected, but where the radwindow consumed a portion of the screen this is then white and what is underneath is not shown. But when I drag the title bar the white space is removed and the rest of the page is then visible. Please note that before the drag operation after the minimize has occurred none of the clickable page elements (e.g. buttons or anchor points) work until the operation has been done.

Any ideas?
Vessy
Telerik team
 answered on 01 Nov 2013
12 answers
303 views
i'm creating a checboxlist on edit radgrid but i cant find the checkboxlist it self. i cant understand where im missing it.

'm getting the data on need datasource event and then switch it to checklistbox

[deleted]
Antonio Stoilkov
Telerik team
 answered on 01 Nov 2013
6 answers
339 views
This grid (which should use Windows7 skin) isn't displaying correctly after upgrading to the latest RadAjax tools.  I've attached what it looks like now (gridnosking.png) and what it used to look like (gridskin.png)
<telerik:RadGrid ID="grdAliases" runat="server" DataSourceID="daAliases" AutoGenerateColumns="False" CellSpacing="0" AutoGenerateEditColumn="True"
    AutoGenerateDeleteColumn="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" Skin="Windows7" GridLines="None">
    <MasterTableView DataKeyNames="Id" DataSourceID="daAliases" CommandItemDisplay="Top" NoDetailRecordsText="No aliases for this offender." NoMasterRecordsText="No aliases for this offender.">
        <EditFormSettings>
            <EditColumn ButtonType="PushButton"></EditColumn>
        </EditFormSettings>
        <CommandItemSettings AddNewRecordText="Add Alias" ExportToPdfText="Export to PDF" ShowRefreshButton="False"></CommandItemSettings>
        <Columns>
            <telerik:GridBoundColumn DataField="Id" ReadOnly="True" HeaderText="Id" SortExpression="Id" UniqueName="Id" DataType="System.Int32" Display="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OffenderId" HeaderText="OffenderId" ReadOnly="true" SortExpression="OffenderId" UniqueName="OffenderId" DataType="System.Int32" Display="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Name" HeaderText="Name (Last, First, Middle)" SortExpression="Name" UniqueName="Name">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn DataField="Ssn" HeaderText="SSN" UniqueName="colSsn" >
                <ItemTemplate>
                    <asp:Label ID="lblSsn" runat="server" Text='<%# SorBll.Util.FormatSsn(Eval("Ssn")) %>'></asp:Label>
                </ItemTemplate>
                <InsertItemTemplate>
                    <telerik:RadMaskedTextBox ID="txtSsn" runat="server" Mask="###-##-####" Text='<%# Bind("Ssn") %>'></telerik:RadMaskedTextBox>
                </InsertItemTemplate>
                <EditItemTemplate>
                    <telerik:RadMaskedTextBox ID="txtSsn" runat="server" Mask="###-##-####" Text='<%# Bind("Ssn") %>'></telerik:RadMaskedTextBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn DataField="Dob" HeaderText="DOB" UniqueName="colDob" >
                <ItemTemplate>
                    <asp:Label ID="lblDob" runat="server" Text='<%# SorBll.Util.FormatNullableDate(Eval("Dob")) %>'></asp:Label>
                </ItemTemplate>
                <InsertItemTemplate>
                    <telerik:RadDatePicker ID="txtDob" runat="server" MinDate="1/1/1900" DbSelectedDate='<%# Bind("Dob") %>'></telerik:RadDatePicker>
                </InsertItemTemplate>
                <EditItemTemplate>
                    <telerik:RadDatePicker ID="txtDob" runat="server" MinDate="1/1/1900" DbSelectedDate='<%# Bind("Dob") %>'></telerik:RadDatePicker>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="Timestamp" HeaderText="Timestamp" ReadOnly="true" SortExpression="Timestamp" UniqueName="Timestamp" DataType="System.DateTime" Display="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Any ideas?

Thanks!

Kevin

Update: I have some other grids within a set of RadTabs which are displaying fine until I try to add a new record.  Then the skin format goes away.
Maria Ilieva
Telerik team
 answered on 01 Nov 2013
1 answer
94 views
Eyup
Telerik team
 answered on 01 Nov 2013
1 answer
198 views
Hi,

I am trying to Ajaxify the RadHtmlChart.

Please note that this is in a custom Web Part in SharePoint 2010.

On my page I have a RadHtmlChart that displays a donut chart. Clicking on a slice does a postback which displays the data in a RadGrid. I would like to ajaxify all of this so that there is no postback when a slice is clicked and data is shown in the RadGrid. I would also like to Ajaxify the RadGrid so when the sort/paging buttons are clicked then there is no full postback.

I have searched to find some examples but I have failed to find an example that demonstrates how to ajaxify the radhtmlchart therefore can you please kindly point me to an example or post code that will achieve this. A sample SharePoint 2010 Web Part that achieves this would be greatly appreciated.
Danail Vasilev
Telerik team
 answered on 01 Nov 2013
1 answer
93 views
I have two asyncupload controls on one page, each calls the same custom "FileHandler" which uploads the file to a database. How can I determine the ID of the asyncupload control that calls the handler from within the handler process code?

Peter Filipov
Telerik team
 answered on 01 Nov 2013
6 answers
736 views

Hi, when i put a link button in a columntemplate all work fine:

<telerik:GridTemplateColumn UniqueName="colTDet" HeaderText="Numero">  
            <ItemTemplate>  
                <asp:LinkButton ID="linkDetails" runat="server" CommandName="GetDetails" Text"I  
                </asp:LinkButton>  
            </ItemTemplate>  
</telerik:GridTemplateColumn> 
if i put a imagebutton, on click the item_Command event doesn't fire

<telerik:GridTemplateColumn UniqueName="colTDet" HeaderText="Numero">  
            <ItemTemplate>  
                <asp:ImageButton ID="linkDetails" runat="server" CommandName="GetDetails" Text="Dettagli" ></asp:ImageButton>  
            </ItemTemplate>  
</telerik:GridTemplateColumn> 

How can i put a clickable image that unleash an event on grid cell?

Thank you

Shinu
Top achievements
Rank 2
 answered on 01 Nov 2013
3 answers
569 views
Hello,

this is my first post . I got this error  Uncaught ReferenceError: ViewDetails is not defined
in google chrome . when i click on details button on my telerik grid. it work fine on IE 8. is anything wrong on script.

<script type="text/javascript">//language="javascript" 

            function ClientTabSelectedHandler(sender, eventArgs) {
                var tabStrip = sender;
                var tab = tabStrip.get_selectedTab();
                if (tab != null) {
                    var TabValue = tab.get_value();
                    var IsRebindVendorGrid = document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_IsPWVBind").value;
                    var IsRebindPWGrid = document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_IsPWBind").value;
                    if (TabValue == "PartItemByVendors") {
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_Save").style.display = "none";
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_CopyRecord").style.display = "none";
                        if (IsRebindVendorGrid != "1") {
                            refreshPartItemByVendors();
                        }
                    }
                    else if (TabValue == "PartItemByWarehouses") {
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_Save").style.display = "none";
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_CopyRecord").style.display = "none";
                        if (IsRebindPWGrid != "1") {
                            refreshPartByWarehouses();
                        }
                    }
                    else if (TabValue == "DrawingRevision") {
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_Save").style.display = "none";
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_CopyRecord").style.display = "none";
                    }
                    else {
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_Save").style.display = "inline-block";
                        document.getElementById("ctl00_MainContentPlaceHolder_Button_CopyRecord").style.display = "inline-block";
                    }
                }
            }
            function refreshPartItemByVendors() {
                __doPostBack('ctl00$MainContentPlaceHolder$rg_PartItemByVendors$ctl01$ctl02$ctl00$ctl02', '');
                document.getElementById("ctl00_MainContentPlaceHolder_Button_Save").style.display = "none";
                document.getElementById("ctl00_MainContentPlaceHolder_Button_CopyRecord").style.display = "none";
            }
            function refreshPartByWarehouses() {
                __doPostBack('ctl00$MainContentPlaceHolder$rg_PartByWarehouses$ctl01$ctl02$ctl00$ctl02', '');
                document.getElementById("ctl00_MainContentPlaceHolder_Button_Save").style.display = "none";
                document.getElementById("ctl00_MainContentPlaceHolder_Button_CopyRecord").style.display = "none";
            }

            function OnCheckedChanged(Check_IsInspectionReq) {

                if (Check_IsInspectionReq.checked == 1) {
                    document.getElementById("RadComboBox_Questionaire").disabled = false;
                }
                else {
                    document.getElementById("RadComboBox_Questionaire").disabled = true;
                }
            }
            function OpnPDFFile() {
                var PDFFilePath = document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_PDFFilePath").value;
                window.showModalDialog(PDFFilePath, "", "status: no; help: no; scroll: no; center: yes ; dialogWidth: 820px; dialogHeight: 600px");
            }

            function ShowPlannerBuyerAndMRPCtlEmployee(strURL) {
                var Role = strURL;
                var PlannerBuyerID;
                var selectedValue
                if (Role == 'IsPlanner') {
                    PlannerBuyerID = document.getElementById("ctl00_MainContentPlaceHolder_RadComboBox_Planner");
                    selectedValue = PlannerBuyerID.control._value;
                }
                else if (Role == 'IsBuyer') {
                    PlannerBuyerID = document.getElementById("ctl00_MainContentPlaceHolder_RadComboBox_Buyer");
                    selectedValue = PlannerBuyerID.control._value;
                }
                else {
                    PlannerBuyerID = document.getElementById("ctl00_MainContentPlaceHolder_RadComboBox_MRPController");
                    selectedValue = PlannerBuyerID.control._value;
                }
                var URL = 'ManagePopup_PlannerBuyerEmployees.aspx?' + Role + '&PlannerBuyerID=' + selectedValue;
                var PopupWindow = radopen(URL, "RadWindow_StatusChange");
                PopupWindow.Center();
            }

            function ViewDetails(SKUNumber, PartItemID, WareHouseID) {
                var oSKUNumber = SKUNumber;
                var oPartItemID = PartItemID;
                var oWareHouseID = WareHouseID;
                var PopupWindow = radopen("ManagePartItemByWareHouseDataView.aspx?SKUNumber=" + SKUNumber + "&PartItemID=" + PartItemID + "&WareHouseID=" + WareHouseID, "RadWindow1");
                PopupWindow.Center();
            }

            function refreshGrid(args) {
                if (args == "RebindPartsByWareHouseGrid") {
                    var grid =  $find("<%= rg_PartByWarehouses.ClientID %>").get_masterTableView();
                    grid.rebind();
                }
            }

            function document.onkeydown() {               
                if (window.event.keyCode == 13) {
                    window.event.keyCode = 9;
                }
            }
            
        </script>
Eyup
Telerik team
 answered on 01 Nov 2013
6 answers
477 views
Hi,
Since upgrade to Q2 2013 version of Telerik, we get messages from our users who haves issue with exporting of WebGrid to Excel from IE. It don't matter which contents the Excel haves, it will produce a corrupt file 1 of 5 times. 

I have tried it from your demos and can reproduce it here as well, but with a little different.
http://demos.telerik.com/aspnet-ajax/grid/examples/export/biffexport/defaultcs.aspx

- Do the first export to Excel
- Choose to open the Excel file (not download/save)
- Keep the Excel window open
- Do export to Excel again
- Open the export file
- It looks it exported the menu left, not the content from the grid.

Do this multiple times until you get it. 

Known issue?

Kind regards,
Jelle
Erick
Top achievements
Rank 2
 answered on 01 Nov 2013
1 answer
118 views
Hi All ,

I am using grid control and enabled EditMode="EditForms" , when I try to edit a row numbers are displayed incorrectly as below 

Number on grid Display : ($267,641.00)
Number in Edit box : -,267,641.00

Comma between "-" and "2" , can anybody suggest to overcome this issue .

Thanks
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?