Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views

 



I am using Aps.net web application..
In my rad grid i need to delete multiple rows...

i am using following code i get multi row deletion...

But when i am using  MutiPage View in Radtap strip..

I cant delete Multiple rows....

Is Anything i need to put on my code...when i am using tap strip control


 

protected void btnDelmails_Click(object sender, EventArgs e)

 

{

 

 

foreach (GridDataItem item in grdInbox.MasterTableView.Items)

 

 

{

 

 

CheckBox chkbx = (CheckBox)item.FindControl("chkSelect");

 

 

 

 

if (chkbx.Checked)

 

 

{

 

 

int Mails = Convert.ToInt32(item.GetDataKeyValue("QuestionId").ToString());

 BllAlerts.DeleteInbox(Mails);

}

}

BindInbox();

}

 

 

 

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1" Skin="Web20">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="INBOX">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab runat="server" Text="SENT MAILS" Selected="True">

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

 

Regards

Friend 

 

Yavor
Telerik team
 answered on 16 Oct 2008
1 answer
69 views
Hello..
Can Telerik confirm the issue of 'multiple selections with GridClientSelectColumn in Inplace Edit mode' is still a bug in RadGrid for ASP.NET but fixed in the AJAX(Prometheus) version?  I'm currently using the GridClientSelectColumn in the RadGrid for ASP.NET AJAX version without any issues.

"Unfortunately it (multiple row selections) seems this is a bug with the RadGrid row selection when the EditMode is set to "InPlace". However this problem is not present with the RadGrid for ASP.NET AJAX so I can suggest you to use that version of the control."

Thanks!
Pavel
Telerik team
 answered on 16 Oct 2008
1 answer
57 views
Hello,

I use the Rad Grid Control in a DotNetNuke Module and  I can't not localisize like how you discripe in the telerik example:

 

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)

 

{

 

GridColumn boundColumn = e.Column as GridColumn;

 

 

switch (boundColumn.UniqueName)

 

{

 

case "Stop":

 

boundColumn.HeaderText =

"My customized contact name";

 

 

break;

 

 

case "SpotTime":

 

boundColumn.HeaderText =

"My customized contact title";

 

 

break;

 

 

case "Address":

 

boundColumn.HeaderText =

"My customized address";

 

 

break;

 

 

default :

 

boundColumn.HeaderText =

"default";

 

 

break;

 

}

}

Nothing is changing ?

What is my mistake ?

Yavor
Telerik team
 answered on 16 Oct 2008
5 answers
395 views
I have a chart where it shows up to 100% for test results for a series of topics. The issus I have is that, each bar shows the value at the top, except where the student scores 100%. I have set the max value of the Y-Axis to 110 but the chart now displays values up to 120 on the Y-Axis. Changing the step doesn't seem to affect this behaviour nor does setting the AutoScale.
Simon
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
97 views
Hi,

I have the following code in my Web User Control

    <telerik:RadGrid ID="ProdTable" runat="server" Width="100%" AutoGenerateColumns="False" GridLines="None" Skin="Office2007" AllowPaging="True" PageSize="5" OnDeleteCommand="ProdTable_DeleteCommand">
        <MasterTableView>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn HeaderText="Serial No. History" Text="View" UniqueName="ProdSerialHist">
                </telerik:GridButtonColumn>
                <telerik:GridBoundColumn DataField="ProdSerialNo" HeaderText="Serial No." UniqueName="ProdSerialNo">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdSerialRemark" HeaderText="Serial No. Remarks" UniqueName="ProdSerialRemark">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdType" HeaderText="Product" UniqueName="ProdType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdUnitUser" HeaderText="Unit(s) / User(s)" UniqueName="ProdUnitUser">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdCost" HeaderText="Cost" UniqueName="ProdCost" >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProdTotalAmt" HeaderText="Total Amount" UniqueName="ProdTotalAmt" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridButtonColumn CommandName="Delete" ConfirmText="1 Record Will Be Deleted, Confirm?" ConfirmTitle="Deleting record" Text="Delete" UniqueName="ProdTableDelete">
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
        <FilterMenu EnableTheming="True" Skin="Office2007">
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </FilterMenu>
    </telerik:RadGrid>

<telerik:RadWindow ID="SerialHistoryWindow" runat="server" Width="400px" OpenerElementID="Button 1">
                <telerik:RadGrid id="SerialNoTable" runat="server" AutoGenerateColumns="False" GridLines="None" Width="400px" Skin="Office2007" OnNeedDataSource="SerialNoTable_NeedDataSource">
                    <mastertableview>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="ProductSerialNo" HeaderText="Serial No." UniqueName="ProductSerialNo"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProductSerialRemarks" HeaderText="Remarks" UniqueName="ProductSerialRemarks"></telerik:GridBoundColumn>
</Columns>
</mastertableview>
                    <filtermenu enabletheming="True" Skin="Office2007">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</filtermenu>
                </telerik:RadGrid></telerik:RadWindow>


How do i open the RadWindow from the radgrid and from this column

