Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 views

Hi,
I am having grid autorefresh issue. I am using telerik grid and i use a timer to auto refresh [using Ajax - Ajaxify Timer]. If we open a child window [radWindow] from parent-  On Auto refresh of parent, Child Window gets closed. Can somebody help me to do the auto refresh of parent grid without closing child window.


Thanks!
Tarun
Viktor Tachev
Telerik team
 answered on 06 Dec 2013
1 answer
207 views
Playing a bit with the control I found some issues:
- If you use DataTitleField and DataDescriptionField and those are null in the DB (I may have some pictures with descriptions and other with just the title or maybe even some picture without both), you receive a system.nullreference exception instead of a pic with empty title/description

- If the pic is small ore the title/description is long, the image count text goes out the borders of the lightbox instead of expanding it. Screenshot here

 - When paging images inside an open LightBox with the supplied arrows, in a databound set, i receive a JS error: 
Uncaught TypeError: Cannot call method 'get_imageUrl' of undefined RadLightBoxScripts.js:270
c.RadLightBox._determineContentMode RadLightBoxScripts.js:270
c.RadLightBox._showLightBoxStructure RadLightBoxScripts.js:138
(anonymous function) RadLightBoxScripts.js:291
b.isFunction.i jQuery.js:3
r.complete jQuery.js:5
c jQuery.js:3
p.fireWith jQuery.js:3
u jQuery.js:5
b.fx.tick

- [SOLVED] Adding a RadLightBoxItem in code behind with a target control before bounding to a collection (code follows), works BUT when opening the lightbox while the total number of pics displayed in the box is correct (sums the manually inserted items + the databound item) the number of the actual opened pic is wrong it always gets 1 both if you open the manually added item and the first data bound item, something like 1 of 5 for both.
Dim lightBoxItem As New RadLightBoxItem
lightBoxItem.TargetControlID = "MainImage"
lightBoxItem.ImageUrl = LinkHelpers.GetProfilePath(profile.ProfileId) & profile.ImagePath
 
Dim profileImagesLightBox As RadLightBox = DirectCast(EvaForm.FindControl("ProfileImagesLightbox"), RadLightBox)
profileImagesLightBox.Items.Add(lightBoxItem)

