Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
168 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
34 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
94 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
80 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
107 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
898 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
355 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
97 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
17 answers
1.1K+ views
Hello

I'm having problem passing parameters to user control used in edit mode of radgrid

I Have a RadGrid with some users data. I use a custom user control for FormTemplate.

The user control has it's own logic implemented to edit user data and takes one parameter "id_user". (It has public String id_user with get and set method defined  in codebehind)

I tried to pass this parameter to UserControl as seen in code below, but it doesnt work. when i pass this parameter to label it shows. User control also works fine if I pass static parameter (example:   id_user="2" ).

What is the right way to pass parameters to UC?

<EditFormSettings EditFormType="Template"
   <FormTemplate> 
       <asp:Label ID="Label4" runat="server" Text='<%# Bind("id") %>'></asp:Label> 
       <uc1:edit_user ID="edit_user1" runat="server" id_user='<%# Bind("id") %>' />    
   </FormTemplate> 
   <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" 
               uniquename="EditCommandColumn"
    </EditColumn> 
</EditFormSettings>

I'm would also like to know how to pass parameters when attachig UserControls like this:
 <EditFormSettings EditFormType="WebUserControl" UserControlName="edit_user.ascx"

Thank you







Eyup
Telerik team
 answered on 17 Jun 2015
6 answers
1.1K+ views
If i use RadGrid in this way (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx), and if inside that FormTemplateEditForm i have another RadGrid, how can i "find" it? If I use (RadGrid)this.Master.FindControl("RadGrid2") i get a null value.

How cand i acces some controls in TemplateEditForm? How can i "find" them?
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?