Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
100 views
Hi,
I have a page with tabstrip and multipage control which each holds a user controls

<telerik:RadStrip..>
      <Tabs>
            <telerik:RadTab Text="Image" PageViewID="PageViewImage" ... />
</telerik:RadStrip>

<telerik:RadMultiPage ... .>
<telerik:RadPageView ...>
                 <uc1:ImageChanger id.. />
         </telerik:RadPageView>
</telerik:RadMultiPage>

User Control: ImageChanger.ascx
<script language="javascript" ..>
      function OpenImageChanger(){ 
         ...
         // Opens a rad window.. 
        oWindow.add_close(RefreshImage)
      }
   
     function RefreshImage(){
$find("<%= AjaxPanelID.ClientID %>").ajaxRequest('');
    }
</script>
<telerik:RadAjaxPanel ... OnAjaxRequest="Imager_AjaxRequst" ..
           <asp:Image id="ImgCover" runat="server" ImageUrl="default.jpg" />
</teleirk:RadJaxPanel>
<input type="button" onclik="OpenImageChanger()" />

Code Behind: ImageChanger.ascx.cs
protected void Imager_AjaxRequest(object sender, AjaxRequestEventArgs e){
imgCover.ImageUrl = newImage
}


I have put a break point and I do see that the AjaxRequest Event is executed but nothing really changed at the client side.  The Image was still at default.  Also I followed the same approach where another tab and another user control which has treeview.  That treeview didn't get updated as well.  Please advise if I am missing anything since it's being a road block for me to go further.  

Thanks,


Ravi
Top achievements
Rank 1
 asked on 23 Feb 2012
1 answer
145 views
More Updates in this regard:

I have attached one more screenshot to know about the pointshape settings. I have predefined the shape in the designmode as shape=Triangle. Inside code-behind, I set the shape=star3. Before this statement, it was shape=Ellipses (supposed to be Triangle). After this statement, it is shape=star3. But none of the scenario/code impacts the shape of the bubbles. Means, it remains in the ellipse shape.

As far as the #2 issue which I mentioned in the previous mail, I made gray gradiant background to solve this issue temporarily.

Please let me know if there is any updates/improvement,

Regards
Sia
Telerik team
 answered on 23 Feb 2012
5 answers
103 views

I have a number of RdToolTips within 2 RadListView's on a page.

When i drag one element from one RadListView to the other RadListView the RadToolTips keep showing up on mouse hover (as expected on hover).

How can i in Javascript disable all the RadToolTips on the page when OnItemDragStarted client event for RadListView. Thus stopping the RadToolTips from showing up upon hover only when im dragging an element from one RadListView to another.

Any help would be greatly apreciated.

Svetlina Anati
Telerik team
 answered on 23 Feb 2012
7 answers
201 views
I'm binding a rad grid with a sql data source and it's working fine except for my gridcheckbox column. What type does the db column have to be for it to bind automatically. I've tried bit, and nvarchar with true/false?
Casey
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
103 views
I'm taking a list of directions and merging it with another list of directions and adding those directions to a panel bar to step through them using a Previous Next button.

the first set of directions are built Client side, the second set comes from the server. The are merged client side.

the Server side directions start out in the panel bar.

the I take the directions out of the panel bar, Clear the panel bar, Build the Client Side Directions into an array, then take the Server side directions and add them to the array, iterate over the array and add each item(step) back to the panel bar.

At this point, The Server side directions are Disabled, i can't focus on them, i can click on them and get the expected outcome other than the highlight, and list position state persistance. (if the list is large the focus doesn't bring the list into view)

I've traced it back to clearing the panel Bar, if I don't clear it.. all the items work as expected. when I clear the panel bar I get the disabled Panel Bar items.

is there a better way to do this?


Peter
Telerik team
 answered on 23 Feb 2012
1 answer
410 views

I have a RadGrid that needs to have dynamic DataSource. The grid will have an A to Z index, where only names started by selected alphabeth is displayed.

When the grid is first loaded, the datasource is by default:

<asp:LinqDataSource ID="ldsMember" ContextTypeName="RedBuckDataContext" TableName="RB_Members" OrderBy="FIFOType" runat="server" />

It loads fine, I can edit, insert and delete columns with no problems.

When an A-Z linkbutton is clicked, the grid's datasource is changed:

                using (RedBuckDataContext rbdc = new RedBuckDataContext())
                {
                    var member = (from m in rbdc.RB_Members
                                  where m.Name.StartsWith(lbAlp.CommandArgument)
                                  select m);

                    rgMember.DataSource = member.ToList();
                }

        rgMember.DataSourceID = null;
        rgMember.DataBind();

The grid displays only data starated with the selected alphabeth, which is good!

The problem is, when I click "Edit" to modify the data, the grid does not display anything. The rows displayed were gone. It is like the datasource has been resetted.

Can anyone please help me on this?

Cheers,

Andry

Tsvetina
Telerik team
 answered on 23 Feb 2012
4 answers
111 views
Hi,

I would like to know if pagination of long magazine articles is possible in RAD editor. Where pages splits it coud say "Read Netx>>>"
Thank you,
-khan
Rumen
Telerik team
 answered on 23 Feb 2012
2 answers
202 views
Hi,

When I click a node in my treeview and if that node has NO child nodes, NodeClick event is firing.. Not sure why!!
Strange thing is when I copy exact same code to a newly created project, its working fine..


I am using .NET Framework3.5 with C#


Any ideas?
Silver
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
68 views
Hi,

We have a user-selectable resolution drop down that ranges from 50-5 minutes. We are Rebinding to the scheduler per the documentation  - and all work fine except the 5 minute option.

When MinutesPerRow=5 and the user drags/drops a time slot, the mouse cursor and the time block are disconnected - a vertical offset between the two is seen, with over 200 pixels between them (I am on a big monitor), where the mouse cursor appears as a 4 way x, and the time slot in the drag operation is moving in unison with the mouse, but appears far above the cursor. We have activities where 5 minute time blocks are quite common - hoping there is a solution wherein we can make this work.
Peter
Telerik team
 answered on 23 Feb 2012
0 answers
103 views
Is it possible to have the RadDateTimePicker only display the time portion as needed? We have DateTimes which may or may not have a time portion. If no time portion is present, I'd like to not display the default time.

Also, when the user selects a date from the calendar, I'd like to not have the default time be displayed.

Finally, if the user is typing in a date and does not enter a time, I'd like to not have the default time be displayed; as well, if they start to type past a date, I'd like to allow the time portion to be entered.

For the first part, I've bee trying to do this by toggling the visibility of the TimeView (eg. RadDateTimePicker1.TimeView.Visibility = false ) in the code behind, but that doesn't seem to have any effect.
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 23 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?