Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
211 views
I have radgrid1 for the inline editing and I have Edit, Add New Record, Delete links but also I added extra gridboundbutton called " search" and I wan to put a pop up panel for that in ItemCommand.. but my panel is not showing up.. I have searched that it says if I would have want to do my edit pop up panel I could have add EditMode = popup on the aspx page but I am not sure how to do that for the Search link, because I dont want to add pop up to Edit, Add new record , Delete functionalities.. just for Search .

 <radG:GridButtonColumn  ButtonType="LinkButton"
                          CommandName="Search" UniqueName="Search" >
                          <HeaderStyle />
                          <ItemStyle HorizontalAlign="Center" />
                      </radG:GridButtonColumn>
Veli
Telerik team
 answered on 30 Jun 2010
1 answer
82 views
From the help, these two functions are same.
Rumen
Telerik team
 answered on 30 Jun 2010
6 answers
219 views
Hi,

Can you please point me to an example that uses linq data as a source for the grid in the scenario something like below:

 

 

 

 

protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

    RadGrid1.DataSource =

 

this.GridSource2;

 

}

 

 

 

private object GridSource2

 

{

 

 

get

 

 

 

 

 

{

 

 

Object obj = this.ViewState["_gds"];

 

 

 

if (obj != null)

 

{

 

 

return obj;

 

}

 

 

else

 

 

 

 

 

{

 

 

string s;

 

 

 

 

 

 

 

 

 

 

object ss = from i in EntityConnection.INVENTORY select new { i.INV_DEVICENAME, i.INV_DEVICETYPE };

 

 

 

this.ViewState["_gds"] = ss;

 

 

 

return ss;

 

}

}

}

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 30 Jun 2010
2 answers
172 views
I have a simple grid where I allow sorting. the datasource is filled with the needdatasource event. This funtion puts an IEnumerable<Canidate> into the datasource.
When I click the header of a column for the first time, everything works wel. When I click the header of the column next to the previous column, the column to right of the column I clicked is then sorted. also the sortmode is not changing when click multiple times on the same header. I have also tested this with auto generate columns, but this produces the same error.

Does anyone has an idea what is going on?

