| <script> |
| function lala(){ |
| msg="hey"; |
| radalert(msg); |
| } |
| </script> |

Hi I have an radgrid - I'm trying to implement
<Clientsettings>
<ClientEvents onCommand ="onCommand" />
</Clientsettings>
But I get a a message that onCommand is not a valid attribute - I'm following some of the examples in forums.. but I don't see oncommand as an avaliable event.. what I'm I missing .. thanks again
<telerik:RadGrid ID="RadGridAddress" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" AutoGenerateEditColumn="True"
DataSourceID="ObjectDataSource_ADDRESS" EnableEmbeddedSkins="False"
Font-Names="Verdana" Font-Size="Small" GridLines="None" GroupingEnabled="False"
OnInsertCommand="RadGridAddress_InsertCommand"
OnItemCommand="RadGridAddress_ItemCommand"
OnItemDataBound="RadGridAddress_ItemDataBound"
OnItemUpdated="RadGridAddress_ItemUpdated"
OnNeedDataSource="RadGridAddress_NeedDataSource"
OnUpdateCommand="RadGridAddress_UpdateCommand" Skin="WebBlue"
Width="99%" >
<Clientsettings>
<ClientEvents onCommand ="onCommand" />
</Clientsettings>
int
iCheckCount=0;
for (int iRows = 0; iRows < grdUserRequestHistory.Rows.Count; iRows++)
{
GridViewRow row = grdUserRequestHistory.Rows[iRows];
bool isChecked = ((CheckBox)row.FindControl("chkUsers")).Checked;
if (isChecked)
{
iCheckCount = 1;
string strHospCd = string.Empty;
switch (row.Cells[0].Text)
{
case "NMC":
strHospCd =
"'00'";
break;
case "RCH":
strHospCd =
"'01'";
break;
case "RNH":
strHospCd =
"'02'"
break;
}
// I will insert data here
}
}
thanks in advance
ghadeer
<telerik:RadGrid ID="AllianceGrid" runat="server" EnableEmbeddedSkins="false" Skin="Shepherd" AutoGenerateColumns="false" OnItemCommand="AllianceGrid_RowClick" Width="100%" Height="500px">
<MasterTableView DataKeyNames="AllianceID,AllianceCode">
<Columns>
<telerik:GridBoundColumn DataField="AllianceID" HeaderText="Alliance ID"
UniqueName="AllianceID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="AllianceCode" HeaderText="Alliance ID"
UniqueName="AllianceCode">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="AllianceName" HeaderText="Alliance Name"
UniqueName="AllianceName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EffectiveDate" HeaderText="Effective Date"
UniqueName="EffectiveDate">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DiscontinueDate" HeaderText="Discontinue Date"
UniqueName="AllianceName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="AllianceDescription" HeaderText="Comments"
UniqueName="AllianceDescription">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle Width="16%" />
<ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true">
<Selecting AllowRowSelect="True" />
</ClientSettings>
</telerik:RadGrid>
My code behind..
protected void Page_Load(object sender, EventArgs e)
{
collection<object> objCol=new collection<object>();AllianceGrid.AllowPaging =
true;
AllianceGrid.PageSize = 10;
AllianceGrid.PagerStyle.Mode =
GridPagerMode.NextPrevAndNumeric;
}
else
{
AllianceGrid.HeaderStyle.Width =
Unit.Percentage(16.00);
AllianceGrid.ClientSettings.Scrolling.AllowScroll =
true;
AllianceGrid.ClientSettings.Scrolling.EnableVirtualScrollPaging =
true;
AllianceGrid.ClientSettings.Scrolling.UseStaticHeaders =
true;
AllianceGrid.ClientSettings.Scrolling.SaveScrollPosition =
true;
}
}
this is my almost exact code..Now it works pefect , but only one problem..When it displays the scroll bar , for few seconds all the column get smush up in left hand corner ,but after a second every thing gets normal..Even after defining the HeaderStyle width in .apsx and in .cs , I still have the same problem.What am I suppose to do?Is there any property that I din't turn on?
Thanks,
DIP
Hello,
I want a dropdown like the one in gmail Inbox. When we select "More Actions", it shows the items and even we select anyone, it performs the task and still shows "More Action" as selected value. How to perform this tasks using Rad Combobox??
Please give the code if possible.
Thanks in Advance.
<
telerik:GridTemplateColumn UniqueName="TitleColumn" ItemStyle-VerticalAlign="Top" Groupable="False" ItemStyle-HorizontalAlign="Center" Reorderable="False" >
<ItemTemplate>
<asp:TextBox runat="server" ID="txtSlideTitle" CssClass="textinput" style="width: 99%" Text='<%#DataBinder.Eval(Container.DataItem, "SubSectionTitle") %>'></asp:TextBox>
</ItemTemplate>
<FooterTemplate>
<
asp:ImageButton ID="imgbtnAdd" runat="server" CommandName="Slide" onMouseOver="this.src = 'images/btn/outline_slide__over.png'"
onMouseOut="this.src = 'images/btn/outline_slide_add.png'" ImageUrl="images/btn/outline_slide_add.png" ToolTip="Slide Details " OnClick="imgbtnAdd_OnClick" />
</FooterTemplate>
</telerik:GridTemplateColumn>