<telerik:GridButtonColumn HeaderText="Serial No. History" Text="View" UniqueName="ProdSerialHist">

using codebehind









Georgi Tunev
Telerik team
 answered on 16 Oct 2008
1 answer
136 views
Hi
In my application,I used Date Picker & time picker seperately.
I use the below code to avoid null values

If

 

  RadDatePicker1.IsEmpty Then
RadDatePicker1.SelectedDate = "01/01/2000"
End If

My problem is how to clear the data in raddatepicker1 when clicking new button
Also when I retrieve the data from the database, if the date in the database is "01/01/2000"
,I need the raddatepicker1 control data is empty.

 

Princy
Top achievements
Rank 2
 answered on 16 Oct 2008
3 answers
292 views
Hi,

I think I'm overseeing a very simple thing here, but I just cannot get the SelectedItems collection filled....

I have the following control:
<telerik:RadGrid ID="grdTemplates" runat="server" AutoGenerateColumns="False" GridLines="None" AllowMultiRowSelection="false"AllowSorting="false" OnNeedDataSource="grdTemplates_NeedDataSource" OnItemDataBound="grdTemplates_ItemDataBound" OnItemCommand="grdTemplates_ItemCommand">
<ClientSettings
>
    <Selecting AllowRowSelect="True"></Selecting
>
</ClientSettings>


The selection client-side is not problem. But when I click on the Next button on the screen, the grdTemplates.SelectedItems.Count is always 0.

Can somebody please tell me what I'm doing wrong?

Kind regards,

Aldert Polman


Daniel
Telerik team
 answered on 16 Oct 2008
1 answer
75 views
Good afternoon,
I've recently, downloaded the trial of this product and have created a toolbar with the neccessary functionality for my purpose. My company would like to have the ability to install the toolbar to IE and Firefox as well as uninstall if needed. Some toolbars have issues as being declared as spyware. We currently do j2ee programming for our Prod Internet which is managed by a CMS. Does your radtoolbar web component need to be built as a web user control project in Visual Studio? How would we deploy a radtoolbar to the above browsers? Does your company handle optimization as far as getting around spyware issues?
Thanks in advance,
Chris Gilbert
Erjan Gavalji
Telerik team
 answered on 16 Oct 2008
1 answer
75 views
Hi

In Javascript I need to get the width of a RadTimePicker.

I use the following code (where Picker can be either a RadDatePicker or RadTimePicker):

function getElementDimensions(Picker)
{
    var textBox = Picker.get_textBox();
    var dimensions = Picker.getElementDimensions(textBox);

    return dimensions;
}


I find for a RadDatePicker this works well in IE7, FF3 and Safari 3 for both height and width.

For a RadTimePicker the height is correct for all 3 browsers.

However the width is only correct in IE7. FF3 and Safari are way out.

Is there a different approach needed for a RadTimePicker?


Kind regards

Mark Eaton
Missing User
 answered on 16 Oct 2008
3 answers
259 views

A bit more involved than the title indicates, though.  We've developed a search control (mark-up and some code below) which uses a RadAjaxPanel to set dates.  When the date changes, as part of the ajax postback, we go look up valid data for that date range and populate other search criteria.

All that's working great; the request I got was to handle the enter key being pressed and submit a search.  Of course, I'll want to apply it to whatever control has focus when an enter key is hit, but the textboxes in the date picker controls seems like an obvious place to start.

I've tried following this thread, but I'm not really getting it.  I'm not sure what event I should hook into to notice an enter key.  It doesn't seem like any client-side event is exposed which has to do with the text box of the date picker. 

The script I've cobbled together is invoked by a change when you use the actual date-picking UI part of the date picker control, so that's not quite what I'm looking for.  An error is raised saying that the object doesn't support this property or method, presumably when I'm trying to attach the event handler (I see the alert just before it).

Maybe I'm taking a completely wrong approach.  I'm pretty lost on the direction to go, and need a push.

Control mark-up:
---------------------------
<%@ Control Language="C#" AutoEventWireup="false" 
    CodeBehind="SearchFilterUI.ascx.cs" 
    Inherits="Com.Wolfgang.Amadeus.gTime.Web.SearchFilterUI" %>

<%@ Register TagPrefix="radC" Namespace="Telerik.WebControls" 
    Assembly="RadCalendar.Net2" %>

<%@ Register TagPrefix="radCB" Namespace="Telerik.WebControls" 
    Assembly="RadComboBox.Net2" %>

<%@ Register TagPrefix="radA" Namespace="Telerik.WebControls" 
    Assembly="RadAjax.Net2" %>

<div>

<radA:RadAjaxPanel ID="radAjaxPanel" runat="server" LoadingPanelID="ajaxLoadingPanel">

<div id="divSearchPeriod" runat="server" style="float: left;">

<asp:Label ID="lblByPayPeriod" runat="server" Font-Bold="true" Font-Size="Medium"

Text="Search by Pay Period:"></asp:Label>

<br />

<asp:Label ID="lblPayPeriod" runat="server" Text="Pay Period:" Width="75 px"></asp:Label>

