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

Hi,

I've tried everything I can think of to right align the hours cell in this grid.  I've used CssClass="RightAlignCell" and HorizontalAlign="Right".  I've even tried to align it in the code-behind.  One guy in a forum even suggested reducing the width of the cell.  It had no effect.  Nothing works.

I am attaching an example of the grid, and the html in the hopes that someone can see something I'm missing. In the html example, I'm using a CssClass of NumberAlign.  However, I've tried RightAlignCell as well.

Thanks,
Paul

paul.burnham@calrecycle.ca.gov 

 

Eyup
Telerik team
 answered on 17 Jun 2015
5 answers
133 views
I am transitioning from an older editor to the Telerik editor.  I saw that you can modify the FileExplorer dialog by editing the usercontrol itself, but my purpose for switching editors was to be able to control how the Editor looked without having to edit multiple files and having all the properties in one place.  It would be nice if there were properties to hide the delete button, new folder button, the left side file explorer, etc.

Can this be done?

Thank you.
Ianko
Telerik team
 answered on 17 Jun 2015
3 answers
214 views

Hi all, please help with implementing below logic.

<asp:Button id="btn1" /> 
<asp:Panel id="pnlMain">
     <asp:Button id="btn2" />
     <asp:Panel id="pnlInner"> </asp:Panel>
​</asp:Panel>

 

Ajaxified by:

RadAjaxMagager.AjaxSettings.AddAjaxSetting(btn1, pnlMain);
RadAjaxMagager.AjaxSettings.AddAjaxSetting(btn2,pnlInner);

Issue is: Then I clicking btn2, pnlMain updates too. I do not want to pnlMain to be updated on click btn2.
Is it possible? Why does it updates?



Eyup
Telerik team
 answered on 17 Jun 2015
1 answer
44 views
Please take a look at my website: www.voteclip.com 

The grid where the film clips are displayed is a telerik radgrid.. 

If you take notice of the "title" column 
I have been trying to make that more like your demo: 

http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx

where you the row has the title column and you have to click an arrow to drop down 
all the other columns (votes, watch, download share etc...) 

Please please help I've tried literally everything. 
Konstantin Dikov
Telerik team
 answered on 17 Jun 2015
1 answer
121 views
We have a column in a Grid whose text is 'a&b' at html but on browser it is displaying as 'a'. When I edit that text to 'a & b' with single space before and after & then it is displaying correctly i.e 'a & b'. This is our client requirement to display the text on header as 'a&b'. Is there any possibility to allow that text to display in a grid header?
Kostadin
Telerik team
 answered on 17 Jun 2015
1 answer
106 views

Hi,

Is there anyway Refresh TreeView from Client Side without RadAjaxManager?

