Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hi..
I have a few controls like checkboxes in a Panel Bar, which are hosted in User Control...
But the events like, OnCheckedChanged, never fire in these controls... any idea what I'm doing wrong?  thanks

<

 

 

telerik:RadPanelBar ID="RadPanelName" runat="server"

 

 

 

Width="290px" onitemclick="RadPanelName_ItemClick">

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem runat="server" Text="Record Name Filter"

 

 

 

Owner="RadPanelName">

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem runat="server" Width="240px" BackColor="#CCCCCC">

 

 

 

 

<ItemTemplate>

 

 

 

 

<table class="style2">

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td class="style4">

 

 

 

<asp:CheckBox ID="chkALLNAME" runat="server" Text="All" OnCheckedChanged="CHK_ALLNAME_CheckedChanged"

 

 

 

Font-Names="Verdana" Font-Size="12px" />

 

 

 

</td>

 

 

 

<td >

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td >

 

 

 

</td>

 

 

 

<td class="style4">

 

 

 

<asp:CheckBox ID="chkLASTNAME" runat="server" Text="Last Name"

 

 

 

Font-Names="Verdana" Font-Size="12px" /></td>

 

 

 

<td >

 

 

 

<telerik:RadTextBox ID="txtLASTNAME" Runat="server" MaxLength="100"

 

 

 

TabIndex="1" Width="165px">

 

 

 

</telerik:RadTextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td >

 

 

 

</td>

 

 

 

<td class="style4">

 

 

 

<asp:CheckBox ID="chkFIRSTNAME" runat="server" Text="First Name"

 

 

 

Font-Names="Verdana" Font-Size="12px" /></td>

 

 

 

<td>

 

 

 

<telerik:RadTextBox ID="txtFIRSTNAME" Runat="server" MaxLength="100"

 

 

 

TabIndex="2" Width="165px">

 

 

 

</telerik:RadTextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td class="style4">

 

 

 

<asp:CheckBox ID="chkTITLE" runat="server" Text="Title" Font-Names="Verdana"

 

 

 

Font-Size="12px" /></td>

 

 

 

<td >

 

 

 

<telerik:RadTextBox ID="txtTITLE" Runat="server" MaxLength="100"

 

 

 

TabIndex="2" Width="165px">

 

 

 

</telerik:RadTextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td >

 

 

 

</td>

 

 

 

<td class="style4">

 

 

 

<asp:CheckBox ID="chkORG" runat="server" Text="Org. Name" Font-Names="Verdana"

 

 

 

Font-Size="12px" /></td>

 

 

 

<td >

 

 

 

<telerik:RadTextBox ID="txtORG" Runat="server" MaxLength="100"

 

 

 

TabIndex="2" Width="165px">

 

 

 

</telerik:RadTextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td >

 

 

 

</td>

 

 

 

<td class="style4">

 

 

 

<asp:CheckBox ID="chkEmail" runat="server" Text="Email" Font-Names="Verdana"

 

 

 

Font-Size="12px" /></td>

 

 

 

<td >

 

 

 

<telerik:RadTextBox ID="txtEMAIL" Runat="server" MaxLength="100"

 

 

 

TabIndex="2" Width="165px">

 

 

 

</telerik:RadTextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

</telerik:RadPanelItem>

 

 

 

</Items>

 

 

 

</telerik:RadPanelItem>

 

 

 

</Items>

 

 

 

</telerik:RadPanelBar>

 

Helen
Telerik team
 answered on 05 Aug 2010
3 answers
148 views
All of the Public Methods of "StyleSheetReferenceCollection Class Members" result in the "MissingURL" page.
-- 
Stuart
Tsvetina
Telerik team
 answered on 05 Aug 2010
3 answers
203 views
I'm having a problem with the Radhtmlfield (in Sharepoint 2007).  In edit mode, when toggled to full-screen, it ducks behind other controls, so that the other controls are covering part of the Radhtmlfield.  I've tried setting z-index values for both the Radhtmlfield, and the other overlapping controls, but with no noticeable results.  Any suggestions, please?
thanks!!
-JeffV
Rumen
Telerik team
 answered on 05 Aug 2010
1 answer
122 views
Hai,

I have a dataset in the following way which is bound to a radgrid.

Id       Name
--------------------
1        USA
2        UK
3        FRANCE

