Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
297 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
333 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
92 views
Eyup
Telerik team
 answered on 01 Nov 2013
1 answer
189 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
89 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
728 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
563 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
468 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
112 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
104 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?