Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
How to deselect a selected row by javascript?

In fact my user want to have two feature.
First they want to have a button to let them deselect all selected rows.
Second, they want to deselect a selected row by single click on it.

Is there any way to achieve this? Thanks.
Princy
Top achievements
Rank 2
 answered on 07 Nov 2008
7 answers
185 views
There was a really nice tutorial for the ASP Dot Net controls. Is there an updated one for the Prometheus controls. TIA
Lino
Top achievements
Rank 2
 answered on 06 Nov 2008
10 answers
323 views
The following configured toolbar below looks like this:

Yesterday | Current Week | LW | Last 4 Weeks | Last 13 Weeks

When I programmatically hide "Yesterday" for certain reports and then lets say i click on LW button the next RadToolBarButton "Current Week" gets selected instead of one the I selected.  It seems like some kind of ordinal position problem.

Thanks for your time,
~Kim

<telerik:RadToolBar ID="ToolbarQuickLinks" runat="server" CausesValidation="False" OnButtonClick="ToolbarQuickLinks_ButtonClick" Skin="Office2007">  
    <CollapseAnimation Duration="200" Type="None" /> 
    <Items> 
        <telerik:RadToolBarButton runat="server" CheckOnClick="True" CommandArgument="Yesterday" 
            Text="Yesterday" Value="Yesterday" CausesValidation="False">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton runat="server" CheckOnClick="True" CommandArgument="CurrentWeek" 
            Text="Current Week" Value="CurrentWeek" CausesValidation="False">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton runat="server" CheckOnClick="True" CommandArgument="LW" 
            Text="LW" Value="LW" CausesValidation="False">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton runat="server" CheckOnClick="True" Text="Last 4 Weeks" 
            CommandArgument="L4" Value="L4" CausesValidation="False">  
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton runat="server" CheckOnClick="True" Text="Last 13 Weeks" 
            CommandArgument="L13" Value="L13" CausesValidation="False">  
        </telerik:RadToolBarButton> 
    </Items> 
    <ExpandAnimation Type="None" /> 
</telerik:RadToolBar> 
David
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
494 views
I have a delete button on my toolbar that I need a popup before deleting.

So, I need the delete button on the toolbar to confirm the user really wants to.

I've followed the instructions below:
http://www.telerik.com/help/aspnet/toolbar/tool_stop_postback.html

I get the following error in my Firefox error console:  "....attachEvent is not a function"

Here is my radtoolbar:
<telerik:RadToolBar ID="UserAccessEditToolBar" runat="server"/> 
 
and here is my javascript:
<script type="text/javascript"
 
<%= UserAccessEditToolBar.ClientID %>.attachEvent("OnClientClick","click_handler"); 
 
function click_handler(sender, e) 
   if (sender.CommandName == "clientside") 
   { 
       // call clientside function here 
       return false; 
   } 
 
</script> 
any suggestions?



tom
Top achievements
Rank 1
 answered on 06 Nov 2008
2 answers
139 views
Hello, I am having a bit of a strange problem. 

I have a user control that has an image button (imgBtn), and a regular image (imgToolTip).  imgBtn does a postback to imgBtn_click, and the imgToolTip is attached as a target for the tooltipmanager that does an onDemand Load call to onAjaxUpdate.  Everything is fine. 

However, when I place an update panel around everything, and point the async triggers at imgBtn, something rather strangee happens:
1. The update panel works fine, clicking on imgBtn has the desired effect, and the panel is updated.
2. If I mouse over imgToolTip, the tooltip updates correctly (onAjaxUpdate is called).
3. After viewing the ToolTip, if I then click on imgBtn, the onAjaxUpdate is called rather then calling the imgBtn_click event (no tooltip is displayed though).

I have the tooltip manager inside the update panel because the postback will also change the imgBtn, and imgToolTip, and if it is outside, then it will keep popping up the tooltip for the previous context.  

I am stumped as to why this is happening...
Lance
Top achievements
Rank 1
 answered on 06 Nov 2008
2 answers
190 views
Hi,
I think I ran into a bug regarding client-side row selection. Any help or workaround would be greatly appreciated.

I'm using Q2 2008 RadGrid (IE 6 if it matters)

