Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
92 views
I have a radgrid in content page.
the master page have a RadSppliter (on left show slide panes ) the other part of splitter is for content pages.

I put radsplitter: height100%, thats works

And in my css I put

.RadGrid{ height:100% !important} --> this not work.



I don't kwon what I do wrong.
July
Top achievements
Rank 2
 asked on 24 May 2012
2 answers
151 views
Hi!

When programmatically setting the content, is there a way to start in Preview mode first and make the Design mode secondary? (We hide the HTML mode.)

Thanks!
Michael O'Flaherty
Top achievements
Rank 2
 answered on 24 May 2012
2 answers
146 views
I have a RadDatePicker control in an EditForm Template of a RadGrid. How can I attach a RadToolTip to this datepicker control? I tried the suggestions from other posts where IsClient=true and I appended "_dateInput_text" to the targetcontrolid but  I am not able to get the RadTooltip to display for the RadDatePicker. Does the RadTooltip work with the RadDatePicker control?  If not, can I use the jQuery Qtip with the RadDatePicker?

I have been able to get the RadTooltip to work in this EditForm Template with an asp textbox control and also with the RadEditor control.

I'm using the latest runtime version v4.0.30319 of the Telerik ASP.Net AJAX Suite and ASP.NET 4.0.

Thank you.
Michele
Top achievements
Rank 1
 answered on 24 May 2012
0 answers
84 views
   Hi, I developed a custom asp.net user control that uploads images from a client machine to the app server. I used Telerik RadGrid. The only problem I have is not being able to drag and drop rows. I have gone through the relevant documentation online and examples and was able to simulate the same behavior but the grid in my control seems to stumble over something I have not been able to figure out. I am posting a snippet here... If it s not going to help, I can send a demo asp.net web site project and the control library project. It's C# and .NET 4.0  Thank you.
<div>
  <telerik:RadGrid
            ID="grdImageGroups"
            runat="server"
            AutoGenerateColumns="False"
            ShowFooter="true"
            Height="232px"
            Skin="Office2007"
            AllowSorting="true"
            Width="237px"
            GridLines="None"
            Visible="true"
            AllowMultiRowSelection="false"
            OnItemCommand="grdImageGroups_ItemCommand"
            OnSelectedIndexChanged="grdImageGroups_OnSelectedIndexChanged"  
            OnRowDrop="grdImageGroups_RowDrop"
            OnItemDataBound="RadGrid1_ItemDataBound">
            <MasterTableView DataKeyNames="Key" ShowHeader="true" ShowHeadersWhenNoRecords="true"  >
                 <SortExpressions>
                        <telerik:GridSortExpression FieldName="Title" SortOrder="Ascending" />
                    </SortExpressions>
                    <Columns>
                        <telerik:GridTemplateColumn UniqueName="colCheck" Visible="true" ItemStyle-Width="30px" HeaderStyle-Width="30px" >
                             <ItemTemplate>
                                <asp:CheckBox runat="server" ID="chkSelectRow" onclick="CheckRow(this);" />
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn UniqueName="colImage" DataField="OriginalImageFile" ItemStyle-Width="30px" HeaderStyle-Width="30px">  
                           <ItemTemplate>  
                            <asp:Image ID="Image1" ImageUrl='<%# Eval("OriginalImageFile") %>' Height="20px" Width="20px" runat="server"  style="height:20px; width:20px" />  
                           </ItemTemplate>  
                        </telerik:GridTemplateColumn>  
                        <telerik:GridTemplateColumn HeaderText ="Image Name" DataField="Title"   UniqueName="colCheck" ItemStyle-Width="140px" HeaderStyle-Width="140">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblTitle" Text='<%# TruncatedTitle(Convert.ToString(Eval("Title")), 25) %>' ToolTip='<%# Eval("Title") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings  AllowRowsDragDrop="true" EnablePostBackOnRowClick="True">
                    <Selecting AllowRowSelect="true" EnableDragToSelectRows="false"  />
                    <ClientEvents OnRowDropped="RowDropped" OnRowSelected="RowSelected" OnRowDragStarted="displaymessage" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" />
                </ClientSettings>
            </telerik:RadGrid>
<div>
Sergei
Top achievements
Rank 1
 asked on 24 May 2012
2 answers
290 views
I am trying to create a RadNotification from the code behind of an .aspx page but I keep getting "Object reference not set to an instance of an object."  

I am creating a new RadNotification like so:

Dim notification As New RadNotification

and then try to show it:

notification.Show()

I understand that this notification would be empty but I have also tried giving it a title and some text but that doesn't seem to work either.

What else do I have to provide?  Is it even possible to do this?


Trevor
Top achievements
Rank 1
 answered on 24 May 2012
4 answers
120 views
Hi,
I have an existing application which id devloped in ASP.NET2005 Framework 2.0(CLR 2.0) and as per the client requirement
we need to use the TELERIK Shedular control.
But I think telerik schedular control targets the CLR3.0 and above.
Is there any Schedular control exists that i can use it into my existing application without migrating the framework(as application is huge and will imact on lot of functionality).
Please suggest on this on priority.


Many Thanks
Anurag Sharma
Peter
Telerik team
 answered on 24 May 2012
