Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
70 views
i have a rad combobx which have two columns headings: Emp_ID and Emp_Name.
this is my .aspx page.



<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Multicolumntest._Default" %>

 

<%

 

@ 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">

 

 

 

<div>

 

 

 

 

<asp:

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

</asp:ScriptManager>

 

 

 

 

<telerik:RadComboBox ID="RadComboBox1" Height="290px" Width="420px" runat="server" Skin="Vista"

 

 

 

onitemsrequested="RadComboBox1_ItemsRequested"

 

 

 

onselectedindexchanged="RadComboBox1_SelectedIndexChanged"

 

 

 

onitemdatabound="RadComboBox1_ItemDataBound">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

<

 

HeaderTemplate>

 

<

 

table>

 

 

 

<tr>

 

 

 

<td width="100px">

 

 

 

<b>EmployeeName</b>

 

 

 

</td>

 

 

 

<td width="200px">

 

 

 

<b>EmployeeID</b>

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

</table>

 

</

 

HeaderTemplate>

 

<

 

ItemTemplate>

 

</

 

ItemTemplate>

 

</

 

telerik:RadComboBox>

 

 

 

 

 

</div>

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

 





i want to add some items to these columns from windows sharepoint list. so please help me if someone knows about it.
please write C# and .aspx page code
Thanks
Ahmad Nawaz
Top achievements
Rank 1
 asked on 28 Oct 2009
3 answers
139 views
Hi,

i have recognized, that the RadEditor has an powerful HtmlRepair function.
If i set the content of the editor:
<div><li>test<li>test2</li></div
 

it produces an output like this
<div> 
<li>test</li> 
<li>test2</li> 
</div> 
 

Now i have the problem that i have to use this html-repair functionality without the editor.
Is this possible?

Thanks in advance!


Rumen
Telerik team
 answered on 28 Oct 2009
1 answer
113 views
Hi,

I have created a master gridview with a child gridview and I would like to insert a new record into the child grid using a user control. 

My only problem is that in this child user control, I need to know which parent record the child record belongs to.  Is there a way from within the user control to determine this?  

Thanks,
Mel
 
Princy
Top achievements
Rank 2
 answered on 28 Oct 2009
1 answer
188 views
Hi

