Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
727 views
Hi,
I am using Telerik Radgrid with inline Editing feature.

Grid in the edit mode shows update/cancel commands as images.
I would like to disply both updateimage and updatetext.
Currently when I set the UpdateText with updateimage, it shows the text as tooltip when user hovers over the updateimage. I would like to display the updatetext even without hovering over the image.

I would appreciate help on this.

Thanks,
Manisha

Lobna
Top achievements
Rank 1
 answered on 07 May 2013
2 answers
157 views
Hi there,

i need someone to point me on how if i set  the predefined layout of RadListView on Code behind ?

well actually it does not matter if it has to be on code behind or not the only constraint is that i need to customize my data table (which will be datasource for the list view) on the fly and therefore i think i need to set the predefined lay out on code behind..


is this possible or i just have to create custom layout that will replicate the predefined lay out?

By predefined layout i mean the single row lay out..


thanks in advance guys...
Nahwin
Top achievements
Rank 1
 answered on 07 May 2013
2 answers
505 views
Hi,

I am using RadTreeView with server side load on demand. The issue I am having is I don't want the '+' sign to be displayed for a node if it doesn't have a child node. How can I achieve this with server side load on demand. Below is the code I am using to create root and child nodes.

 ASPX code:

<telerik:RadTreeView runat="server" ID="RadTreeView1" OnNodeExpand="RadTreeView1_NodeExpand" >
                 <ContextMenus>
                <telerik:RadTreeViewContextMenu ID="CM" runat="server">
                <Items>
                <telerik:RadMenuItem Value="CreateSibling" Text="Create Sibling">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Value="CreateChild" Text="Create Child">
                </telerik:RadMenuItem>
                </Items>
                </telerik:RadTreeViewContextMenu>
                <telerik:RadTreeViewContextMenu ID="EmptyCM" runat="server">
                </telerik:RadTreeViewContextMenu>
                </ContextMenus>
    </telerik:RadTreeView>

c# code:

protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!Page.IsPostBack)
                {
                    LoadRootNodes(RadTreeView1, TreeNodeExpandMode.ServerSide);
                }
                
            }
            catch (Exception ex)
            {
                RadAjaxManager1.Alert(ex.ToString());
            }
        }

private static void LoadRootNodes(RadTreeView treeView, TreeNodeExpandMode expandMode)
        {
            DataTable data = GetData(new SqlCommand("select Description,ID from Table1"));

            foreach (DataRow row in data.Rows)
            {
                RadTreeNode rootnode = new RadTreeNode();
                rootnode.Text = row["Description"].ToString();
                rootnode.Value = row["ID"].ToString();
                rootnode.ContextMenuID = "CM";
                rootnode.ExpandMode = expandMode;
                treeView.Nodes.Add(rootnode);
            }
        }

 protected void RadTreeView1_NodeExpand(object sender,RadTreeNodeEventArgs e)
        {
            if (e.Node.Nodes.Count == 0)
                PopulateNodeOnDemand(e, TreeNodeExpandMode.ServerSide);
        }

        private static void PopulateNodeOnDemand(RadTreeNodeEventArgs e, TreeNodeExpandMode expandMode)
        {
            DataTable data = GetChildNodes(e.Node.Value,e.Node.ContextMenuID);

            foreach (DataRow row in data.Rows)
            {
                RadTreeNode childnode = new RadTreeNode();
                childnode.Text = row["Description"].ToString();
                childnode.Value = row["ID"].ToString();
                if (!(childnode.Value == e.Node.Value))
                {
                    e.Node.Nodes.Add(childnode);
                    childnode.ExpandMode = expandMode;
                }

                childnode.ContextMenuID = "CM";
                
            }
            if (e.Node.Nodes.Count > 0)
            {
                e.Node.Expanded = true;
            }
            else
            {
                
               e.Node.ExpandMode = TreeNodeExpandMode.ClientSide;
                //e.Node.Expanded = false;
            }
        }
Bob
Top achievements
Rank 1
 answered on 06 May 2013
3 answers
246 views

Hi,

I have a Telerik Rad Grid and it has Export to excel functionality implemented in it .I am able to export to excel witt out any formatting options.

Now I want to add formatting into excel sheet which is being exported.

I am using telerik rad grid built in method to apply the formatting in Excel.
ie : ExcelMLExportStylesCreated , ExcelMLExportRowCreated

with this method I am unable set the background color to alternating item in excel file.

I want to give back ground color to alternating rows in excel sheet.