I have one tab strip with 3 tabs USA,UK,FRANCE.  On clicking the UK tab, only the row which contains UK should be visible.

Is there any way?
Shinu
Top achievements
Rank 2
 answered on 05 Aug 2010
3 answers
131 views
Hi Telerik Team,

                       I have used radconfirm in my application. Right now when that confirm box appears the system doesn't produce any alert tones similar to a simple javascript alert or confirm. The end user is very insisting on getting notified when this boxes appear. Can you help in this regards, is there any way?.

i have opened the radconfirm by this script,

radconfirm(confirmString, confirmCallBackFn, 400, 150, "", "Window Title");

Regards,
Saravanan K
Georgi Tunev
Telerik team
 answered on 05 Aug 2010
1 answer
84 views
pop window open new separete file,now i am insert new record that is not added in grtid but added in datatbase,same as update and delete..give me good  solution..i follow u r sample..

With regards
S.Kannadasan
Mira
Telerik team
 answered on 05 Aug 2010
3 answers
194 views
In my page, I have 7 radgrid with edit formtemplate.
In the edit formtemplate I used several radcontrols like radcombobox, raddatetimepicker and radtextbox.
All are funtioning properly.
But when I click on edit on radgrid,  the edit template section, radcombobox and raddatetimepicker's skin
do not work. sometimes it comes and sometimes these don't. Then I used radstylesheetmanager...although
I face similar problem...skin is not working here.

NB: If I use it without ajaxified then this design is ok...but I need to be ajaxified...like your controls.

I wanted to use ajaxcontroltoolkit datetimepicker...I could not able to use that in the radgrid edit formtemplate section...

Please suggest me what are the possible cause...need urgent.

Code snippet:

 

<Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<Telerik:AjaxSetting AjaxControlID ="dgvDevelopmentActivity">

 

 

<UpdatedControls>

 

 

<Telerik:AjaxUpdatedControl ControlID ="dgvDevelopmentActivity" LoadingPanelID ="Radajaxloadingpanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />

 

 

</UpdatedControls>

 

 

</Telerik:AjaxSetting>

 

 

<Telerik:AjaxSetting AjaxControlID ="dgvFunctionalStrength">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<Telerik:AjaxUpdatedControl ControlID ="dgvFunctionalStrength" LoadingPanelID ="Radajaxloadingpanel1" />

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</Telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

</Telerik:RadAjaxManager>

 

 

<Telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">

 

 

</Telerik:RadStyleSheetManager>

 

<

 

Telerik:RadGrid ID="dgvLeadershipStrength" runat="server"

 

 

AllowMultiRowEdit="true" AllowPaging="True" AllowSorting="True"

 

 

AutoGenerateColumns="False" GridLines="None"

 

 

OnItemCommand="dgvLeadershipStrength_ItemCommand"

 

 

OnItemCreated="dgvLeadershipStrength_ItemCreated"

 

 

OnItemDataBound="dgvLeadershipStrength_ItemDataBound"

 

 

OnNeedDataSource="dgvLeadershipStrength_NeedDataSource" PageSize="7"

 

 

ShowStatusBar="true" Skin="Outlook" Width="750px">

 

 

<headercontextmenu enableautoscroll="True">

 

 

</headercontextmenu>

 

 

<mastertableview commanditemdisplay="Top" datakeynames="DetailID" dir="LTR" editmode="EditForms" >

 

 

<commanditemsettings addnewrecordtext="Leadership Strength" ShowRefreshButton ="false" />

 

 

<Columns>

 

 

<Telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit">

 

 

<ItemStyle Width="20px" />

 

 

</Telerik:GridEditCommandColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true" ColumnEditorID="txtVanish"

 

 

DataField="DetailID" HeaderText="Vanish" UniqueName="colVanished"

 

 

Visible="false">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true"

 

 

ColumnEditorID="ddlCompetency" DataField="Competency" HeaderText="Competency"

 

 

UniqueName="colCompetency">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true"

 

 

ColumnEditorID="ddlCompetencyArea" DataField="area" HeaderText="areas"

 

 

SortExpression="area" UniqueName="colCompetencyArea">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true" ColumnEditorID="ddlLevel"

 

 

DataField="level" HeaderText="Level" SortExpression="level"

 

 

UniqueName="colLevel">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true"

 

 

ColumnEditorID="ddlIndicator" DataField="Indicator" HeaderText="Indicator"

 

 