Because my RadAjaxManager not working properly all the times(some times it works and some times it doesn't)

function RefreshTree(
var myajaxManager = $find("<%= RadAjaxManager.ClientID %>")
myajaxManager.ajaxRequest("client");
}
 

getting error "Cannot read property 'ajaxRequest' of null"

 

Aneliya Petkova
Telerik team
 answered on 17 Jun 2015
1 answer
138 views

We are having a hard time figuring out a solution to a long running issue.  We are using a RadListBox to display a list of items such as names on a page.  There are 2 lists where 1 is the selector list and the second is the "selected" list.  When the selector list gets to contain somewhere in the range of 2,500+ names, the transfer runs unacceptably slow.  We've tried to disable viewstate, but that breaks our code since we need to handle the transfer on the server side via an AJAX call.  When we debug the code, it takes almost 25 seconds for the server-side CodeBehind method to execute.

 Please advise on what can be done to improve performance for a RadListBox with transfer enabled that contains large lists of data.

 Thank you,

Ed Sudit

Bozhidar
Telerik team
 answered on 17 Jun 2015
7 answers
928 views
I have a page with a RadGrid on it. In that RadGrid I'm using  <EditFormSettings EditFormType="Template"> to handle the editing of the data. In that FormTemplate I have a FileUpload control where I'm allowing users to upload a file. I planned on handling the file upload in a seperate function. Problem is trying to get to the FileUpload control. Can someone help me? Code sample below:
<telerik:RadGrid 
    ID="rgvwUserList" 
    runat="server" 
    AllowAutomaticDeletes="True" 
    AllowAutomaticInserts="True" 
    AllowAutomaticUpdates="True" 
    AllowFilteringByColumn="True" 
    AllowPaging="True" 
    AllowSorting="True" 
    AutoGenerateColumns="False" 
    CellSpacing="0" 
    DataSourceID="sdsUserList" 
    EnableLinqExpressions="False" 
    GridLines="None" 
    PageSize="20" 
    ShowGroupPanel="True" 
    Width="900px">
    <ClientSettings AllowDragToGroup="True"/>
    <MasterTableView 
        AutoGenerateColumns="False" 
        CommandItemDisplay="None" 
        DataKeyNames="StaffID" 
        DataSourceID="sdsUserList"
        EditMode="EditForms" 
        HorizontalAlign="NotSet" 
        Width="100%">
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit" ItemStyle-HorizontalAlign="Center" UniqueName="EditCommandColumn">
                <ItemStyle CssClass="MyImageButton" Wrap="False" />
            </telerik:GridEditCommandColumn>
            <telerik:GridTemplateColumn AllowFiltering="False">
                <HeaderStyle HorizontalAlign="Center"/>
                <HeaderTemplate>Photo</HeaderTemplate>
                <ItemStyle HorizontalAlign="Center"/>
                <ItemTemplate>
                    <asp:Image ID="imgPhoto" runat="server" ImageUrl='<%#EVAL("PhotoPath") %>' Width="50"/>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="DisplayName" FilterControlAltText="Filter DisplayName column" HeaderText="DisplayName" ItemStyle-Width="20%" ReadOnly="True" SortExpression="LastName" UniqueName="DisplayName"/>
        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <div align="center">
                    <asp:FileUpload ID="fuPhotoPath" runat="server" SkinID="FileUpload" Width="290"/>
                    <asp:Button ID="btnAddPhoto" runat="server" CommandArgument='<%#Bind("StaffID")%>' OnCommand="UploadPhoto" SkinID="ButtonLittle" Text="Add"/>
                </div>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Jun 2015
3 answers
415 views
I'm trying to figure out how to get the treeview to allow clean text selection of the text in the nodes and items inside node templates (labels etc). I have searched all over for a solution to this and it seems to be that different versions of RadTreeView allow this while others do not.

For example here, you can highlight the text of the nodes and smaller parts of the text fine:
http://mono.telerik.com/TreeView/Examples/Functionality/SingleExpandPath/DefaultCS.aspx

Yet in this newer example, you can't:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/expandanimation/defaultcs.aspx

You can sometimes select the text if you start clicking far outside the node and drag, but there is no way to select sub parts of the node text.

If anyone has any idea how to get text selection to work properly with TreeView please help!
Dimitar Terziev
Telerik team
 answered on 17 Jun 2015
1 answer
152 views

Hi,

I'm sure this is something silly on my part, but I can't spot it.

The following code works:

var x = 'text';
var y = 'Red';
var selectedColorButtonValue = String(x + y);
var selectedColorButton = toolBar.findItemByValue(selectedColorButtonValue);

Now, since the actual value of y is dynamic and only known at run time, I have this code:

var selectedColorButtonValue = getColorButtonValue(fontColor); // Returns 'Red' for this demo
selectedColorButtonValue = String('text' + selectedColorButtonValue);
var selectedColorButton = toolBar.findItemByValue(selectedColorButtonValue);

The above does NOT work. The toolbarbutton that I'm trying to find is not found!

The toolbarbutton in question is one of several items in a RadToolBarSplitButton.

I have written to the console, and the value of selectedColorButtonValue appears fine.

Can anyone spot what I'm doing wrong.

Thanks

Jim

 

Hristo Valyavicharski
Telerik team
 answered on 17 Jun 2015
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?