1 answer
75 views
I have implemented this project as a test project:

http://www.telerik.com/help/aspnet-ajax/grid-updating-inplace-and-editforms.html

When I edit records, the edits show up in the grid... but they do not update in the northwinds database.

How do I get the updated records to write to the northwinds mdb using this code example?
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 answered on 24 May 2012
5 answers
418 views
Hi,
I have a RadComboBox as:
<telerik:RadComboBox ID="rcbProducts" runat="server" EmptyMessage="Select a product" AllowCustomText="true"
       AppendDataBoundItems="true" DataTextField="ProductName" ToolTip="ProductDescription"
       HighlightTemplatedItems="true">
       <ItemTemplate>
           <div onmouseover='showToolTip(this);' title='<%# Eval("ProductDescription")%>' style='width: 100%;'>
               <%# Eval("ProductName")%></div>
       </ItemTemplate>
   </telerik:RadComboBox>
I have loaded it with few items using Page_Load on server side. Now i need to add an item at client-side using javascript. How can i achieve this. This is what i have got.
function Add() {
            var combo = $find("<%= rcbProducts.ClientID %>");
            var comboItem = new Telerik.Web.UI.RadComboBoxItem();
            comboItem.set_text("New Item");
            var div = document.createElement("div");
            div.setAttribute("onmouseover", "showToolTip(this);");
            div.setAttribute("title", "New Item");
            div.setAttribute("style", "width: 100%;");
            div.innerHTML = "New Item";
            comboItem.set_element(div);//It doesnt set div as element???
            combo.get_items().add(comboItem);
            comboItem.select();
            return false;
        }
Thanks in Advance.
Cat Cheshire
Top achievements
Rank 1
 answered on 24 May 2012
6 answers
272 views
I know a grid's "caption" property can be set server-side by,

grid.MasterTableView.Caption = "my caption";

But is it also possible to set this client-side via javascript?  I tried the following but no luck,

masterTableView = grid.get_masterTableView();
masterTableView.Caption = "my caption";

Thanks in advance.
David
Top achievements
Rank 1
 answered on 24 May 2012
1 answer
133 views
Hi,

I have a grid with group headers, i need to do expand all/collapse all as well as ensure the normal expand/collapse works too. I achieved expand all/collapse all via the below js:

        var EXPAND_CSS_CLASS = "<%=CSSConstants.EXPAND_EXPERIENCE_CSS%>";//rgExpand
        var COLLAPSE_CSS_CLASS = "<%=CSSConstants.COLLAPSE_EXPERIENCE_CSS%>";//rgCollapse
       
        //Expands or collapses all group headers based on expandCollapseClass
        function ExpandCollapseAllGroups(isExpand) {
            var sourceClass = (isExpand) ? EXPAND_CSS_CLASS : COLLAPSE_CSS_CLASS;
            var destinationClass = (isExpand) ? COLLAPSE_CSS_CLASS : EXPAND_CSS_CLASS;
            var toolTip = "<%=Tokens.CandidateExpandGroupToolTipText %>";
            if (isExpand) {
                toolTip = "<%=Tokens.CandidateCollapseGroupToolTipText %>";
            }
            // change the +/- states
            $("." + sourceClass).each(function(button) {
                $(this).removeClass(sourceClass).addClass(destinationClass);
                //change the tool tip for expand/collapse buttons
                $(this).attr("title", toolTip);
            });
            // hide/show the rows
            $("#<%=m_UIExperienceGrid.ClientID %> .<%=CSSConstants.GRID_ROW_CSS %>, #<%=m_UIExperienceGrid.ClientID %> .<%=CSSConstants.GRID_ALT_ROW_CSS %>").each(
                function(button) {
                    if (isExpand) {
                        $(this).show();
                    } else {
                        $(this).hide();
                    }
            });
            //return false to prevent postbacks
            return false;
        }

The issue is, i am unable to do an individual expand/collapse due to the mark up for grid being tampered by some highlight javascript functionality built in our application which will merely add span tags around the keywords i search to highlight in my application. The keywords i search corresponds to words displayed in the header item of the grid. Once the markup is tampered, the telerik grid individual expand/collapse breaks. Hence i need to somehow remove the telerik generated expand/collapse js associated with the input tags that bear the class "rgExpand" or  "rgCollapse" and add custom js to expand/collapse the groups individually. I tried the below js, it is not working

    $(".<%=CSSConstants.EXPAND_EXPERIENCE_CSS%>, .<%=CSSConstants.COLLAPSE_EXPERIENCE_CSS%>").attr('onclick', '');
$(".<%=CSSConstants.EXPAND_EXPERIENCE_CSS%>, .<%=CSSConstants.COLLAPSE_EXPERIENCE_CSS%>").each(
        function() {
            $(this)[0].onclick = function() {
                //TODO: if you need to know if the element is expanded, use the next line of code... otherwise remove it
                //var isExpanded = $(this).attr("class") == "rgCollapse";
                $(this).parents("TR.<%=CSSConstants.GRID_ROW_GROUP_HEADER_CSS %>").next("TR").toggle();
            }
        });

Please suggest me a solution as i have pretty much exhausted all the options.

Thanks and regards,
Damodar
Pavlina
Telerik team
 answered on 24 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?