Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
124 views
Hi,

I add an item to the RadRotator in the server-side, but I can't see it...

here is my code:

System.Web.UI.WebControls.

Image image = new System.Web.UI.WebControls.Image();

 

a.ImageUrl =

"~/Images/Design/Edit.png";

 

RadRotator1.Items.Add(

new Telerik.Web.UI.RadRotatorItem(image));

(The url is correct, I use it a lot in my web site, and I can see that the rad rotator has the item, using f12 when I run the code in my browser)

Do you have any ideas how to solve this problem?

Thanks!

 

Slav
Telerik team
 answered on 27 Aug 2012
3 answers
156 views
Weird situation.  We have two RadTreeViews, one for "available" critieria and one for "selected".  As users pulls a node from "available" to "selected", we open a RadWindow to let them specify the settings for that criteria (example: pull over the "user name" node, we pop a window to let them select equals/starts with/contains and type in a value).

In Chrome, each time the window is dragged over, the height increases by exactly 39 px.  Height doesn't change in IE9, but it doesn't seem to autosize to what I'd expect either--it picks 300px for reasons which escape me.

In the page containing our trees, here's how we define the RadWindow:
<telerik:RadWindow ID="CriteriaModal" runat="server" Modal="true" AutoSize="true" AutoSizeBehaviors="Height"
    VisibleStatusbar="false" ShowContentDuringLoad="false" Width="600px" Behaviors="Resize, Close, Move"
    OnClientClose="adHocCriteria.editNodeReturnHandler" RestrictionZoneID="radWindowZone">
</telerik:RadWindow>

and when the drag happens, here's how we open it:

adHocCriteria.editNode = function adHocCriteria_editNode(node, logical, logicLocked) {
    if (logicLocked)
        logical = logical + '_LOCKED';
 
    // VALUE == FieldLabel \b FieldID \b Operator \b Value
    var paramValue = 'fieldId=' + encodeURI(logical + '\b') + node.get_value();
 
    adHocCriteria._editNode = node;
 
    var modalDialog = adHocCriteria_GetModalWindow();
    alert('showing modal, height is ' + modalDialog._height);
 
    modalDialog.setUrl(adHocCriteria_GetAdHocCriteriaDetailsModalUrl() + '?' + paramValue);
    modalDialog.show();
}