SortExpression="Name" UniqueName="colIndicator">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn DataField="Evidence" HeaderText="Evidence"

 

 

SortExpression="Evidence" UniqueName="colEvidence" />

 

 

<Telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"

 

 

HeaderText="Delete" UniqueName="DeleteColumn" />

 

 

</Columns>

 

 

 

<editformsettings editformtype="Template"

 

 

formstyle-backcolor="Transparent">

 

 

<editcolumn uniquename="EditCommandColumn1">

 

 

</editcolumn>

 

 

<formstyle backcolor="Transparent" />

 

 

<formtemplate>

 

 

<div style="width: 100%; height: 100%">

 

 

<table border="0" cellspacing="2" style="width: 100%; border-color: #99ccff">

 

 

<tr>

 

 

<td style="width: 10%; text-align: left; vertical-align: top;" visible="false">

 

 

<asp:Label ID="lblVanish" runat="server" CssClass="captionlbl" Visible="false"

 

 

Width="100px"><b>Vanish</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;" visible="false">

 

 

<Telerik:RadTextBox ID="txtVanish" runat="Server" AutoPostBack="True"

 

 

Text='<%# Eval("DetailID") %>' Visible="false" Width="500px">

 

 

</Telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 10%; text-align: left; vertical-align: top;">

 

 

<asp:Label ID="Competency" runat="server" CssClass="captionlbl" Width="100px"><b>Competency</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadComboBox ID="ddlCompetency" runat="Server" AutoPostBack="True"

 

 

OnSelectedIndexChanged="ddlCompetency_SelectedIndexChanged" Skin="Outlook"

 

 

TabIndex="1" Width="500px">

 

 

</Telerik:RadComboBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top; width: 10%; text-align: left;">

 

 

<asp:Label ID="CompetencyArea" runat="server" CssClass="captionlbl"

 

 

Height="15px"><b>Area</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadComboBox ID="ddlCompetencyArea" runat="Server" AutoPostBack="True"

 

 

OnSelectedIndexChanged="ddlCompetencyArea_SelectedIndexChanged" Skin="Outlook"

 

 

TabIndex="2" Width="500px">

 

 

</Telerik:RadComboBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 10%; text-align: left; height: 15px;">

 

 

<asp:Label ID="lblLevel" runat="server" CssClass="captionlbl"><b>Level</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadComboBox ID="ddlLevel" runat="Server" AutoPostBack="True"

 

 

OnSelectedIndexChanged="ddlLevel_SelectedIndexChanged" Skin="Outlook"

 

 

TabIndex="3" Width="500px">

 

 

</Telerik:RadComboBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top; width: 10%; text-align: left; height: 15px;">

 

 

<asp:Label ID="lblIndicator" runat="server" CssClass="captionlbl"><b>Indicator</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadComboBox ID="ddlIndicator" runat="Server" AutoPostBack="True"

 

 

Skin="Outlook" TabIndex="4" Width="500px">

 

 

</Telerik:RadComboBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top; width: 10%; text-align: left; height: 15px;">

 

 

<asp:Label ID="lblEvidance" runat="server" CssClass="captionlbl"><b>Evidance</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadTextBox ID="txtEvidence" runat="server" AutoPostBack="true"

 

 

Skin="Outlook" Text='<%# Eval("Evidence", "{0:C}") %>' Width="500px">

 

 

</Telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr style="width: 100%">

 

 

<td colspan="2" style="height: 15px; text-align: left;">

 

 

</td>

 

 

</tr>

 

 

 

<tr>

 

 

<td align="left" colspan="2">

 

 

<asp:Button ID="btnEmpKrainsert" runat="server" CommandName='<%# (Container is Telerik.Web.UI.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'

 

 

 

Text='<%# (Container is Telerik.Web.UI.GridEditFormInsertItem) ? "Insert" : "Update" %>'

 

 

Width="70px" Font-Bold ="true" ForeColor ="Blue" EnableTheming ="true" BorderStyle ="Solid"/>

 

 

 

<asp:Label ID="Label6" runat="server"

 

 

Text="Please Click to Perform the Operation" CssClass="captionlbl"

 

 

Style="color: #0000cc" />

 

 

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td align="left" colspan="2">

 

 

<asp:Button ID="btnEmpKraCancel" runat="server" BackColor="AliceBlue" BorderWidth="1px" CausesValidation="False" CommandName="Cancel"

 

 

