Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
146 views
In my radgrid, on click of AddNewRecord, I open a user control with a search textbox and button. To hide the AddNewRecordButton and Header I have on RadGrid1_ItemCommand I have the following:
if (e.CommandName == RadGrid.InitInsertCommandName)
{
         this._RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;
         this._RadGrid1.MasterTableView.ShowHeader = false;                     
 }
But when the search textbox retrieves results and I select one of the entries, a postback is done to display the selected the value, after which the header and AddNewRecordButton are again visible though, the user control is still open. Is there a way to hide it after the postback?
Eyup
Telerik team
 answered on 03 Nov 2014
1 answer
93 views
Hi,

In out project, we are dynamically creating RadGrid and Merging rows 

It is not working when user control which contains RadGrid loads first time but when postback occurs it is working i.e  it shows merged rows.

Please let me know what problem is causing this behaviour. 

This is urgent so please let us know as soon as possible

Thanks in advance


Pavlina
Telerik team
 answered on 03 Nov 2014
1 answer
78 views
I have a grid with a GridClientSelect column. Clicking anywhere in the row other than the checkbox for that row causes all other selected/checked rows to deselect. How do I stop this. I want the row to only be selected by clicking the checkbox. I have shown in attached screenshots.
Pavlina
Telerik team
 answered on 03 Nov 2014
10 answers
1.5K+ views
Hi,

I have a quick question.

I'm trying to implement the RadGrid in BatchEdit mode.

I need to customise validation on some fields, and to do so I need to 'wire up' the event behind 'Add new record' button embedded on the grid.
E.g. the user added a new row/record and before adding another one I need to validate the added data.

I'm able to capture the events behind the 'Save changes' and 'Cancel changes' grid buttons but haven't been able to track down the 'Add new record'.

What are the client side and server side events behind this button?

Thank you in advance.

Konstantin Dikov
Telerik team
 answered on 03 Nov 2014
1 answer
139 views
Hi,

The RadAutoCompleteBox allows me to select items that were already selected.
That way it allows the user to duplicate items selected.

I't happens the same way on that sample http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx

When i press 'n' and select Nancy. It goes to the box.
Then i press 'n' and select Nancy again. The i get 2 Nancyes on the box.

Is it expected?
Can i prevent it from showing selected items on the Drop Down?

Thanks in advance.
Nencho
Telerik team
 answered on 03 Nov 2014
14 answers
198 views
Hi,

Which Telerik control should I use for a Wizard Based ASP.NET Pages? Does Telerik have something similar to Microsoft ASP Wizard Control?

Thanks
Rumen
Telerik team
 answered on 03 Nov 2014
1 answer
130 views
when executing telerik demos, there is a dropdown list displayed by default and contains a default item.
I need to remove this dropdown but, i do not know How?

the code of this dropdown in view source:
<tr class="rcbReadOnly">
<td class="rcbInputCell rcbInputCellLeft" style="width:100%;"><input name="SkinChooser" type="text" class="rcbInput radPreventDecorate" id="SkinChooser_Input" value="Default" readonly="readonly" autocomplete="off"></td><td class="rcbArrowCell rcbArrowCellRight"><a id="SkinChooser_Arrow" style="overflow: hidden;display: block;position: relative;outline: none;">select</a></td>
</tr>
Nencho
Telerik team
 answered on 03 Nov 2014
2 answers
161 views
I have a page with Radtreeview enable drag & drop. I implement a radconfirm to check exist node name when drop nodes

Script on client node dropping

 
function onNodeDropping(sender, args) {
           var dest = args.get_destNode();
           var source = args.get_sourceNode();
           if (dest) {
               var result = false;
               for (var i = 0; i < dest.get_nodes().get_count() ; i++) {
                   var node = dest.get_nodes().getNode(i);
                   if (node.get_text() == source.get_text()) {
                       result = true;
                       break;
                   }
               }
               if (result) {
                   callConfirm(source.get_text());
                   return;
               }
           }
           else {
               dropOnHtmlElement(args);
           }
       }

And code to call confirm :

function callConfirm(nodeText) {
                        radconfirm(nodeText + ' folder is existing, Do you want to overwrite?', confirmCallBackFn);
                        return false;
                    }
                    function confirmCallBackFn(arg) {
                        var ajaxManager = $find("<%=RadAjaxManager1.ClientID%>");
                   if (arg) {
                       ajaxManager.ajaxRequest('ok');
                   }
                   else {
                       ajaxManager.ajaxRequest('cancel');
                   }

Code of RadAjaxManager1_AjaxRequest
if (e.Argument.ToString() == "ok")
            {
                lbStatus.Text = "OK";
            }
            else if(e.Argument.ToString() == "cancel")
            {
                lbStatus.Text = "Cancel";
            }

But when drop an item on Radtreeview to another Node that the same node name, RadTreeView_NodeDrop event always fire before RadAjaxManager1_AjaxRequest. How to solve it?


Hristo Valyavicharski
Telerik team
 answered on 03 Nov 2014
2 answers
1.4K+ views
Hi,

I wonder how to bind a ComboBox in the new Control DataForm.

I have created a script as follows.

aspx
....
        <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="100%" Width="100%" HorizontalAlign="NotSet" LoadingPanelID="baseLoadingPanel" OnAjaxRequest="RadAjaxPanel2_AjaxRequest">
            <telerik:RadDataForm ID="detailsView" runat="server" OnPreRender="detailsView_PreRender">
                <ItemTemplate>
                    <table class="InputTable" border ="1">
                        <tr>
                            <td>
                                   <telerik:RadComboBox ID="comboBoxItem" runat="server"  SelectedValue='<%# Eval("item") %>' Width="100%" ValueType="System.String">
                                   </telerik:RadComboBox>
                            </td>
                        </tr>
...


aspx.cs
protected void detailsView_PreRender(object sender, EventArgs e)
{
    RadComboBox comboBox = (RadComboBox)detailsView.FindControl("comboBoxItem");
    if(comboBox!=null)
    {
        DataTable dataTable = new DataTable();
        dataTable = SelectCommonCode(codeKind, whereclause);
 
        comboBox.DataSource = dataTable;
        comboBox.DataTextField = "codename";
        comboBox.DataValueField = "code";
        comboBox.DataBind();
    }
         
}

however, if(comboBox!=null)  <---- here is always null.

Please tell me the right way.

thx
Yoongu
Top achievements
Rank 1
 answered on 03 Nov 2014
2 answers
678 views
I am trying to design my web form in VS2010 but when i run it ....the &nbsp automatically adding on my form and it collapses all my designing....... how can i solve it?
praveen
Top achievements
Rank 1
 answered on 02 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?