Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
473 views
We want to have a drop down of 'equipment types'. This is a fairly big list so we would like to lazy load it. The issue we are having is if we do lazy load you can't restrict what they type.

Is there some kind of work around to get AllowCustomText =false with load on demand?
Simon
Telerik team
 answered on 04 Dec 2009
1 answer
103 views
hello..
i m using asp radio button with Rad controls.when i use RadFormDecorator On asp page.radio button disappear and when i remove Form Decorator it appear.for more detail see attached file.....
plz reply...
Georgi Tunev
Telerik team
 answered on 04 Dec 2009
6 answers
166 views
hello,

I have a multi-columns Radcombobox like  :
<telerik:RadComboBox  Width="556px"  ID="Exp_Code" runat="server" Height="190px" Skin="Sunset" 
                         MarkFirstMatch="true"  EnableLoadOnDemand="true" HighlightTemplatedItems="true" 
                        ItemRequestTimeout="1"  OnItemsRequested="Exp_Code_ItemsRequested" OnItemDataBound="Exp_Code_ItemDataBound" DataSourceID="SqlDataSource1" CollapseDelay="1" ExpandDelay="1">  
                        <HeaderTemplate> 
                            <ul> 
                             <li class="col1">Code</li> 
                             <li class="col2">Nom</li> 
                             <li class="col3">CP</li> 
                             <li class="col4">Ville</li> 
                             <li class="col5">Pays</li> 
                            </ul> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <ul> 
                             <li class="col1"><%# DataBinder.Eval(Container.DataItem, "Tiers") %></li>  
                             <li class="col2"><%# DataBinder.Eval(Container.DataItem, "Nom") %></li>  
                             <li class="col3"><%# DataBinder.Eval(Container.DataItem, "CP") %></li>  
                             <li class="col4"><%# DataBinder.Eval(Container.DataItem, "Ville") %></li>  
                             <li class="col5"><%# DataBinder.Eval(Container.DataItem, "Pays") %></li>  
                            </ul> 
                        </ItemTemplate> 
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
             </telerik:RadComboBox> 

In my function Page_Load(), I have this code :
Exp_Code.Text =  (Tiers + "      ").Substring(0, 12); 

I wish on the function Page_Load(), to go to search the corresponding item text like format in function Exp_Code_ItemDataBound :
protected void Exp_Code_ItemDataBound(object sender, RadComboBoxItemEventArgs e)  
        {  
            e.Item.Text = ((DataRowView)e.Item.DataItem)["Tiers"].ToString() + "        - " + ((DataRowView)e.Item.DataItem)["Nom"].ToString() + " - " + ((DataRowView)e.Item.DataItem)["Ville"].ToString();  
            e.Item.Value = ((DataRowView)e.Item.DataItem)["Tiers"].ToString() + "        - " + ((DataRowView)e.Item.DataItem)["Nom"].ToString() + " - " + ((DataRowView)e.Item.DataItem)["Ville"].ToString();  
        } 
Thank you for your help.

Angélique
Thierry Treunet
Top achievements
Rank 1
 answered on 04 Dec 2009
1 answer
259 views
Hi,

I have a listbox  that I am populating client side from a list of items that users entered. Initially there are no listbox items, but I set the height of the listbox to 200px. When I click inside the listbox when there are still no items , it displays a  javascript error 'undefined' is null or not an object.  I believe it happens on the _activateItem client side event  of the listbox, but Im not sure how to disable it when there are no items in the list.

Is there a way to trap the _activeitem event on client side or disable it when the list of items = 0 ?

Thanks,
rei
Genady Sergeev
Telerik team
 answered on 04 Dec 2009
1 answer
111 views
Hi,
 I have 9 tabs in TabStrip. It is not possible to display all the tabs in a single line. so i used 'ScrollChildres=true'. but i am facing problem that when last two tabs are selected they are not visible in view. i found javascript code to scroll tabs from http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/set-scrollposition-to-active-tab-on-page-load.aspx .
Just to test, i cerated a javascript function and calling on a button. but on clicking on the button it throws javascript error:
Error: 'getTab(...)' is null or not an object.

The code is given below:
I am using version 2009.2.826.35.

