Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
426 views
Does ShowStatusBar=true only work if grid paging is enabled?  I have grid scrolling enabled but not grid paging, and the status bar does not display.
Maria Ilieva
Telerik team
 answered on 01 Nov 2013
1 answer
131 views
hai
i read the following ariticle https://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/checkboxes/defaultcs.aspx
in the we use tristateheckboxes,if inner node partial checked it show partial checked color in check box,if select all check box then wee see tick mark in tristatecheckbox.
but my need is use not allow to check and uncheck the tristatecheckbox,bcz now if check tristatecheckbox ,its child node all checked,if uncheck tristatecheck ,its child node all are unchecked.

Why i am ask this ,i have  restriction for check child node upto 3 by using javascript.means i have to count no, of nodes checked from db and apply in hidden field,and from OnClientNodeChecked i will increase or decrease node selected count and apply in same hidden field.if hidden field count more than 3 it show msg and remove lastly selected node like that.

now what i get problem if user click tristatecheckbox ,its child nodes all are checked ,so i cant count the  nodes and apply in hidden filed. 
below code i use in client side

        function onClientNodeClickedHandler(sender, eventArgs) {
            var tree = $find("<%= RadTreeView1.ClientID %>");
            var childNodes = eventArgs.get_node().get_text();
            var chnode = tree.findNodeByText(childNodes);
            var node = eventArgs.get_node();
            var nodetext = eventArgs._node.get_text();
            if (nodetext == "Software" || nodetext == "Books" || nodetext == "Music" || nodetext == "Movies"
) {
                // node.toggle()-- nothing affect its child node check boxes like select all or unselect all

              }
            else {
             
                if (node.get_checked() == true) {
            
                    var hdFldLang = document.getElementById("ctl00_ContentPlaceHolder1_hdLangCount").value;
                    if (hdFldLang < 3) {

                        if (hdFldLang == "") {
                            hdFldLang = 1;
                        }
                        else {
                            var Add = parseInt(hdFldLang);
                            hdFldLang = Add + 1;
                        }

                        document.getElementById("ctl00_ContentPlaceHolder1_hdLangCount").value = hdFldLang;

                                        }
                    else {

                     
                            alert("Maximum of 20 language is allowed")
                        }

                        chnode.uncheck()

                    }
                }
                else {
                        var hdFldLang1 = document.getElementById("ctl00_ContentPlaceHolder1_hdLangCount").value;
                        var sub = parseInt(hdFldLang1)
                        hdFldLang1 = sub - 1;
                        document.getElementById("ctl00_ContentPlaceHolder1_hdLangCount").value = hdFldLang1;
                    
                }
            }
        

Note: user not allow to tounch tristatecheckbox ,only to show paritially or fully selected mark, and also i need that tristatecheckbox

Regards
  Aravinb
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2013
1 answer
194 views
Hi there,

I have created a onclick event for the checkbox's label (since it does not toggle when you click on it), The Javascript is working and is successfully toggling the checkbox when the label clicked, but when I do a postback to save the values it saves the checkboxes as if I have not touched them. If toggle the checkboxes byclicking on the boxes themselves it works but not when not when I toggle then with JS (even if visually they have toggled). 

Anyone know why?

Thanks
Jason
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
10 answers
180 views
I have found your examples on how to create a custom emoticons dropdown, but these examples use inline tool declarations. Currently I use a toolsfile.xml so I can have several configuration of my editor, so I need to find a way to do the same thing using a toolsfile. Is this possible?
Ianko
Telerik team
 answered on 01 Nov 2013
1 answer
51 views
hi.
how to keep the insert form always to be open.? 
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
3 answers
268 views
Hi,

I have a custom command item template similar to the top grid shown in http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx. What I am trying to do is, on the grid's 

RowSelected() event update some of my controls (set enabled, or visibility) to accuratly show what the user is allowed to do with that particular row. For example - they may or may not be able to delete, or edit on a per-row basis. I am having trouble obtaining references to the controls in the template. If any javascript tries to reference a control inside the template, the entire grid dosn't render. I suspect this is due to the naming containers, the compiler can't find a reference to anything when declared such as (sample):

    function RowSelected(sender, eventArgs)  
    {         
        //Enable the update tab  
        var tabStrip= $find("<%= RadTabStrip1.ClientID %>");  
        var tab = tabStrip.findTabByText("Update");  
        tab.set_enabled(true);  
    } 

Because this template is not a typical row template, the other examples I have found regarding accessing controls inside templates do not seem to apply. How would one be able to get a reference to the client ids to use in javascript?

 

Thanks,

 

Kent

 

Daniel
Telerik team
 answered on 01 Nov 2013
2 answers
173 views
Hi

I am using telerik:GridEditCommandColumn to update records with telerik:RadAjaxManager but in this case UpdateCommand event does not get fired. When I remove telerik:RadAjaxManager, It is working properly.

