Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
Eyup
Telerik team
 answered on 01 Nov 2013
1 answer
154 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
63 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
690 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
511 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
416 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
81 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
1 answer
75 views
Hello Telerik-Support,

when picking a date with the RadDatePicker in korean culture the control always sets the current Date instead of the picked one.

function setCalendarTable() {
 
    var picker = $find(_RadDatePicker_ID);
    var calendar = picker.get_calendar();
    var fastNavigation = calendar._getFastNavigation();
 
fastNavigation.OnOK =
        function () {
            var date = new Date(fastNavigation.Year, fastNavigation.Month, 1);
            picker.get_dateInput().set_selectedDate(date);
            fastNavigation.Popup.Hide();
            document.getElementById(_hiddenDate_ID).value = new Date().ticks(picker.get_selectedDate());
           
        };

This Bug occurs when calling the set_selectedDate(date)-Method and it only occurs when in korean culture. Other cultures ( e.g. german, us, polish, ...) work just fine with the Datepicker.

I am thankful for any suggestions on how to fix this.

Kind Regards,

Nicolas Hanstein
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2013
6 answers
233 views
I have 2 GridButtonColumns mapped to distinct Items..  a hyperlink Activate/De-Activate and and the 2nd item contains an imageButton for Delte both of which map to CommandName="Delete". In the OnDeleteCommand handler for the grid in the code behind how do I distinguish the GridEditableItem ImageButton with uniqueName="Delete" from trhe hyperlink with UniqueName="De-Activate" ?  I have tried retrieving sender.Gettype.Name and some other ways but do not see a straightforward way to tell which control sent the Delete Command in the handler. Please provide some insight at the earliest. Version used is 2010.35... etc.


<telerik:GridButtonColumn CommandName="Delete" HeaderText="" UniqueName="De-Activate"
                                HeaderStyle-Width="80px" ConfirmDialogType="Classic">
                            </telerik:GridButtonColumn>
                             <telerik:GridButtonColumn CommandName="Delete" HeaderText="Delete" ButtonType="ImageButton"
                                UniqueName="Delete" Text="Delete" HeaderStyle-Width="80px" ConfirmDialogType="Classic">
                            </telerik:GridButtonColumn>
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
1 answer
98 views
Hi all,

my grids are behaving like they were case sensitive is there a way to stop that???

Best Regards
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?