Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
443 views
Hello,

Could somebody help me with this issue ?

I use decorated radiobuttonlist control. Based on some logic steps in the code behind I've disabled all radio items except selected one. What I've tried to achieve is removing hover style which is applied over selected radio button and replaced it with normal state. 

How to override style for hover action ? What should I insert inside of the class disableHovering ?

I use this code for iterating through radiobuttonlist collection:
RadioButtonList rblCtrl = (RadioButtonList)ctrl;
foreach (ListItem i in rblCtrl.Items)
{
     if (i.Selected != true) i.Enabled = false;
     else
     {                                
         i.Attributes.Add("onmouseover", "this.className=('disableHovering');");
     }                            
}


For further info please check the attachment.

I will appreciate all suggestions...


Best regards

Vasek
Vasssek
Top achievements
Rank 1
 answered on 03 Feb 2011
6 answers
494 views
Hi,
I want to add a custom tooltip on my appointments in the scheduler but I cant figure out how to do it.
I have tried like this:
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
    e.Appointment.Attributes.Add("onmouseover", "showTip('my custom tool tip text', 450);");
    e.Appointment.Attributes.Add("onmouseout", "hideTip();");
}

But the attributes are not added anywhere in the code when I look at the rendered html source, why?
I want the tooltip to show up when I hover over an appointment.

Regards,
Mattias
 
Mattias
Top achievements
Rank 1
 answered on 03 Feb 2011
3 answers
247 views
For various reasons, I'd like to use jQuery to post the radeditor content via ajax to a pagemethod.  I understand how to do this with jQuery, but I need some assistance with the radeditor. 

What I need to know is what do I need to do on the client and server to get the same exact results as a traditional postback?  In other words, I'd like to get the same exact string that I get from the RadEdit.Content property.

  • What javascript will put the contents of the editor into a form field so that jQuery can collect it and post it?
  • Assuming there is some processing done by the server-side radeditor control in a traditional postback on the posted HTML (encoding/decoding perhaps?), can I call that processing to get the same results in my pagemethod?

Thanks

srinivasu
Top achievements
Rank 1
 answered on 03 Feb 2011
1 answer
490 views
Error :webform_dopostbackwithoptions is not defined

I have used Asp .net 4.0, Telerik, windows server 2008 and configured in iis 7.0. When i sumbit button click in my page the above error is occur. In telerik radcontrol used input validation in text box control.

Maria Ilieva
Telerik team
 answered on 03 Feb 2011
1 answer
191 views
I have a RadAsyncUpload control and a DataList control in a webpage. With RadAsyncUpload control I am inserting images into my sqldatabase. I would like to fire a postback action for only datalist control in my webpage after a fileupload completed. How can I fire that postback on clint side?

Thank you.
Genady Sergeev
Telerik team
 answered on 03 Feb 2011
1 answer
156 views
Hello,

I have a problem with displaying the items in the radlistview control in RTL mode. In order to understand the problem plaese view the attached images (Cuurent.jpg and Required.jpg).