here is my code behind:

  protected void CandidateListGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        { 
            RadComboBox lastNameInput = (RadComboBox)FilterData.FindControl("LastNameInput"); 
            RadComboBox firstNameInput = (RadComboBox)FilterData.FindControl("FirstNameInput"); 
            RadDatePicker dateLastContractFromInput = (RadDatePicker)FilterData.FindControl("DateLastContractFromInput"); 
            RadDatePicker dateLastContractUntilInput = (RadDatePicker)FilterData.FindControl("DateLastContractUntilInput"); 
            RadComboBox StatusComboBox = (RadComboBox)FilterData.FindControl("StatusComboBox"); 
 
            var statusItems = from itm in StatusComboBox.Items 
                              where ((CheckBox)itm.FindControl("CheckBox")).Checked 
                              select itm.Value; 
 
            CandidateListGrid.DataSource = this.presenter.ListCandidates( 
                ((lastNameInput != null) ? lastNameInput.Text : ""
                , ((firstNameInput != null) ? firstNameInput.Text : ""
                , statusItems 
                , ((dateLastContractFromInput != null) ? dateLastContractFromInput.SelectedDate : DateTime.MinValue) 
                , ((dateLastContractUntilInput != null) ? dateLastContractUntilInput.SelectedDate : DateTime.MinValue) 
                ); 
             
        } 

here is my ascx

 <telerik:RadGrid ID="CandidateListGrid" runat="server" AllowPaging="True" AllowSorting="true" GridLines="None" 
        AutoGenerateColumns="False" PageSize="10" 
        AllowMultiRowSelection="True" EnableEmbeddedSkins="False" Skin="USGFOEXTelerik" 
        OnNeedDataSource="CandidateListGrid_NeedDataSource" > 
        <MasterTableView ClientDataKeyNames="ID"
            <Columns> 
                <telerik:GridBoundColumn DataField="LastName" HeaderText="Naam" SortExpression="LastName" 
                    UniqueName="LastName"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="FirstName" HeaderText="Voornaam" SortExpression="FirstName" 
                    UniqueName="FirstName"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ContractState" HeaderText="Status" SortExpression="ContractState" 
                    UniqueName="ContractState"
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="LastContractDate" DataType="System.DateTime" 
                    HeaderText="Laatste contract" SortExpression="LastContractDate" UniqueName="LastContractDate"
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 
here is my Candidate class:

  public class Candidate 
    { 
        public int Id { getset; } 
        public string FirstName { getset; } 
        public string LastName { getset; } 
        public DateTime LastContractDate { getset; } 
        public string ContractState { getset; } 

Michaël Kiekens
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
315 views
I have the data that can be numbers and characters like this:
--> a1009-2010
--> 90007-abcd

How to please????

Thanks
Brew
Daniel
Telerik team
 answered on 30 Jun 2010
2 answers
161 views
Hi,
I need to completely remove RadEditor Toolbars. How can I do this with javascript?

Alex
Top achievements
Rank 1
 answered on 30 Jun 2010
3 answers
79 views
Hello

I am needing a two tier grid hierarchy but the in bedded table i want to be able to edit the columns per record in the mastertable. Is there a way to do this. 


Thanks in advance
Jed Fletcher
Top achievements
Rank 1
 answered on 30 Jun 2010
6 answers
168 views
[aspx]
<telerik:RadTreeView ID="RadTreeView1" Runat="server" >
                <NodeTemplate>
                        <div>
                            <asp:CheckBox ID="CheckBox_IsChoosed" runat="server" onclick="OnCheckedChanged()"/>
                            ..........(other controls)
                        </div>
                </NodeTemplate>
</telerik:RadTreeView>

[My Question]
I want to use client javascript codes to deal with the CheckBox'  checked changed event. But in the javascript OnCheckedChanged(), how can I locate the node in which the CheckBox is changed?
If I used the RadTreeView' OnClientNodeClicked, I have no idea of way to make sure which control in the template fire the OnClientNodeClicked.

Thanks
David zhao
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
79 views
Hey guys,

I have a RadGrid setup with a WebUserControl used as the editform. On my WebUserControl i have a RadGrid containing a column of associated ID numbers, and a custom delete GridButtonColumn. The data used for this RadGrid is programmatically bound durring the RadGrid Pre-Render event. When i click the delete button and it fires the DeleteCommand event i am not able to access the RadGrid's datasource. I have tried many variations of code and still cannot access this property successfully. Any help is appreciated, Thanks in advance
Nikolay Rusev
Telerik team
 answered on 30 Jun 2010
1 answer
101 views
Hello
A RadDatePicker placed in the content template of a RadWindow, that is placed inside of an update panel, cause javascript "Sys.InvalidOperationException: Two components with the same id '' can't be added to the application." exception on postback.
To get it follow repro steps below.

Using Telerik.Web.UI.dll  2010.1.429.20 version.
Repro steps:
1) Create a Web Form
2) Use this code as the form source:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
    <div> 
    <telerik:RadAjaxManager runat="server" ID="ajaxManager"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="radWindow"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="radWindow" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
     
    <telerik:RadWindow runat="server" ID="radWindow" VisibleOnPageLoad="true"
         
        <ContentTemplate> 
            <telerik:RadDatePicker AutoPostBack="true" runat="server" ID="radDatePicker"></telerik:RadDatePicker> 
        </ContentTemplate> 
     
    </telerik:RadWindow> 
    </div> 
    </form> 
</body> 
</html> 
3) Open the form in a browser
4) Pick up a date
5)Observe javascript exception "Sys.InvalidOperationException: Two components with the same id 'radWindow_C_radDatePicker' can't be added to the application."
Please provide a workaround as soon as possible.
Pavel
Telerik team
 answered on 30 Jun 2010
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?