(I put the alert in just to see what the _height parameter is immediately upon referencing it.  In Chrome, it goes from 300 to 339 to 378..., even if we pull the same node over [i.e., we're displaying the exact same set of controls, which should calculate the same height]).

A bit of detail, if it's of interest: our modal content is a RadSplitter (horizontal) with three RadPanes.  The middle one has a table with a series of Panels in it.  Depending on the type of node that's dragged over, we make the appropriate Panel visible (one has text-type input, one has date controls, et cetera).

So there's a bit of dynamicness there, but pulling the same node over repeatedly means we're going to make the same Panel visible with the same controls, so height should be calculated the same.

I'm working on this as a low-priority project, trying to put together a sample in extra time for you guys; so, it might be a while until I can get that together.  At this point, just wondering if anything like this has been reported, and, if so, what I might focus on.
Marin Bratanov
Telerik team
 answered on 27 Aug 2012
2 answers
93 views
Hi

Is it possible to use FontAwsome as a node image/text.

e.g. I can use this <i class="icon-camera-retro"></i> and I will get a camera icon on a plain page.

I want to use the camear icon and others as node images.

Is this possible?

Thanks

John
John
Top achievements
Rank 1
 answered on 27 Aug 2012
1 answer
90 views
Hello,

 I have a button on my page, TexBox that will contain the name of a person and empty rotator at the beginning, how can we add items (image) in my rotator by clicking on the button, I have been the following code in the button's onclick:
C# :
  protected void btn_Click (object sender, EventArgs e)
     {
System.Web.UI.WebControls.Image Image image = new ();
image.ImageUrl = "~ / Images / Customers /" + + TextBoxmember.Text. "jpg"};
RadRotatorItem item = new RadRotatorItem ();
item.Controls.Add (image);
RadRotator1.Items.Add (item);
}
aspx:

                <asp:TextBox ID="TextBoxmember"  Width="245px"    CssClass="inputTextEntryAutocomp" TabIndex="2"  runat="server"></asp:TextBox>



<telerik:RadButton ID="btnIcon" runat="server"  Height="30px" Width="150px" Skin="Windows7"
                       Text="Add member"
                       onclick="btn_Click">
        <Icon PrimaryIconUrl ="~/Images/FIT_Ajout_BOITE_ON_Small.png" PrimaryIconLeft="2px" PrimaryIconTop="2px"  PrimaryIconHeight="25px"  PrimaryIconWidth="35px"/>
                    
    </telerik:RadButton>

    <telerik:RadRotator ID="RadRotator1" runat="server"
                        CssClass="verticalRotator"  Height="250px"  ScrollDuration="500" FrameDuration="2000"  
                        ItemHeight="110"  
                        RotatorType = "Buttons">
        <ItemTemplate    >
                        
           
                        
      
        </ItemTemplate>
    </telerik:RadRotator>

  the problem is that it always loads the last person on entry and not save the old values.

thank you
Slav
Telerik team
 answered on 27 Aug 2012
1 answer
58 views
hi telerik,
    I want a specific color of the forecolor dropdown can be selected by client code when the radeditor load, and I have the same porblem with the font-size dropdown , how should I do? thanks
Rumen
Telerik team
 answered on 27 Aug 2012
2 answers
103 views
Hi this is my first post.

I am using the 30day trial at the moment.

Are there any built in images for the ribbon?

I'm looking at possibly converting an msaccess db to a web application in access I can use an office image by using this imageMso="DirectRepliesTo"

Is there anything similar to this or do I need to get all the images myself.

I'm also new to asp.net although I have done a few winforms applications.

Thanks

John
John
Top achievements
Rank 1
 answered on 27 Aug 2012
1 answer
64 views
Here is my scenario:

I have one RadToolTipManager on a page with a bunch of images representing statuses. When the page first loads, the tooltips work correctly for the images. We have javascript functions that change the alt attribute of those images. But after the alt is changed via javascript, the tooltip still shows the old text and not the new updated text. is there a way to not cache the tooltips?
Marin Bratanov
Telerik team
 answered on 27 Aug 2012
1 answer
273 views
This has to be a super simple answer...I'm just not finding it.  I'm using the below from code behind to display the RadConfirm window.

aeWindowManager.RadConfirm("Are you sure you want to remove?", "InitiateAjaxRequest", 330, 100, null, "Confirm Remove");

Once a choice is made in the RadConfirm window, this javascript function is called...

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">

function InitiateAjaxRequest(arguments) {
var ajaxManager = $find("<%= aeAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest(arguments);
}

</script>
</telerik:RadCodeBlock>

I can then handle the response using this in the code behind...

protected void aeAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
      //logic here
}

I'm able to access the bool value of the RadConfirm choice using e.Argument.  My problem here is that I need to pass multiple parameters to aeAjaxManager1_AjaxRequest instead of just true or false.  I have no problem splitting a comma seperated string here but I'm not sure to add the multiple arguments to pass to the AjaxRequest.  In this particular case I need to pass the bool value of the selection along with 2 other strings.  I've tried this...

aeWindowManager.RadConfirm("Are you sure you want to remove?", "InitiateAjaxRequest('string1')", 330, 100, null, "Confirm Remove");

...and it works but I loose the bool response from the radconfirm window.  I need to capture the response as well as specify 2 strings.

Please advise how I should go about this.  Your time is much appreciated!!

 

 

 


Marin Bratanov
Telerik team
 answered on 27 Aug 2012
6 answers
140 views
Dears,

I use radmenu in rtl mode.
when i move the mouse to a extensible menuitem , menu  jump to left completely in IE but it is ok in firefox.

Thanks,
Hoty
Ivan Zhekov
Telerik team
 answered on 27 Aug 2012
3 answers
141 views
Hey Telerik and other gurus!

Odd scenario when using RadInput controls...

Please see the attached image - BeforePressingEnter.png --- The Add button is the default button (ImageButton).  The green area is a DIV.  When the Add button is clicked, it uses jQuery to collapse the green div and set focus to the next control on the form using RadAjaxManager.GetCurrent(control.Page).FocusControl(control);.

When focus is ON the phone number masked edit box and the user presses enter, sometimes (but not always), the RadMaskedTextBox gets a little clingy and doesn't want to give up it's focus.  What the user sees is what you see in AfterPressingEnter.png.  Notice the cursor is where the masked text box is before the green area is collapsed.

When focus is on any other control pictured or if you manually click on the Add button focus moves as is appropriate.

This same situation has been observed when we have a RadGrid using InPlace editing and one of the controls in the EditTemplate is a RadInput control.  I've seen other similar posts in the RadGrid forums regarding how to use the enter key to cause the grid to save the changes, but there was no solution offered up there.

Got any ideas Telerik?

A "work-around" we have implemented is to capture the enter key on the client side keydown event of the RadNumericTextBox and set focus to the Add button.

This appears to only occur in IE.  Firefox 3.6.3 and Chrome 8.0.552 both seem to be immune to this situation.

Thanks!
Thad
Vasil
Telerik team
 answered on 27 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?