Text="Cancel" Width="70px" Font-Bold ="true" ForeColor ="Blue" EnableTheming ="true" BorderStyle ="Solid" />

 

 

<asp:Label ID="Label7" runat="server" Text="Please Click Cancel to Perform" CssClass="captionlbl" Style="color: #0000cc"></asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2" style="height: 15px; text-align: left;">

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

</formtemplate>

 

 

</editformsettings>

 

 

</mastertableview><clientsettings>

 

 

<clientevents onrowdblclick="RowDblClick" />

 

 

</clientsettings>

 

 

</Telerik:RadGrid>

 

<

 

Telerik:RadGrid ID="dgvDevelopmentActivity" runat="server"

 

 

AllowMultiRowEdit="true" AllowPaging="True" AllowSorting="True"

 

 

AutoGenerateColumns="False" GridLines="None"

 

 

OnItemCommand="dgvDevelopmentActivity_ItemCommand"

 

 

OnItemCreated="dgvDevelopmentActivity_ItemCreated"

 

 

OnItemDataBound="dgvDevelopmentActivity_ItemDataBound"

 

 

OnNeedDataSource="dgvDevelopmentActivity_NeedDataSource" PageSize="7"

 

 

ShowStatusBar="true" Skin="Outlook" Width="750px">

 

 

<headercontextmenu enableautoscroll="True">

 

 

</headercontextmenu>

 

 

<mastertableview commanditemdisplay="Top" datakeynames="ID" dir="LTR"

 

 

editmode="EditForms">

 

 

<commanditemsettings addnewrecordtext="Development Activity" ShowRefreshButton ="false" />

 

 

<Columns>

 

 

<Telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit">

 

 

<ItemStyle Width="20px" />

 

 

</Telerik:GridEditCommandColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true" ColumnEditorID="txtVanish"

 

 

DataField="ID" HeaderText="Vanish" UniqueName="Vanish" Visible="false">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true" ColumnEditorID="What"

 

 

DataField="What" HeaderText="What" UniqueName="What">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true" ColumnEditorID="How"

 

 

DataField="How" HeaderText="How" SortExpression="How" UniqueName="How">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridBoundColumn AutoPostBackOnFilter="true" ColumnEditorID="Whenn"

 

 

DataField="Whenn" HeaderText="When" SortExpression="Whenn" UniqueName="Whenn">

 

 

</Telerik:GridBoundColumn>

 

 

<Telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"

 

 

HeaderText="Delete" ItemStyle-Width="20px" Text="Delete"

 

 

UniqueName="DeleteColumn">

 

 

<ItemStyle Width="20px" />

 

 

</Telerik:GridButtonColumn>

 

 

</Columns>

 

 

 

<editformsettings editformtype="Template"

 

 

formstyle-backcolor="Transparent">

 

 

<editcolumn uniquename="EditCommandColumn1">

 

 

</editcolumn>

 

 

<formstyle backcolor="Transparent" />

 

 

<formtemplate>

 

 

<div style="width: 100%; height: 100%">

 

 

<table border="0" cellspacing="2" style="width: 100%; border-color: #99ccff">

 

 

<tr>

 

 

<td style="width: 10%; text-align: left; vertical-align: top;" visible="false">

 

 

<asp:Label ID="lblVanish" runat="server" CssClass="captionlbl" Visible="false"

 

 

Width="100px"><b>Vanish</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;" visible="false">

 

 

<Telerik:RadTextBox ID="txtVanish" runat="Server" AutoPostBack="True"

 

 

Skin="Web20" Text='<%# Eval("ID") %>' Visible="false" Width="500px">

 

 

</Telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 10%; text-align: left; vertical-align: top;">

 

 

<asp:Label ID="What" runat="server" CssClass="captionlbl" Width="100px"><b>What</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadTextBox ID="txtWhat" runat="Server" AutoPostBack="True"

 

 

Skin="Web20" TabIndex="1" Text='<%# Eval("What")%>' Width="500px">

 

 

</Telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top; width: 10%; text-align: left;">

 

 

<asp:Label ID="How" runat="server" CssClass="captionlbl" Height="15px"><b>How</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadTextBox ID="txtHow" runat="Server" AutoPostBack="True" Skin="Web20"

 

 

