Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
76 views
Is it possible to change the behaviour of  CursorUp and CursorDown? CursorUp should work like Shift-Tab and CursorDown should work like Tab inside of a RadGrid. Is this possible and if yes how?
Mira
Telerik team
 answered on 30 Apr 2010
3 answers
372 views
I'm having a problem using the CountDisinct aggregate in a group by expression in the RadGrid. I'm using the aggregate function to get a unique count total in my Group header. I can reproduce this issue in the online demo as follows:

If i take the default grouping expression  'Country [My Country], count(Country) Items [My Items], Sum(TotalAmount) GroupTotal [Group Total ] Group By Country'
and i change 'count(Country)' to 'CountDistinct(Country)' suddenly the total for My Items becomes blank. The final grouping expression looks like this Country [My Country], CountDistinct(Country) Items [My Items], Sum(TotalAmount) GroupTotal [Group Total ] Group By Country.
What am i doing wrong? Is there another way to get a count of unique items in the group header?

Thanks
Marcel



Wallace
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
90 views
I have the following RadUpload control as shown below. This quite happily displays normal images, however when I select a very large high resolution image (5.2mb) the page just crashes with an unhandled error, any ideas what may be going wrong here.

Regards

Robert

     <telerik:RadUpload ID="RadUpload1" runat="server" Culture="English (United Kingdom)"
                            MaxFileInputsCount="3" OnFileExists="RadUpload1_FileExists1" OverwriteExistingFiles="True"
                                TargetFolder="~/TempUploadImages" Width="325px" ControlObjectsVisibility="None" Height="36px">
                                </telerik:RadUpload>
                             <asp:Button ID="btn_Upload" runat="server" OnClick="btn_Upload_Click" Text="Upload" />
    
        </td>

code behind

   try
        {
            if (RadUpload1.UploadedFiles.Count > 0)
            {
                repeaterResults.DataSource = RadUpload1.UploadedFiles;
                repeaterResults.DataBind();
                labelNoResults.Visible = false;
                repeaterResults.Visible = true;
                LoadImageUrl();

            }
            else
            {
                labelNoResults.Visible = true;
                repeaterResults.Visible = false;
            }
        }
        catch (Exception ex)
        {
            //throw new Exception(ex.InnerException);

        }



Yana
Telerik team
 answered on 30 Apr 2010
1 answer
82 views

We need to expand the items for one level as default  by page load .

We have the following code snippet in order to expand the first item when page loads in C#:
protected void RadPanelBar1_DataBound(object sender, EventArgs e)
{
    RadPanelBar1.Items[0].Expanded = true;
}

Please can you give equivalent javascript code for this source.

Thanks

Shinu
Top achievements
Rank 2
 answered on 30 Apr 2010
2 answers
129 views
Hi All!

today i've tried the RadUpload control with the following code and do nothing after postback:
aspx:
<form id="form1" runat="server"> 
    <div> 
        <asp:ScriptManager runat="server" ID="scrManager" /> 
        <telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.gif" 
            EnableEmbeddedSkins="False" MaxFileSize="1000000" TargetFolder="~/MyFiles"> 
        </telerik:RadUpload> 
        <br /> 
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> 
        <br /> 
    </div> 
    </form> 
public partial class Tests_FileUpload : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
        if (RadUpload1.UploadedFiles.Count > 0) 
        { 
            foreach (UploadedFile f in RadUpload1.UploadedFiles) 
            { 
                string s = f.FileName; 
            } 
        } 
    } 
} 

- the UploadedFiles collection empty and i've selected the proper file, size and image format (jpg image)
- no masterpage, no additional code, web.config configured for RadUpload

thx,
alsi
Genady Sergeev
Telerik team
 answered on 30 Apr 2010
1 answer
107 views
Hi All,

Have a grid with records, which works fine.

For the Filter there is an image. I need a box around the image.

So I tried it by creating an custom skin, even it works fine.

For the box, I used an style in the css. But it is not working.

.RadGrid_AntoNewBlue .rgFilterBox 
{ 
    border:1px solid #abc1de; 
    padding:2px 1px 3px; 
    font:12px "segoe ui",arial,sans-serif; 
    color:#000; 
    vertical-align:middle; 
} 

Have sent the screen shot.

Please could anybody help me to solve this.

-Anto





Dimo
Telerik team
 answered on 30 Apr 2010
1 answer
141 views
You panelbar skins have a class "rpOut" which is not described in the help file http://www.telerik.com/help/aspnet-ajax/panel_appearancecssselectors.html

this help file also describes a class "rpItem" which doesn't appear in the skin. I am looking at the default skin, but I assume the same issue exists in the others.

What is rpOut and rpItem?
Yana
Telerik team
 answered on 30 Apr 2010
1 answer
118 views
Hello All ,
After removing a column by unckecking the column for the header context menu , if i made any client filter the then again the columns pops up ?? how just to maintain the client state ? .

if i could catch the event triggered by the CheckBox Checking / Unchecking  will it help me out ? can you say me whats the event handler for Checking/Unckecking the column selection Checkbox ??

thanks in advance

-Prince

Yavor
Telerik team
 answered on 30 Apr 2010
2 answers
639 views
I am using a split in a screen, left side radTreeview and right side corresponding details going to show for all nodes in that treeviewNodes.

First i expand the tree for few levels and the click a node, the information could display at right via postBack.

Right side information is ok but Left side tree was collapsed after postback because i am rebinding the information for treeview due the dynamic controls is in treeviewNodes, like labels & link buttons. Thats why i am rebinding the treeview.

I want to retain the treeview position (same as before postback) after postback.

Kindly, give a remedy for this issue.

Thanks,
Dineshkumar.C
Dineshkumar C
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
136 views
Hello,

the TreeNode ASP.NET has a property called SelectAction which allows to set the action to be made when the node is clicked.

is there something similar with the RadTreeNode?

thx

Gilles
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?