<radCB:RadComboBox ID="rcbPayPeriod" runat="server" AutoPostBack="true" MarkFirstMatch="true"

OnSelectedIndexChanged="rcbPayPeriod_SelectedIndexChanged">

</radCB:RadComboBox>

<br />

<asp:Label ID="lblYear" runat="server" Text="Year:" Width="75 px"></asp:Label>

<radCB:RadComboBox ID="rcbYear" runat="server" AutoPostBack="true" MarkFirstMatch="true"

OnSelectedIndexChanged="rcbYear_SelectedIndexChanged">

</radCB:RadComboBox>

</div>

<div style="float: left; width: 343px;">

<asp:Label ID="lblByDates" runat="server" Font-Bold="true" Font-Size="Medium" Text="Search by Dates:"></asp:Label>

<br />

<asp:Label ID="lblStart" runat="server" Text="Start Date:" Width="70 px"></asp:Label>

<radC:RadDatePicker ID="rcStart" runat="server" AutoPostBack="true" EnableMultiSelect="false"

OnSelectedDateChanged="rcStart_SelectionChanged" ClientEvents-OnDateSelected="HandleEnter">

</radC:RadDatePicker>

<br />

<div style="float: right;">

</div>

<asp:Label ID="lblEnd" runat="server" Width="70 px" Text="End Date:"></asp:Label>

<radC:RadDatePicker ID="rcEnd" runat="server" AutoPostBack="true" EnableMultiSelect="false"

OnSelectedDateChanged="rcEnd_SelectionChanged">

</radC:RadDatePicker>

</div>

<div>

<br />

<br />

<br />

<br />

<br />

<asp:Panel ID="pnlUser" runat="server">

<asp:Label ID="lblUserName" runat="server" Text="User Name:" Width="110px"></asp:Label>

<radCB:RadComboBox ID="rcUser" runat="server" MarkFirstMatch="true">

</radCB:RadComboBox>

<asp:Label ID="lblNoUsers" runat="server" Text="No User Records in Selected Criteria"

Visible="false" />

</asp:Panel>

<asp:Panel ID="pnlClient" runat="server">

<asp:Label ID="lblClientName" runat="server" Text="Client Name:" Width="110px"></asp:Label>

<radCB:RadComboBox ID="rcClient" runat="server" MarkFirstMatch="true">

</radCB:RadComboBox>

<asp:Label ID="lblNoClients" runat="server" Text="No Client Records in Selected Criteria"

Visible="false" />

</asp:Panel>

<asp:Panel ID="pnlProject" runat="server">

<asp:Label ID="lblProjectName" runat="server" Text="Project Name:" Width="110px"></asp:Label>

<radCB:RadComboBox ID="rcProject" runat="server" MarkFirstMatch="true">

</radCB:RadComboBox>

<asp:Label ID="lblNoProjects" runat="server" Text="No Project Records in Selected Criteria"

Visible="false" />

</asp:Panel>

<asp:Panel ID="pnlUserRole" runat="server">

<asp:Label ID="lblUserRole" runat="server" Text="User Role:" Width="110px" />

<radCB:RadComboBox ID="rcUserRole" runat="server" MarkFirstMatch="true" />

</asp:Panel>

</div>

</radA:RadAjaxPanel>

<radA:AjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Transparency="25" BackColor="window">

<asp:Image ID="imgLoading" runat="server" ImageUrl="~/Loading.gif" AlternateText="Loading..." />

</radA:AjaxLoadingPanel>

</div>

<div>

<br />

<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="Search" />

</div>

<hr />

<div>

<asp:Label ID="lblSearchValue" runat="server"></asp:Label>

</div>
------------------------------

Here's how I tried to set up the javascript.  This is in the PreRender event handler of the search control:  (I figured once I got used to the setup, I could figure out how to actually invoke the btnSubmit's Submit then).

 

StringBuilder

 

js = new StringBuilder();

 

js.Append(

"<script type=\"text/javascript\">");

 

js.Append(

"\n");

 

js.Append(

"function HandleEnter(datePicker) {");

 

js.Append(

"\n\t");

 

js.Append(

"alert(\"here we are\");");

 

js.Append(

"\n\t");

 

js.Append(

"datePicker.AttachEventHandler(\"onkeydown\", function(eventArgs) {");

 

js.Append(

"\n\t\t");

 

js.Append(

"var key= eventArgs.keyCode;");

 

js.Append(

"\n\t\t");

 

js.Append(

"alert(\"key hit was: \" + key);");

 

js.Append(

"\n\t");

 

js.Append(

"}");

 

js.Append(

"\n\t");

 

js.Append(

");");

 

js.Append(

"\n\t");

 

js.Append(

"return false;");

 

js.Append(

"\n");

 

js.Append(

"}");

 

js.Append(

"\n");

 

js.Append(

"</script>");

 

 

this.Page.RegisterClientScriptBlock("keypress", js.ToString());

 

Yavor
Telerik team
 answered on 16 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?