by default SelectedIndex is set to 7.

 <telerik:RadTabStrip ID="rdTab" runat="server" SelectedIndex="7" Width="930" ScrollChildren="true" 
            ScrollButtonsPosition="Right" AutoPostBack="true"
            <Tabs> 
                <telerik:RadTab Text="aaaaaaaaa 1111111" runat="server" /> 
                <telerik:RadTab Text="bbbbgggg 22222" runat="server" /> 
                <telerik:RadTab Text="ccccccc 9999999" runat="server" /> 
                <telerik:RadTab Text="dddddhhhhh 5555555" runat="server" /> 
                <telerik:RadTab Text="eeeeeeeeeeeee 22222222" runat="server" /> 
                <telerik:RadTab Text="ffffff 8888888" runat="server" /> 
                <telerik:RadTab Text="gggggggg Test 2222" runat="server" /> 
                <telerik:RadTab Text="hhhhhhh 111111" runat="server" /> 
                <telerik:RadTab Text="iiiiiiiiii 0000" runat="server" /> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <input type="button" value="View" onclick="setSelectedTab()" /> 
 
        <script type="text/javascript"
            function setSelectedTab() 
            { 
                var obj = $find('<%= rdTab.ClientID %>'); 
                obj.get_selectedTab().scrollIntoView(); 
            }; 
        </script> 


Thanks,
Veselin Vasilev
Telerik team
 answered on 04 Dec 2009
2 answers
167 views
Hello,

I'm trying to create a drag / drop action that moves a string of text from a tree control to a radgrid.   The value from the tree control needs to be placed into a field in the datagrid, while the datagrid is in insert or edit mode.

I'm hoping for a simple client side solution.  I don't want to commit the row to the database especially in the event the user is not ready to save it yet.

I have hold of my tree value in a variable in javascript
    
            args.get_sourceNode().get_value()

I also have a hold of the control i want to update 

            var row = selectedRows[i];
            var cell = MasterTable.getCellByColumnUniqueName(row, "PageLink");
            alert(cell.innerHTML);

I just need the magic that will help me push the value into the cell.

Any ideas a MUCH appreciated.

Ralph


Sebastian
Telerik team
 answered on 04 Dec 2009
1 answer
115 views

We are facing performance issues in Radscheduler. Scheduler control create 15 WebResource.axd and it’s size is 926.3k. This size is not acceptable on production. Please tell me the tips to optimize the scheduler control and reduce the files.

T. Tsonev
Telerik team
 answered on 04 Dec 2009
1 answer
295 views
Hi,

I created treeview control and was able to set target to blank page.

However, I need to open the page without any menubar.

Is there any way to do this?

Below is my definition for treeview

 

<telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="ID"

 

 

DataFieldParentID="ParentID"

 

 

DataNavigateUrlField="URL" DataTextField="Text" DataValueField="URL"

 

 

Skin="Forest" EnableViewState ="true" >

 

 

<DataBindings>

 

 

<telerik:RadTreeNodeBinding Target="_blank" Expanded="false" />

 

 

</DataBindings>

 

 

</telerik:RadTreeView>

 

 



I set datasource within the code.

Thanks in advance,
Shinu
Top achievements
Rank 2
 answered on 04 Dec 2009
5 answers
241 views
Hi,

I have a problem when drag and drop from radgrid to radscheduler.

I am using master and content page for my process, in that content page i am having following code for drag & drop. 

function rowDropping(sender, eventArgs)

 

{

 

debugger;

 

 

// Fired when the user drops a grid row

 

 

var htmlElement = eventArgs.get_destinationHtmlElement();

 

 

var scheduler = $find('ctl00_Content_RadScheduler1');

 

 

debugger;

 

 

 

if (isPartOfSchedulerAppointmentArea(htmlElement))

 

{

 

// The row was dropped over the scheduler appointment area

 

 

// Find the exact time slot and save its unique index in the hidden field

 

 

var timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);

 

$get(

"ctl00_Content_TargetSlotHiddenField").value = timeSlot.get_index();

 

 

 

// The HTML needs to be set in order for the postback to execute normally

 

eventArgs.set_destinationHtmlElement(

"ctl00_Content_TargetSlotHiddenField");

 

 

debugger;

 

 

}

 

else

 

{

 

// The node was dropped elsewhere on the document

 

eventArgs.set_cancel(

true);

 

}

}


it showing the error on the this line 'var timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);'.

Please find scrren shot for that error message.

How to overcome this.

Thanks in Advance ; ).

Regards
Maha



utchi
Top achievements
Rank 1
 answered on 04 Dec 2009
3 answers
145 views
Hello,

How do I force decorator to redecorate controls after ajax request ?

I have the following scenario:

//pseudocode 
 
<RadFormDecorator decorate buttons only/> 
<div> 
 
<RadAjaxPanel EnableAjaxtrue
<asp Button id=1 Enabled=true
<asp Button id=2 Enabled=false
</RadAjaxPanel> 
 
</div> 
 

button 1 on server click enables button 2 and its not decorated anymore. How to force it to be decorated ?


Georgi Tunev
Telerik team
 answered on 04 Dec 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?