in aspx (that's inside a formview inside a user control nested in a radgrid..)
<fieldset>
    <legend>5. Foto</legend>
    <dl class="dl-horizontal">
        <dt><%#: If(Not String.IsNullOrWhiteSpace(Item.ImageDescription), Item.ImageDescription, "Foto")  %></dt>
        <dd>
            <div class="profile-photo">
                <asp:PlaceHolder runat="server" Visible='<%# Not (String.IsNullOrWhiteSpace(Item.ImagePath)) %>'>
                    <asp:image runat="server" ID="MainImage" ImageUrl='<%# LinkHelpers.GetProfilePath(Item.ProfileId) & "t2-" & Item.ImagePath %>' CssClass="img-polaroid" />
                </asp:PlaceHolder>
            </div>
        </dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>Altre foto</dt>
        <dd>
            <telerik:RadLightBox ID="ProfileImagesLightbox" runat="server" DataImageUrlField="ImagePath" Modal="true" AppendDataBoundItems="true" TabIndex="101">
                <ClientSettings AllowKeyboardNavigation="true" NavigationMode="Zone">
                    <AnimationSettings HideAnimation="None" NextAnimation="Resize" PrevAnimation="Resize" ShowAnimation="Resize" />
                </ClientSettings>
            </telerik:RadLightBox>
 
            <asp:Repeater runat="server" ID="ProfileImages" ItemType="Eva.Entities.EvaProfileImage">
                <ItemTemplate>
                    <a href="<%# LinkHelpers.GetProfilePath(Item.ProfileId) & Item.ImagePath%>" onclick="return false;"><img style="display: inline;"  onclick="OpenRadLigthBox(<%# Container.ItemIndex %>, '<%= EvaForm.FindControl("ProfileImagesLightbox").ClientID %>');
                          
                         return false;" class="media-object img-polaroid" src='<%# LinkHelpers.GetProfilePath(Item.ProfileId) & "t1-" & Item.ImagePath%>' /></a>
                </ItemTemplate>
            </asp:Repeater>
        </dd>
    </dl>
</fieldset>

Here is the result: screenshot here with the bigger pic wich is inserted "manually" in code behind (since it comes from another db table) and the smaller pics are databound (always in code behind with custom data-binding)
[SOLVED]: This was solved with <%# Container.ItemIndex + 1 %> thus taking into account the item you added manually (1 in my case)

- Some attributes maybe are somehow "obscure" for newbies (I tryed to use them based on common sense) like PreserveCurrentItemTemplates or AppendDataBoundItems. Some examples in the docs would be much appreciated, as well as some example accessing the bound field values in the DataBound event to modify them (add paths, change descriptions/titles).
Milena
Telerik team
 answered on 06 Dec 2013
3 answers
111 views
Hello,

I am using Radtreeview and attempting to load radtree nodes to memcached.   I am receiving the following message:

Type 'Telerik.Web.UI.RadTreeNode' in Assembly 'Telerik.Web.UI, Version=2012.2.1002.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable.

I read in related post that the fix would be in the 2012.2.1002.40 nightly build but I am still receiving the error after upgrading.

Thanks

Mike
Bozhidar
Telerik team
 answered on 06 Dec 2013
11 answers
242 views
Hi,
I have read the documentation of RadTree and i found out that the RadTree is 508 Compliance. 

http://www.telerik.com/help/aspnet/treeview/tree_accessibilitycompliance.html

Is RadScheduler also 508 Compliance?
Bozhidar
Telerik team
 answered on 06 Dec 2013
3 answers
115 views
I have a functionality where i am generating html from word document and saving it in database.
Then for some tokenization i am loading it into telerik text editor and doing some tokenization on the content in the editor.
I have read that if there is more then 100KB of content then editor might get slow.I have more then  that size of content some time.
So please suggest me how to optimized it to maximum level.My current mark up of the editor declaration is

<telerik:RadEditor runat="server" ID="RadEditor1" Height="515" Width="100%" Visible="True" EnableViewState="False" 
            ContentFilters="ConvertToXhtml, RemoveScripts,FixUlBoldItalic, IECleanAnchors, FixEnclosingP, MozEmStrong,IndentHTMLContent, OptimizeSpans">
        </telerik:RadEditor>
I have myself set enable viewstate to false to save some space at the moment
kamii47
Top achievements
Rank 1
 answered on 06 Dec 2013
14 answers
1.0K+ views
Hi,

I really need to enabled/disabled the RadComboBox via Javascript when the page is load. I need to do it so I can enable / disable the combobox again when the user click another button via JavaScript. I dont want to postback.

I have put the following code in the Page_Init()

ClientScript.RegisterStartupScript(Page.GetType(),

"mykey", "ToggleRadcomboBox();", true);

The javascript is as follow
function ToggleRadcomboBox()
{
    var combo = $find("<%= RadComboBox1.ClientID %>");
    //the combo return null
    combo.set_enabled(false);
    return false;
}

The above code will return me with "null value",
but, when I used:
function ToggleRadcomboBox()
{
    var combo = document.getElementByID("<%= RadComboBox1.ClientID %>");
    // found combo, but unable to do anything
    // combo.set_enabled(false) does not work when using document.getElementByID
    combo.disabled = true;
    return false;
}

Could you please help me out ?

Thanks.
Princy
Top achievements
Rank 2
 answered on 06 Dec 2013
2 answers
133 views
In lightweight rendermode the context menu icons are missing.  I have confirmed this in the demo samples by setting the Context Menu demo to lightweight.  I have included screenshots
Milena
Telerik team
 answered on 06 Dec 2013
2 answers
291 views
I use the following RadButton on a couple of pages and it behave strangely on each page.

<style type="text/css">
    .rbBlue .rbText {
        color: blue;
    }
 
    .rbRed .rbText {
        color: red;
    }
</style>
 
       <telerik:RadButton ID="FillerNLF" runat="server" AutoPostBack="false" Text="NLF" ButtonType="ToggleButton" checked="false"
            ToggleType="CheckBox" Style="font-size: 14px; top: 30px; left: 4px; position: absolute;">
            <ToggleStates>
                <telerik:RadButtonToggleState PrimaryIconUrl="../Images/layer_transparent.jpeg" CssClass="rbBlue"  />
                <telerik:RadButtonToggleState PrimaryIconCssClass="rbOk" Selected="true" CssClass="rbRed" />
            </ToggleStates>
        </telerik:RadButton>


On page 1, I use this and the behavior is fine. When the checkbox is unchecked, the text is blue colored and it is a transparent icon shown. When the checkbox is checked, the green checkmark appears and color of the text is red. That is the proper behavior.

When I use the exact same button on another page, I am getting a square outline of the layer_transparent.jpeg file when it is unchecked. If I hover the mouse over the item, the square outline disappears and nothing is displayed, except the blue text. When the checkbox is checked, a green checkbox appears and the text is red. So, it is the unchecked behavior that is not working. It's for this page only. I noticed this as I am building the page and there is no logic in the codebehind.
Danail Vasilev
Telerik team
 answered on 06 Dec 2013
1 answer
241 views
Hi team,

              I am using rad tab strip(with three tabs) with control(say radgrid,comboobox,etc.,) when i switch tabs once the controls have been loaded they seem to reload when i switch back to a previous selected tab. How to maintain the previous values in the tab once i switch back to the previous tab.

Thanks,
Vijay



    
Shinu
Top achievements
Rank 2
 answered on 06 Dec 2013
1 answer
98 views
Hello. Telerik team.

I would like to know more detail.
Which Binary Image control support image format?
Shinu
Top achievements
Rank 2
 answered on 06 Dec 2013
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?