Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
368 views
hi,
i want to simply invoke radAlert(msg) from script:
<script> 
function lala(){ 
msg="hey"
radalert(msg); 
</script> 
but it doesn't seem to work. is this the right way?


Hk
Top achievements
Rank 2
 answered on 06 Jan 2009
5 answers
307 views
Hi there.
I'm trying to get the radeditor content and when I access the property from the codebehind it appears like an empty string (and its not)
Also when Im accesing to other controls on the page from the editor events the control seems to be null (wich it isn)
Any Ideas?
Nikolay Raykov
Telerik team
 answered on 06 Jan 2009
1 answer
124 views
On my rotator control I'm using the OnClientItemClicked event.  I want to be able to hook the index of the item I click on.  How do I do this?  All I find as documentation for client-side programming is: http://www.telerik.com/help/aspnet-ajax/rotator-clientside-api.html, but this doesn't help.

Thank you in advance for help/assistance,
Stephen
Fiko
Telerik team
 answered on 06 Jan 2009
3 answers
138 views

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>

 

Sebastian
Telerik team
 answered on 06 Jan 2009
2 answers
131 views
Hi All,

I want to switch fro gridview to RadGrid ,I have two bound field and a checkbox in a templatecolumn , I want to check all the grid rows for checked box and get the bound value for the checked one ,how can I do that with RadGrid?????

the button codebehind for the old gridview:

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

 

Daniel
Telerik team
 answered on 06 Jan 2009
2 answers
202 views
I am using RadGrid with Edit Form type 'Template' it contains two RadComboBox the second one depend on the selection of the first one and both of them use Binding Selected Value, but I have this error when I run my project " Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control", I do not know what is the wrong thing I made in my project. Any suggestion on this case !!!
Thanks
Ban
Ban
Top achievements
Rank 1
 answered on 06 Jan 2009
1 answer
113 views
I have a small problem with scrolling..Let me explain the requirement that I have with me..If the role return to the Grid is more that 100 the paging else scrolling...
Ok it straight Forward...

My Aspx page...

 

<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>();
objCol=Admin.GetData(;
if(objCol.Count>101)
{

    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

 

Shinu
Top achievements
Rank 2
 answered on 06 Jan 2009
1 answer
156 views

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.

Princy
Top achievements
Rank 2
 answered on 06 Jan 2009
1 answer
72 views
Hi telerik,
My requirement in Hierarchy grid(in child grid ) is to place a textbox in one Column ( did the Using ItemTemplete) and place a button in the footer and update all the Text box's information on clicking the footer button. I make use of FooterTemplete but it's not displaying the button in the footer.below is the code written for footertemplete.

CODE:

<

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>

 

 

 
awaiting for your reply.Thanks in advance.
Nagireddy
Princy
Top achievements
Rank 2
 answered on 06 Jan 2009
2 answers
163 views
Hi,

I set the default font-size for the edit mode and for the presentation mode (by adding "font-size: 10pt !important;" to .ms-wikicontent) This works fine for normal text, but does not work for text in table cells. Is there a possibility to apply the style to table cells, too?

Why does the radeditor not set span styles for text which has the default style? This would prevent many problems as the default style in edit mode does seem to have anything to do with the default style in presentation mode, at least as far as wikis are concerned.

Regards,
Markus
IT Betrieb
Top achievements
Rank 1
 answered on 06 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?