TabIndex="2" Text='<%# Eval("How")%>' Width="500px">

 

 

</Telerik:RadTextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 10%; text-align: left; height: 15px;">

 

 

<asp:Label ID="lblWhen" runat="server" CssClass="captionlbl"><b>When</b></asp:Label>

 

 

</td>

 

 

<td style="width: 60%; text-align: left;">

 

 

<Telerik:RadDateTimePicker ID="dtpwhen" runat="Server" AutoPostBack="True"

 

 

Skin="Outlook" TabIndex="3" Width="200px">

 

<%

-- <calendar skin="Outlook" usecolumnheadersasselectors="False"

 

userowheadersasselectors="False" viewselectortext="x">

</calendar>

<timeview cellspacing="-1">

</timeview>

<timepopupbutton hoverimageurl="" imageurl="" />

<datepopupbutton hoverimageurl="" imageurl="" tabindex="3" />

<dateinput autopostback="True" dateformat="dd MMM yyyy"

displaydateformat="dd MMM yyyy" tabindex="3">

</dateinput>--

 

%>

 

 

</Telerik:RadDateTimePicker>

 

 

</td>

 

 

</tr>

 

 

<tr style="width: 100%">

 

 

<td colspan="2" style="height: 15px; text-align: left;">

 

 

</td>

 

 

</tr>

 

 

 

<tr>

 

 

<td align="left" colspan="2">

 

 

<asp:Button ID="btnEmpKrainsert" runat="server" CommandName='<%# (Container is Telerik.Web.UI.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'

 

 

 

Text='<%# (Container is Telerik.Web.UI.GridEditFormInsertItem) ? "Insert" : "Update" %>'

 

 

Width="70px" Font-Bold ="true" ForeColor ="Blue" EnableTheming ="true" BorderStyle ="Solid"/>

 

 

 

<asp:Label ID="Label6" runat="server"

 

 

Text="Please Click to Perform the Operation" CssClass="captionlbl"

 

 

Style="color: #0000cc" />

 

 

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td align="left" colspan="2">

 

 

<asp:Button ID="btnEmpKraCancel" runat="server" BackColor="AliceBlue" BorderWidth="1px" CausesValidation="False" CommandName="Cancel"

 

 

Text="Cancel" Width="70px" Font-Bold ="true" ForeColor ="Blue" EnableTheming ="true" BorderStyle ="Solid" />

 

 

<asp:Label ID="Label7" runat="server" Text="Please Click Cancel to Perform" CssClass="captionlbl" Style="color: #0000cc"></asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2" style="height: 15px; text-align: left;">

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

</formtemplate>

 

 

</editformsettings>

 

 

</mastertableview>

 

 

<clientsettings>

 

 

<clientevents onrowdblclick="RowDblClick" />

 

 

</clientsettings>

 

 

</Telerik:RadGrid>

 


Kiara
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
82 views
Hi.
I have scenario similar to master-detail grid on your demos (like: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx). How can I store the state of all grids, after selecting a row in a first one, leaving the page, and then returning to it? I want to have a selection in first grid and subsets of rows in other grids preserved.
Greetings:
Pawel
Mira
Telerik team
 answered on 05 Aug 2010
1 answer
95 views
hi

Very urgent please help me


i have implemented custom search in itemCommed event in my grid. but i could not execute that its getting error in "Expression expected" i checked all the possibility but i could not correct it. At the same time i implemented grouping that grouping working fine there is no issue. But searching only i have problem. please check it and let me know as soon as possible
below i pasted my c# code as well as  asp.net code