Here is the control code::
<asp:Panel ID="RadListView1Panel" style="margin-left:10px;" runat="server">
                 <telerik:RadListView runat="server" ID="RadListView1" AllowPaging="True" EnableEmbeddedSkins="false" Width="915px"
                    DataKeyNames="ItemID" DataSourceID="ObjItems" OnPageIndexChanged="RadListView1_PageIndexChanged" onitemdatabound="RadListView1_ItemDataBound">
                    <ItemTemplate>
                        <div class="rlvI" style="margin-left:1px; border:0; border-color:transparent; height:220px; width:305px;">
                            <center>
                                <asp:Panel ID="ItmPanel" Width="300px" BackImageUrl="~/Common/Img/BackGrounds/g4.gif" style="margin:-1px; padding:-1px;" Height="210px" runat="server">
                                        <asp:Table ID="Table1" Width="300px" HorizontalAlign="Center" BorderColor="Black" BorderWidth="0" runat="server">
                                            <asp:TableRow ID="TableRow2" Height="20px" runat="server">
                                              <asp:TableCell ColumnSpan="2">
                                                   
                                              </asp:TableCell>
                                            </asp:TableRow>
                                            <asp:TableRow ID="TableRow1" Height="190px" runat="server">
                                                <asp:TableCell VerticalAlign="Top" HorizontalAlign="Right" ID="TableCell1" Width="200px" runat="server">
                                                  <div style="margin-right:5px;">
                                                    <asp:Label ID="ItmNameLabel" SkinID="ItemHeaderText" runat="server" Text='<%# Eval("ItmName") %>'></asp:Label><br /><br />
                                                    <asp:Label ID="ItmDescLabel" runat="server" Text='<%# Eval("ItmDesc") %>'></asp:Label>
                                                  </div>
                                                </asp:TableCell>
                                                <asp:TableCell ID="TableCell5" VerticalAlign="Top" Width="100px" runat="server">
                                                    <asp:Image ID="ItmImage" ImageUrl='<%# Eval("FileUrl") %>' Width="90px" Height="90px" runat="server" />
                                                    <br /><br /><br />
                                                    <asp:LinkButton ID="MoreDetailsLinkButton" Font-Underline="false" ForeColor="Black" Font-Bold="true" Text="<%$ Resources:Resource, PagesItemsMoreDetailsLinkButtonText %>" OnClick="MoreDetailsLinkButton_Click" runat="server"></asp:LinkButton>
                                                </asp:TableCell>
                                            </asp:TableRow>
                                        </asp:Table>
                             
                                </asp:Panel>
                            </center>
                        </div>
                    </ItemTemplate>
                    <EmptyDataTemplate>
                        <div class="RadListView RadListView_<%# Container.Skin %>">
                            <div class="rlvEmpty">
                                There are no items to be displayed.</div>
                        </div>
                    </EmptyDataTemplate>
                    <LayoutTemplate>
                        <div class="RadListView RadListViewFloated RadListView_<%# Container.Skin %>" style="background-color:transparent;">
                            <div class="rlvFloated rlvAutoScroll">
                                <div id="itemPlaceholder" runat="server">
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" width="100%" style="clear: both;">
                                <tr>
                                    <td align="center">
                                        <telerik:RadDataPager ID="RadDataPager2" runat="server" Width="280px" PagedControlID="RadListView1"
                                            PageSize="21" >
                                            <Fields >
                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                                        TextBoxWidth="15" />
                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                            </Fields>
                                        </telerik:RadDataPager>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </LayoutTemplate>
                </telerik:RadListView>
            </asp:Panel>

Please, I need to display the items as it is shown in Required.jpg image.
It is appreciated to send me the modified code.

Regards,
Bader
Daniel
Telerik team
 answered on 03 Feb 2011
1 answer
145 views
I am currently evaluating the Telerik suite of tools and trying to write a sample program to provide my management with justification for the purchase of the suite.  In doing so I am trying to use the Ajax based suite of products for the first time.

Currently I have a master page with three content panels. 

My Tree View is defined with:
------------------------------------------
    <telerik:RadTreeView runat="Server" ID="HDQueuesTreeView" OnNodeClick="HDQueuesTreeView_NodeClick"
        EnableViewState="False" DataFieldID="NODE_ID" OnClientNodeClicked="onNodeClicking_HDQueuesTreeView"
        DataTextField="DISPLAY_TEXT" DataFieldParentID="PARENT_NODE"
        OnNodeDataBound="HDQueuesTreeView_NodeDataBound"
         DataValueField="OBJECT_AS_XML" >
        <DataBindings>
            <telerik:RadTreeNodeBinding ToolTipField="TOOL_TIP_TEXT" TextField="DISPLAY_TEXT" ValueField="OBJECT_AS_XML" />
        </DataBindings>
    </telerik:RadTreeView>
------------------------------------------

My Grid is defined in another content panel with:

------------------------------------------
<telerik:RadGrid ID="HDQueueGrid" runat="server" AutoGenerateColumns="False"
                Height="100%" BorderWidth="0px" AllowSorting="True" Style="outline: none" ShowGroupPanel="True"
                GridLines="None"
                onneeddatasource="HDQueueGrid_NeedDataSource">
                <MasterTableView>
                    <CommandItemSettings ExportToPdfText="Export to Pdf" />
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
(I snipped out all the columns)
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True" AllowDragToGroup="True">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                </HeaderContextMenu>
           </telerik:RadGrid>