aspx page
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowAutomaticUpdates="true"
                BorderColor="#CCCCCC" OnNeedDataSource="RadGrid1_OnNeedDataSource" EnableAJAX="True"
                OnUpdateCommand="RadGrid1_UpdateCommand" OnItemDataBound="RadGrid1_OnItemDataBound"
                Skin="CustomSkin" EnableEmbeddedSkins="False">
                <HeaderStyle BorderColor="#CCCCCC" />
                <MasterTableView AllowPaging="True" DataKeyNames="UserId">
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                            <HeaderStyle Width="20px" />
                            <ItemStyle CssClass="editButton" />
                        </telerik:GridEditCommandColumn>
                                            <telerik:GridTemplateColumn HeaderText="Name">
                            <ItemTemplate>
                                <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="txtName" runat="server" MaxLength="50" CssClass="NormalTextBox"
                                    Width="150px" Text='<%#Eval("Name") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Email">
                            <ItemTemplate>
                                <asp:Label ID="lblEmail" runat="server" Text='<%#Eval("Email") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="txtEmail" runat="server" MaxLength="100" CssClass="NormalTextBox"
                                    Width="150px" Text='<%#Eval("Email") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Phone">
                            <ItemTemplate>
                                <asp:Label ID="lblPhone" runat="server" Text='<%#Eval("Phone") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <Portal:Telephone ID="uclPhone" runat="server" Width="150px" Telephone='<%#Eval("Phone") %>'>
                                </Portal:Telephone>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText= Date">
                            <ItemTemplate>
                                <asp:Label ID="lblDate" runat="server" Text='<%#Eval("Date") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadDatePicker ID="radDate" runat="server" Width="150px" SelectedDate='<%#Eval("Date") %>'
                                    Culture="English (United States)">
                                    <DateInput DateFormat="MM/dd/yyyy">
                                    </DateInput>
                                    <Calendar ShowRowHeaders="False" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                                        ViewSelectorText="x">
                                    </Calendar>
                                </telerik:RadDatePicker>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

I don't want to remove telerik:RadAjaxManager. What could I do So that OnUpdateCommand event is able to get fired with telerik:RadAjaxManager?

Can anyone help me please..?

Thanks
Kamini
Princy
Top achievements
Rank 2
 answered on 01 Nov 2013
1 answer
148 views
We use radwindow to display reports online, but when the minimize is clicked the window does reduce down to the title bar as expected, but where the radwindow consumed a portion of the screen this is then white and what is underneath is not shown. But when I drag the title bar the white space is removed and the rest of the page is then visible. Please note that before the drag operation after the minimize has occurred none of the clickable page elements (e.g. buttons or anchor points) work until the operation has been done.

Any ideas?
Vessy
Telerik team
 answered on 01 Nov 2013
12 answers
248 views
i'm creating a checboxlist on edit radgrid but i cant find the checkboxlist it self. i cant understand where im missing it.

'm getting the data on need datasource event and then switch it to checklistbox

[deleted]
Antonio Stoilkov
Telerik team
 answered on 01 Nov 2013
6 answers
265 views
This grid (which should use Windows7 skin) isn't displaying correctly after upgrading to the latest RadAjax tools.  I've attached what it looks like now (gridnosking.png) and what it used to look like (gridskin.png)
<telerik:RadGrid ID="grdAliases" runat="server" DataSourceID="daAliases" AutoGenerateColumns="False" CellSpacing="0" AutoGenerateEditColumn="True"
    AutoGenerateDeleteColumn="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" Skin="Windows7" GridLines="None">
    <MasterTableView DataKeyNames="Id" DataSourceID="daAliases" CommandItemDisplay="Top" NoDetailRecordsText="No aliases for this offender." NoMasterRecordsText="No aliases for this offender.">
        <EditFormSettings>
            <EditColumn ButtonType="PushButton"></EditColumn>
        </EditFormSettings>
        <CommandItemSettings AddNewRecordText="Add Alias" ExportToPdfText="Export to PDF" ShowRefreshButton="False"></CommandItemSettings>
        <Columns>
            <telerik:GridBoundColumn DataField="Id" ReadOnly="True" HeaderText="Id" SortExpression="Id" UniqueName="Id" DataType="System.Int32" Display="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OffenderId" HeaderText="OffenderId" ReadOnly="true" SortExpression="OffenderId" UniqueName="OffenderId" DataType="System.Int32" Display="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Name" HeaderText="Name (Last, First, Middle)" SortExpression="Name" UniqueName="Name">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn DataField="Ssn" HeaderText="SSN" UniqueName="colSsn" >
                <ItemTemplate>
                    <asp:Label ID="lblSsn" runat="server" Text='<%# SorBll.Util.FormatSsn(Eval("Ssn")) %>'></asp:Label>
                </ItemTemplate>
                <InsertItemTemplate>
                    <telerik:RadMaskedTextBox ID="txtSsn" runat="server" Mask="###-##-####" Text='<%# Bind("Ssn") %>'></telerik:RadMaskedTextBox>
                </InsertItemTemplate>
                <EditItemTemplate>
                    <telerik:RadMaskedTextBox ID="txtSsn" runat="server" Mask="###-##-####" Text='<%# Bind("Ssn") %>'></telerik:RadMaskedTextBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn DataField="Dob" HeaderText="DOB" UniqueName="colDob" >
                <ItemTemplate>
                    <asp:Label ID="lblDob" runat="server" Text='<%# SorBll.Util.FormatNullableDate(Eval("Dob")) %>'></asp:Label>
                </ItemTemplate>
                <InsertItemTemplate>
                    <telerik:RadDatePicker ID="txtDob" runat="server" MinDate="1/1/1900" DbSelectedDate='<%# Bind("Dob") %>'></telerik:RadDatePicker>
                </InsertItemTemplate>
                <EditItemTemplate>
                    <telerik:RadDatePicker ID="txtDob" runat="server" MinDate="1/1/1900" DbSelectedDate='<%# Bind("Dob") %>'></telerik:RadDatePicker>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="Timestamp" HeaderText="Timestamp" ReadOnly="true" SortExpression="Timestamp" UniqueName="Timestamp" DataType="System.DateTime" Display="False">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Any ideas?

Thanks!

Kevin

Update: I have some other grids within a set of RadTabs which are displaying fine until I try to add a new record.  Then the skin format goes away.
Maria Ilieva
Telerik team
 answered on 01 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?