c#

 protected void RadGridMsgInbox_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        e.Canceled = true;
        Button btnG = (Button)e.Item.FindControl("btnGeneral");
        Button btnI = (Button)e.Item.FindControl("btnGeneral");
        Button btnN = (Button)e.Item.FindControl("btnGeneral");
        switch (e.CommandName)
        {
                // THIS CASE FIRE WHEN GRID SEARCH EVENT ACCOUR
            case "SearchUsersBy":
                    TextBox txtSearch = (TextBox)e.Item.FindControl("txtSearch");
                    RadioButton rdbtnFrom = (RadioButton)e.Item.FindControl("rdbtnFrom");
                    RadioButton rdbtnSubject = (RadioButton)e.Item.FindControl("rdbtnSubject");
                    ObjCC_Msg.MsgSearchStr = "";
                    if (rdbtnFrom.Checked)
                        this.RadGridMsgInbox.MasterTableView.FilterExpression = "([SentEmail] LIKE '%" + txtSearch.Text + "%')";
                    else if(rdbtnSubject .Checked )
                        this.RadGridMsgInbox.MasterTableView.FilterExpression = "( [MessageSubject] LIKE '%" + txtSearch.Text + "%' )";
                    else
                        this.RadGridMsgInbox.MasterTableView.FilterExpression = "(([MessageSubject] LIKE '%" + txtSearch.Text + "%') OR ([SENTEMAIL] LIKE '%" + txtSearch.Text + "%'))";
                  
                    if (RTbMessageMenu.SelectedIndex == 1)
                      ObjCC_Msg.GetMessage = FromMessage.Sent;
                    
                    //RadGridMsgInbox.MasterTableView.GroupByExpressions.Clear();
                    //RadGridMsgInbox.MasterTableView.Rebind();
                    RadGridMsgInbox.Rebind();
               break;
}
}

ASP.NET Code

 <CommandItemTemplate>
                                                <table cellpadding="0" cellspacing="0" border="0" width="98%">
                                                    <tr>
                                                        <td style ="width :30%">
                                                            <table border="0" cellpadding="0" cellspacing="0" width ="100%">
                                                                <tr>
                                                                    <td style ="width :90%">
                                                                        <asp:TextBox ID="txtSearch" runat="server" Width ="90%"></asp:TextBox>&nbsp;</td>
                                                                    <td style ="width :10%">
                                                                        <asp:Button ID="lnkBtnSearch" CssClass="mainSearchBtn" runat="server" Text="" CommandName ="SearchUsersBy"></asp:Button>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan ="2">
                                                                        <asp:RadioButton ID="btnAll" runat ="server" Text ="All" GroupName ="Search" Checked ="true" />&nbsp;
                                                                        <asp:RadioButton ID="rdbtnFrom" runat ="server" Text ="From" GroupName ="Search" />&nbsp;
                                                                        <asp:RadioButton ID="rdbtnSubject" runat ="server" Text ="Subject" GroupName ="Search" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </CommandItemTemplate>

*Note: Here i attached my error screen please go through that

i am waiting for your reply


Pavlina
Telerik team
 answered on 05 Aug 2010
1 answer
77 views
I have a scrollable grid that I am using to get input from the user (uses a GridClientSeledColumn to do so):

<telerik:RadGrid ID="gridEntitiesAndCCs" runat="server" AllowSorting="True" AllowMultiRowSelection="true" 
        AutoGenerateColumns="False" GridLines="None" Height="150" Width="100%" EnableViewState="false">
        <MasterTableView DataKeyNames="FacilityID,CostCtr" AllowMultiColumnSorting="true">
          <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" >
              <HeaderStyle Width="25" />
              <ItemStyle Width="25" />
            </telerik:GridClientSelectColumn>
            <telerik:GridBoundColumn DataField="FacilityName" HeaderText="Facility" 
              SortExpression="FacilityName" UniqueName="FacilityName">
              <HeaderStyle Width="150" />
              <ItemStyle Width="150" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CostCtr" HeaderText="Cost Center" 
              SortExpression="CostCtr" UniqueName="CostCtr">
              <HeaderStyle Width="100" />
              <ItemStyle Width="100" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DeptName" HeaderText="Dept Name" 
              SortExpression="DeptName" UniqueName="DeptName">
            </telerik:GridBoundColumn>
          </Columns>
        </MasterTableView>
        <ClientSettings EnablePostBackOnRowClick="false">
          <Scrolling AllowScroll="true" UseStaticHeaders="true" />
          <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
        </ClientSettings>
      </telerik:RadGrid>

but what happens is that if the database query returns 10 rows,  grid is scrollable, but the page itself is not.  However, if I increase the number of rows returned (select top ?? ...) from the database, the grid stays the same size, but the page itself becomes scrollable.  As the number of rows that are returned from the query increases, so does the physical page size.

The attached screen images show what happens when the database query returns 10, 30 and 60 rows.

I have set EnableViewState = false in the grid.  It seems to me that the number of rows returned should not impact the dimensions of the page itself, especially since the grid size does not change.

Is there a way to eliminate this?

Tsvetina
Telerik team
 answered on 05 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?