------------------------------------------

The tree view control populates and the click events fire the required Ajax request to the server.  The server side onnodebound events fire.  The server side OnClick events never fire.  The server side Ajax manager request does fire and it seems to work.  My current Ajax event is as follows:
------------------------------------------
protected void MyQueuesAjaxManager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            //Use the Deserialize method to create a RadTreeNode object from the JSON string representing the node
            RadTreeNode clickedNode = new JavaScriptSerializer().Deserialize<RadTreeNode>(e.Argument);
            if (clickedNode != null)
            {
                if (u != null)
                {
                    QB_LAST_CLICKED = XMLSerial.DeserializeObject<QUEUE_BUTTONS>(u, clickedNode.Value);
                    if (QB_LAST_CLICKED != null)
                    {
                        this.Session["LAST_CLICKED_QUEUE"] = QB_LAST_CLICKED;
                        HDQueueGrid.Rebind();
                    }
                }
            }
        }
------------------------------------------
My Grids "NeedsDataSource" event is as follows:
------------------------------------------
protected void HDQueueGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            List<QUEUE_CONTENTS> QC_LIST = null;

            if ((u != null) &&
                (this.IsPostBack == true))
            {
                if ((QB_LAST_CLICKED != null) &&
                    (e.IsFromDetailTable == false))
                {
                    QC_LIST = QUEUE_CONTENTS.READDB(u, QB_LAST_CLICKED);
                }
            }
            HDQueueGrid.DataSource = QC_LIST;
        }
------------------------------------------
I have confirmed that the datasource does in fact get populated. I just cannot seem to visually show the data.  The display content area which "hosts" the grid control is blank.

In case you wish to see my Ajax Manager code:

   <telerik:RadAjaxManager runat="server" ID="MyQueuesAjaxManager"
         OnAjaxRequest="MyQueuesAjaxManager_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="HDQueuesTreeView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="HDQueueGrid"
                        LoadingPanelID="HDAjaxLoadingPanel"  />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
I do not know if it is relevant but this snipped of code is located in the content panel with the TreeView control.

So what am I doing incorrectly?  I would revert the project to using a data source on the grid except that I cannot seem to derive the selectedvalue from the treeview control.  Those values are always an empty string.  (The treeview control is bound to a List<QUEUE_BUTTON> objects)

The treeview is populated using in the page load event using:

if (u != null)
            {
                if (this.IsPostBack == false)
                {
                    HDQueuesTreeView.DataSource = QUEUE_BUTTONS.READDB(u);
                    HDQueuesTreeView.DataBind();
                }
            }
------------------------------------------

Thank you for any pointers you can send my way.

Nikolay Tsenkov
Telerik team
 answered on 03 Feb 2011
1 answer
172 views
I have two listboxes that I am transferring items between.  I have set the sort propert to asceding and the datasortfield to "plantname" ( the same as the datatextfield) When an item is xfered to the other list it is not being ordered. Is there other code that I must add to make this happen?
Thank you
Judith
Shinu
Top achievements
Rank 2
 answered on 03 Feb 2011
1 answer
203 views
Hello ,
 I have a RadGrid that I am populating via Drag and Drop From another RadGrid , I would like to sort in the Grid that is being populated by drag and drop but upon clicking a column to sort the items in the grid are removed.

how can sorting be accomplished in this grid?
Martin
Telerik team
 answered on 03 Feb 2011
3 answers
267 views
Hi, please I need help with ths scenario:
I have a radgrid with AutoGenerateColumns=true, the Filters are enabled, also allow resize columns. At the beginning the grid fits the screen width, but after I do some resize in the columns (causing overflow in the screen and scroll appears) all the columns that appears after the scroll begins lost all functionality (drag n drop, the filters appears in wrong positions in the screen), this is weird, and makes the grid a complete disaster, please how can I fix this issue!. You can find screenshots.

Using Q1 2010

Thanks in advance.
Tsvetina
Telerik team
 answered on 03 Feb 2011
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?