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

In radgrid to allow row selection we are adding following lines of code in the grid

<

 

ClientSettings>

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

<ClientEvents OnRowDblClick ="RowSelectedCarrierName" ></ClientEvents>

 

 

</ClientSettings>

 


I want implement this event on cell click. for each cell click in a grid I want call a script and want access the value of selected cell.
How can I do this?

Thanks in advance,
Medac
Venelin
Telerik team
 answered on 18 Jul 2013
6 answers
480 views
I have a radgrid in batch cell edit mode using advanced databinding and I can not get any of the itemUpdate, itemDeleted itemCommand to fire?  Does batch editing not work with advanced databinding?  Wiill it only work with a datasource??

Konstantin Dikov
Telerik team
 answered on 18 Jul 2013
2 answers
174 views
I'm struggling to find a way to retrieve if any cell has really been modified through batch editing.
I'd like to show the SAVE CHANGES and CANCEL CHANGES buttons, only if some editing really took place.
I already found to show/hide a button inside a toolbar in the Command Item template but I'm struggling to know if is there any cell that have been modified (when the little red triangle in the corner appear).
I went down to the ._changes object but with no much luck since the object is empty at start but if you modify a cell and then revert it back to initial value, the ._changes object is no more empty even if no red triangles appear and no batch editing happened after all.

Here is what I come up with so far (but it doesn't work for the reason above):

function ShowBatchUpdateButton() {
    var toolBar = $find("RadToolBar1");
    var button = toolBar.findItemByText("Nuovo");
    var grid = $find("<% = RadGrid1.ClientID %>");
    if (!jQuery.isEmptyObject(grid.get_batchEditingManager()._changes)) {
        button.set_cssClass("ShowGridCommandBarButton")
    } else {
        button.set_cssClass("")
    }
}

How can I spot if there are any red marks on the grid? (because this is what I'm looking for to show/hide the UPDATE and CANCEL buttons in real time)
Massimiliano
Top achievements
Rank 1
 answered on 18 Jul 2013
2 answers
138 views
Hi,
I got a problem with radcombox like here:
addReportDocByVTHS.ascx
<
telerik:RadComboBox ID="ddltype" runat="server" Label="Doc Type: " Width="200px">
</telerik:RadComboBox>
and in my parent usercontrol i call addReportDocByVTHS.ascx like this:
UserControl_ReportDoc_addReportDocByVTHS control = (UserControl_ReportDoc_addReportDocByVTHS)this.Page.LoadControl("~/Usercontrol/ReportDoc/addReportDocByVTHS.ascx");
        if (control != null)
        {         
            control.modalContainer = pnlInsert_ModalPopupExtender.ID.ToString();
            control.AfterClickLuu += new EventHandler(btsearch_Click);
            if (!pnlInsert_child.Controls.Contains(control))
            {
                pnlInsert_child.Controls.Add(control);
                pnlInsert_ModalPopupExtender.Show();
            }
            Session["action"] = "insert";
        }
//load dropdownlist
ddltype.DataSource = F_DocType.GetList();
        ddltype.DataTextField = "DOC_TYPENAME";
        ddltype.DataValueField = "DOC_TYPE";
        ddltype.DataBind();
here is my parent usercontrol.ascx like:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<asp:HiddenField ID="hdfMacv" runat="server" />   
<asp:ModalPopupExtender ID="pnlInsert_ModalPopupExtender" runat="server"
     Enabled="True" TargetControlID="hdfMacv" PopupControlID="pnlInsert"
    BackgroundCssClass="modalBackground" 
    ></asp:ModalPopupExtender>
    
<asp:Panel ID="pnlInsert" runat="server" CssClass="ModalWindow"  style="display:none">   
        <asp:PlaceHolder ID="pnlInsert_child" runat="server" EnableViewState="false">
        </asp:PlaceHolder>
</asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel

My combobox can't shown down when i click, i only can press "up" and "down" keyboard to choose.
would I miss anything.please tell me. thanks

trunghth
Top achievements
Rank 1
 answered on 18 Jul 2013
5 answers
187 views
Hello,
I need to have information on loading speed records in a grid.
 it is better to load the data with a webserviceor use a simple databinding or for example a databinding to datareader or arrylist?
Maria Ilieva
Telerik team
 answered on 18 Jul 2013
11 answers
597 views
Hello,

We had created a support ticket - 664435.

We have posted this,

Currently, we need  Telerik grid to allow data loding on demand. i.e we have huge data set that we are trying to assign to grid but then we get 'MaxJSONLength' error. The telerik grid allows to do custom paging by setting VirtualItemCount but then the data fetching has to be handled by the user. Also, the sorting and filtering can not work as we bind only current page data to the grid. We need support so that we can bind data on demand to the telerik grid and it should be able to work with sorting and filtering.

We got reply as below,

Currently the RadGrid provides virtual scrolling mechanism which could properly work with paging and sorting and not a clean built in load on demand. See the online demo below for more information on this matter:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx

But if you check above link, sorting is working on just current page's data and not on Entire dataset.  So is it possible that sorting and filtering work for entire data, along with facility of loading grid data on demand?
Maria Ilieva
Telerik team
 answered on 18 Jul 2013
1 answer
76 views
We have a RadTextBox in multiline textmode  is displaying odd behaviour in IE8.  When the text reaches the lower part of the textbox and new lines are needed the RadTextBox scrolls back to the top on every key stroke. Causing the entire text to in the control to jump up and down like a Jack Russell Terrier.

Any help is greatly appreciated.
Eyup
Telerik team
 answered on 18 Jul 2013
1 answer
139 views
I've one gridview and that contains checkbox template field with checkedchaged event. I have 29 static rows in the gridview. If I select checkbox in any record in the gridview, gridview is getting refresh and it is going to first position (still checkbox is showin as checked this is correct only). Here my problem is once I selct any checkbox record, gridview position should show same position instead of showing first position. 
Eyup
Telerik team
 answered on 18 Jul 2013
7 answers
3.2K+ views
How to add a Custom Button to the CommandItem TableRow of my RadGrid control which is inside an updatepanel and enable it to have a Click event and full postback?

Thanks,
Vasil
Telerik team
 answered on 18 Jul 2013
6 answers
285 views
Hello,

I have created few custom controls and have added it to the RadAjaxManagerProxy control. We implement some logic when the control's visible property is set. What I noticed is after adding my control 'txtFirstName' to the RadAjaxManagerProxy, the visible property is set to 'false'. This is causing some undesired actions in our app. The visible property is not set by the code. I have attached the stacktrace for reference. Please assist.

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSubmit">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="txtFirstName" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Thanks
Rohit Kamble
Maria Ilieva
Telerik team
 answered on 18 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?