Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
247 views
Hello people,

I'm using the RadListBox for the first time. I used a custom item template as I want a radio button and text in each list item.
I bound data to the listbox in the code behind. This works fine.

I've allowed re-ordering and enabled drag and drop.

When I re-order an item either via drag and drop or via the reorder buttons the reordered item loses it's itemtemplate settings. ie. the radio button disappears and only the text is left.

Unfortunately the Telerik examples demonstrate either reordering or using a template but not both. Am I doing something wrong? A simple example would be useful.

Thanks.
Genady Sergeev
Telerik team
 answered on 31 Jul 2009
1 answer
138 views
Hey,

I am trying to use a hyperlink to update a DateTimePicker via javascript.  I saw a limited number of methods that you can use in javascript to interact with a DateTimePicker but not one that will let me set the input spot.  Can you help me out please?


Kyle
Shinu
Top achievements
Rank 2
 answered on 31 Jul 2009
1 answer
73 views
I am brand new to the telerik controls so this my be very simple.

I have created a context menu that will open anywhere in the document when text is selected.  The text that is selected will be used in the context menu to replace the text of a few items that have [Selection] in their text.

All of this is working the problem I am having is getting the selection text when the user clicks on a menu item and a postback occurs.  Is this possible?

        <script type="text/javascript">
            function getSelText() {
                var txt = '';
                if (window.getSelection)
                    return window.getSelection();
                else if (document.getSelection)
                    return document.getSelection();
                else if (document.selection)
                    return document.selection.createRange().text;
                else 
                    return new String("");
            }
            function onClientShowingHandler(sender, eventArgs){
                var cancel = (getSelText().length == 0);
                eventArgs.set_cancel(cancel);
                if (!cancel) {
                    var selection = getSelText();
                    sender.set_clientState(selection);
                    var items = sender._getAllItems();
                    for (var i = 0; i < items.length; i++) {
                        items[i].set_text(items[i].get_text().replace("[Selection]", selection));
                    }
                }
            }
        </script> 
        <telerik:RadContextMenu ID="RadContextMenu1" 
            OnClientShowing="onClientShowingHandler"
            OnItemClick="RadContextMenu1_OnItemClick"
            CollapseAnimation-Type="None" ExpandAnimation-Type="None" runat="server">
            <Targets>
                <telerik:ContextMenuDocumentTarget />
            </Targets>
            <Items>
                <telerik:RadMenuItem Text="[Selection] is a Manufacturer" Value="Manufacturer" />
                <telerik:RadMenuItem Text="[Selection] is a Vendor" Value="Vendor" />
                <telerik:RadMenuItem Text="Copy" />
            </Items>
        </telerik:RadContextMenu>
Veselin Vasilev
Telerik team
 answered on 31 Jul 2009
3 answers
218 views
I am trying to open an external website in a new windows using RadMenu control and sitemap file. I use target="_blank" to open
the site in a new windows but it does not work for me:
for example  I want to link to telerik website like this:

<

 

siteMapNode url="~/Home.aspx" resourceKey="Home" />  

 

 

<

 

siteMapNode url="~/Contact.aspx" resourceKey="contact" />  

 

<

 

siteMapNode title="Telerik" url="http://www.telerik.com" target ="_blank"  roles="*"/>


This does not open a new windows.

Thanks for your help

Rao

 

 

 

 

 

Kamen Bundev
Telerik team
 answered on 31 Jul 2009
2 answers
72 views
I'm trying to make a horizontal bar using RadChart Q3 2008 and I've gotten it to look and behave how I would like it but I'm having problems with the rendered image having a bunch of whitespace around it.  I basically want to trim all the excess whitespace from top and bottom, left and right out of the image.  I spent hours fiddling with all of the different properties but can't figure out how.  Any help would be appreciated.  Here is the the code for the chart:

<telerik:radchart id="RadChart1" skinsoverridestyles="false" runat="server" borderwidth="0"
                charttitle-visible="false" seriesorientation="Horizontal" backcolor="white" height="55px"
                width="530px">
                <Appearance  Border-Visible="false"  />
                <PlotArea>
                    <Appearance FillStyle-MainColor="white"  FillStyle-FillType="Solid" border-width="0" Dimensions-AutoSize="true" />
                    <YAxis MaxValue="100" MinValue="0" Step="1" AxisMode="Normal" AutoScale="false" visible="false" />
                    <XAxis Visible="false"/>
                </PlotArea>
                <Series>
                    <telerik:ChartSeries Type="stackedbar" DefaultLabelValue="#Y% Completed">
                        <Appearance LegendDisplayMode="Nothing"  TextAppearance-TextProperties-Color="white" >
                            <FillStyle MainColor="Green" SecondColor="LightGreen"   FillSettings-GradientMode="Horizontal"/>
                        </Appearance>
                        <Items>
                            <telerik:ChartSeriesItem  yvalue="57" />
                        </Items>
                    </telerik:ChartSeries>
                    
                    <telerik:ChartSeries Type="stackedbar" >
                        <Appearance LegendDisplayMode="Nothing"  LabelAppearance-Visible="false">
                            <FillStyle MainColor="#FF7878" FillType="Solid"  />
                        </Appearance>
                        <Items>
                            <telerik:ChartSeriesItem  yvalue="100" />
                        </Items>
                    </telerik:ChartSeries>
                </Series>
            </telerik:radchart>
Erin
Top achievements
Rank 1
 answered on 31 Jul 2009
2 answers
110 views
HI,

We make a multilanguage support application with the telerik component.

To change the text of the header or other things in the grid we use OnItemDataBound and it's works Fine.
The only things is i can't found a way to change the text of a GridButtonColumn for ConfirmText and ConfirmTitle.

Can i access to this if e.item is GridDataItem ?

like:

if(e.Item is GridDataItem)
{
    var _item = e.Item as GridDataItem;
    _item["UniqueName"].ConfirmText = GetText.Get("VariableString");
   _item["UniqueName"].ConfirmTitle = GetText.Get("VariableString");
}

For GridHeaderItem and GridNoRecordsItem is no problem.

Thanks for your help.

Edwin.
Yves
Top achievements
Rank 1
 answered on 31 Jul 2009
1 answer
103 views
How do i always make my gridclient selct column checked by default??

I've a radgrid in my radpanel bar and I don't knnow even how do i get the item created evnet for that radgrid b'coz it's insisde a radpanel item and in design mode, i can see only the panel bar but not the radgrid.

 

How do i always make my gridclient selct column checked by default??


Shinu
Top achievements
Rank 2
 answered on 31 Jul 2009
3 answers
120 views
I am using Teletrik RAD control and have the following command OnInsertCommand="RadGrid3_InsertCommand" for a Rad grid

 

 

 

radG:RadGrid ID="RadGrid3". Everything is runnig fine on IE7 but when some user is trying to click "Insert" using IE6 SP2 (using XP SP2) the browser is getting shut down.

 

Can you please suggest what could have gone wrong for IE6 users?

 

Thanks!

 

 

Pavel
Telerik team
 answered on 31 Jul 2009
3 answers
105 views
I’m trying to pop-up a RadWindow from a RadGrid command item button.  What happens is that the window shows briefly, then the page postsback and the window is gone.  What I would like to do is show the window, wait for the user to submit a value in the window, and then refresh the original page with the RadGrid.  I just can’t figure out how to stop the command item from posting back.  Any help greatly appreciated!  Thanks! Winston
Jon
Top achievements
Rank 1
 answered on 31 Jul 2009
2 answers
157 views
How to select first row of the grid after the need data source event and each time changing the page of the grid?

For your info, the column in my grid is auto-generated.

Thanks.


Lim
Top achievements
Rank 1
 answered on 31 Jul 2009
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?