This problem can be seen in the Telerik demo here... http://demos.telerik.com/aspnet/prometheus/Grid/Examples/Client/Selecting/DefaultCS.aspx (The second grid with checkboxes)

If AllowMultiRowSelection="false" on a grid, once you select a row you cannot deselect it on client-side. It acts like a radiobutton. If you set AllowMultiRowSelection="true" it works just fine. The problem for me of course is that I need AllowMultiRowSelection="false".

Come to think of it, I'll bet you guys are somehow masking a radiobutton to look like a checkbox in my scenario. Did I just crack the code? :-)
If that is the case, there should be a simple Javascript fix, right?

Thanks in advance for any suggestion or let me know if I need to clarify.
Joe
Joe
Top achievements
Rank 2
 answered on 06 Nov 2008
2 answers
210 views
Hi and sorry for my english skills:),
I have 2 web pages (asp.net, radwindow). On the fist page I have RadGrid. From this page I open second page (so booth radwindow are open). On this (2nd) page I  update some value in database.
How can I refresh only RadGrid on the first page when I close the second page?
Thx for reply.
Olo
Top achievements
Rank 1
 answered on 06 Nov 2008
4 answers
159 views
Hello all,
I have a field I need to group by in the RadGrid ("TypeId"), but I wish to display a different field as the "group name". This field is "Type Name" (note the space).

Is this possible? ie, groupBy = TypeId, display = Type Name

If I can't display a different column heading to the group-by field that's fine, the main thing is I need to be able to group by a field that contains a [space]. I'm dealing with legacy, deployed code, so I can't go changing the stored procs!

Any help appreciated.

Cheers,
DT
Levi
Top achievements
Rank 1
 answered on 06 Nov 2008
2 answers
219 views

Please Note: This is a solution rather than a question.

On the following example:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Dock/Examples/MyPortal/DefaultCS.aspx

The following javascript error throws if you are using master pages:

Microsoft JScript runtime error: 'null' is null or not an object.

This is caused by the following line:

ScriptManager.RegisterStartupScript(dock, Me.[GetType](), "AddDock", String.Format("function _addDock() {{" & Chr(13) & "" & Chr(10) & "" & Chr(9) & "Sys.Application.remove_load(_addDock);" & Chr(13) & "" & Chr(10) & "" & Chr(9) & "$find('{1}').dock($find('{0}'));" & Chr(13) & "" & Chr(10) & "" & Chr(9) & "$find('{0}').doPostBack('DockPositionChanged');" & Chr(13) & "" & Chr(10) & "}};" & Chr(13) & "" & Chr(10) & "Sys.Application.add_load(_addDock);", dock.ClientID, DropDownZone.SelectedValue), True)

DropDownZone.SelectedValue is referenced which will return RadDockZone1 instead of the required RadDockZone1.ClientID.

There are a few solutions to this problem but i found the best one was to populate the Rad Dock selector at runtime.

Simply add the following code to the page load:

Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
        If Not Page.IsPostBack Then 
 
            For Each item As ListItem In DropDownZone.Items  
                Dim obj As Web.UI.Control = RadDockLayout1.FindControl(item.Value)  
                If obj IsNot Nothing Then 
                    item.Value = obj.clientID  
                End If 
            Next 
        End If 
    End Sub 
 

If a better solution is avalible please post it here.

Jake
Top achievements
Rank 1
 answered on 06 Nov 2008
7 answers
254 views
I have set the rad editor to be 100% and am using it for a content type which is Publishing HTML. When I enter text in the radeditor control neither the edit mode or the preview mode match the published page view. The lines wrap at totally different words.

RadEditor 5.2.2

html and css as follows in a Moss page layout.

 <div id="rightContentDiv" class="rightContenDiv">
      <div class="pageContent" >
           <telerik:RadHtmlField DisplayHeight="200px" 
            DisplayWidth="100%" FieldName="PageContent2" 
            runat="server" id="RichHtmlField1" >
           </telerik:RadHtmlField>
      </div>
 </div>

 
.rightContenDiv
{
 float:right;
 width:259px;
}

.pageContent
{
      font-family:tahoma; 
      font-size:10pt; 
      color:#5B5B5B; 
}

Thanks
Mark

Lini
Telerik team
 answered on 06 Nov 2008
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?