Im trying to build a toolbar which consists of 3 sets of buttons grouped over 3 rows e.g.
[row #1]
[row #2]
[row #3]

I've set my toolbar to ShowOnFocus and am using the technique described in this article to ensure that the toolbar appears in a single <Div> at the top of the page.  My problem is how do I force my toolbar buttons to appear in separate rows ?  All my toolbar buttons seem to take up all available width before spilling onto a new line (meaning that I end up with only 1 or 2 toolbar rows - not the 3 which I want).

Q1
From what I can see the width of the toolbar is controlled via CSS and there is nothing in the XML documentation which allows me to declare a new row in my toolbar.  How can I achieve this ?

Q2
Also, I note in the documentation an attribute <tools IsRibbon="true"> which should make my toolbar be displayed as a Microsoft Office style ribbon.  On setting this I do not see any difference in the appearance of my toolbar.  Is there something else I need to set to make this work ?

Q3
I have added a custom toolbar button which hides the editor and displays its contents using a <DIV> (basically to simulate what the final page will look like).  When this button is pressed I want to disable all other buttons in my toolbar but cannot find any documentation in the client API which will do this.  Is this possible ?

Thanks


Martin
Telerik team
 answered on 28 Oct 2009
1 answer
89 views
Is there a guide somewhere for dummies in converting a web app to a Sharepoint web part?  I have built a RadGrid with a fair amount of customization in a RadControls CSharp Web Application using Q3 2009 controls.  The online documentation regarding RadControls and Sharepoint has info on how to create a web part from scratch with RadControls but not in converting an existing web app.  Based upon my search for a solution so far, it seems I might have to convert the web app to a user control first, which I've tried, but have yet to be successful.

Has anyone done a conversion such as this before?  Any insight would be greatly appreciated.

Thanks,
Tim
Yavor
Telerik team
 answered on 28 Oct 2009
1 answer
168 views
Hi

Just upgrading our prototype product from RadControls Q1 2007 to RadControls Q2 2009, which in itself has been a bit of a leap ... but the majority of it has worked fine. There is one control that I'm currently upgrading which uses a bit more client side script then every other section of the associated web projects.

The problem I have is that on the original client side object model, you could query a row's `ItemType` member, when referring to a row object from the rows collection of a table view:

for (var i = 0; i < rows.length; i++) { 
    if (rows[i].ItemType == "EditItem") { editedRow = rows[i]; break; } 
}     

During migration process, I have revised the code and now initialise my rows variable in the above example with the following:

var view = grid.get_masterTableView(); 
var rows = view.get_dataItems(); 

But for the life of me, I can't find anything equivalent of a row/GridItem `ItemType` in the Q2 2009 client side object model, and the client-side API reference is a little thin- I've found a lot of control functions relating to editing items, e.g:

masterTable.editItem(masterTable.get_dataItems()[0].get_element()); 
 
masterTable.editSelectedItems(); 
 
masterTable.updateEditedItems(); 
 
masterTable.editAllItems(); 

But these all change the state of the items when all I want to know is what state the item is in. Is there a collection of GridItems that are dangling off the edge of the object model somewhere, or a simple property I'm missing or a function to evaluate? Please help!

Thanks


Tom
Nikolay Rusev
Telerik team
 answered on 28 Oct 2009
1 answer
196 views
Hi,

The Drag-and-Drop example between a RadTreeView and a RadGrid works fine, but we need to lock-down the TreeView while the user drags to the RadGrid. You see, if the TreeView is large, and the user drags one of the top nodes slowly across the TreeView, then it is quite annoying for the TreeView to expand all the nodes while dragging... I've disabled "Dropping" on the TreeView, but that has no effect on the Expand mode, of course. Any tips on how to elegantly disable ExpandMode while dragging a node?

Thanks!
R
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2009
1 answer
155 views
Hello, i use the radGrid version 2009 Q2, i need to put the filter option in spanish

if some one can help me

Thank
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2009
2 answers
332 views
Hello,

I have a content page that in turn has 'nested' master pages. Please see the following:

MasterPage1
-- MasterPage2
   -- MasterPage3
       -- ContentPage

I have put RadAjaxManager (RadAjaxManagerOnMasterPage1) on MasterPage1 and a RadAjaxManagerProxy on ContentPage.

MasterPage1 has a label (LabelOnMasterPage1) that I need to update when user clicks a button (ButtonOnContentPage) lying on ContentPage.

Now, on ContentPage, I have the following code.

            MasterPage1 masterPage1
                = (MasterPage1)this.Master.Master.Master;

            RadAjaxManager radAjaxManagerOnMasterPage1
                = (RadAjaxManager)masterPage1.FindControl("RadAjaxManagerOnMasterPage1");

            if (radAjaxManagerOnMasterPage1 != null)
            {
                radAjaxManagerOnMasterPage1 .AjaxSettings.Clear();
                radAjaxManagerOnMasterPage1 .AjaxSettings.AddAjaxSetting(ButtonOnContentPage, masterPage1.GetLabelOnMasterPage1);
            }

NOTE: There is a property in MasterPage1 (GetLabelOnMasterPage1) that returns reference to LabelOnMasterPage1.

When I execute the above code, NullReferenceException is raised when AddAjaxSetting is called. Upon analysis, I found that RadAjaxManager.GetCurrent(ButtonOnContentPage.Page) returns NULL.

NOTE: GetCurrent() is eventually called in AddAjaxSetting (as per the disassembler code).

I tried writing this code both at Page_Load and OnPreRender but it worked nowhere.

Kindly tell me what is it that I am missing?

~Abhay

Abhay Jain
Top achievements
Rank 1
 answered on 28 Oct 2009
2 answers
200 views
I have a radgrid that uses a usercontrol as an editform.  How can I access the user control for the item being inserted?  I need to access the insert control from an ajax request.    Apparently this is different from accessing an edit control?
eric
Top achievements
Rank 1
 answered on 27 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?