Attached image is the result i wanted

Please help me

Thanks,
A2H

A2H
Top achievements
Rank 1
 answered on 06 May 2013
6 answers
140 views
I am using a RadEditor to enable a (pretty unsophisticated) user to generate emails
I have Removed a number of the icons ("tools") that she won't know what to do with i.e. html validator
but I think she will want to incorporate the css she provided us with the site the page is part of
the css renders on the page but when I write the content of the control this is what I get
<span class="navigation">first line<br />
</span><span class="body_text_Heading">second line<br />
</span><span class="main">third line<br />
</span>and an image<br />
<img alt="" src="cid:UniqueID1" />
what do I have to do to get her css into the emails - and how do I tell she has added css styling to her text?
Elliott
Top achievements
Rank 2
 answered on 06 May 2013
1 answer
134 views
We are having an issue where the checkboxes in a RadComboBox are not checkable in Chrome on an Android tablet.  All other browsers on all other devices we support appear to be working fine.  We are on revision 2012.3.1380.40 of the controls.  Is this a known issue with this version?  Has it been fixed in a newer version?

Thanks,
Kevin

Kevin M. Betts
Lead Microsoft Developer
Kimball Midwest
<telerik:RadComboBox runat="server" ID="selJobTitles" DataTextField="DisplayText"
    DataValueField="JobTitleID" Width="95%" CheckBoxes="true"
    EnableCheckAllItemsCheckBox="true" EmptyMessage="No Job Titles Selected!"
    EnableEmbeddedSkins="false" Skin="KMBlack"
    OnItemDataBound="selJobTitles_ItemDataBound"
    OnClientDropDownClosed="FlushDropdownCheckboxCache">
    <Localization AllItemsCheckedString="All Job Titles" CheckAllString="Check All Job Titles"
        ItemsCheckedString="Job Title(s) Selected" />
</telerik:RadComboBox>

function FlushDropdownCheckboxCache(s) {
    btnHdnReloadFromChecks.click();
}

John Fetherolf
Top achievements
Rank 1
 answered on 06 May 2013
1 answer
369 views
It is a weird issue. I have a page with simple RadBinary image on that. It reads file from the disk and assign to rad binary image. Like this

imgBinary.DataValue = ReadFileToBytes(fullName)

imgBinary.SavedImageName = pi.OriginalFileName


It works fine. Everything alright, but for a certian image, it seems failing. but the weird thing is that it is failing on Chrome only, not IE or FF.

it doesn't display image, but when checked the details in the chrome, I found that it had error in JavaScript. Failed to load resource
and the resource is /Telerik.Web.UI.WebResource.axd?imgid=473d105fe88042cebef7411cd9fc8e53&type=rbi
it is weird that this issue is coming on few Images only and on Chrome browser only. the same thing works fine on   IE and FF.

BTW, I tried to open images in paint and re-saved them (saved to PNG and then saved as JPG back) just thinking that image might not be good, but still not worked. But seems images are good as they do render on IE and FF

any clue?
thanks,
Sameers
msigman
Top achievements
Rank 2
 answered on 06 May 2013
2 answers
274 views
Hello,

The WebResource.axd is caching the image data on the server for a couple minutes.  Can this be changed?  We have a security concern where an unauthorized user could possibly view the generated image if they obtained the url.  We only want the image to be generated once for the initial rendering, and not cached on the server (or very briefly) if possible.

Thanks 
msigman
Top achievements
Rank 2
 answered on 06 May 2013
4 answers
361 views
Dears , 
i am trying to download a file from ajaxified control , my problem is the file is saved in server network path ex(//sharedFile/Folder/File.extention).
i tried the below link but it did not work with no errors occurred
http://www.telerik.com/help/aspnet-ajax/ajax-download.html

any idea how is can be done ?!

msigman
Top achievements
Rank 2
 answered on 06 May 2013
2 answers
357 views
I have SelectedDateChanged event in code behind and invloking radconfim to with OK and Cancel buttons. The SelectedDateChanged works fine but when I click on 'Cancel' button 'SelectedDateChanged' fires twice. When I click on 'OK' button I am saving the 'Date' in the database. Could you please let me know why this event fires twice. I am using Telerik 2010 Q3 controls.
Also I have <asp:ImageButton next to the DatePicker. When I click on this button I would like to clear the date from DatePicker. But when I click on it 'SlectedDateChanged' event fires. I am not sure why? Please let me know. Thank you for any help.
Vasil
Telerik team
 answered on 06 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?