Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
157 views
I have created an ASP.NET Web Application project in Visual Studio 2010 based on the telerik demo at http://demos.telerik.com/aspnet-ajax/captcha/examples/localization/defaultcs.aspx
The error can be easily reproduced.  I run the app locally and VS launches IE with a localhost web page.  Don't enter any code in this page at this moment.  Open another web page similar to the previous one. Now go back to the original page and enter the captcha code.  The code will be invalid.
Please, any idea why this happens?
Slav
Telerik team
 answered on 17 Feb 2015
4 answers
318 views
In my page I have a radgrid and a radwindowmanager with a couple of radwindows.
The radwindows have a ContentTemplate with a usercontrol in it.
In that usercontrol I have a form and some validators and validationsummary.
The WindowManager and the RadGrid are defined in my ajaxmanager, in both directions.

The window opens by clicking a commandrowbutton of the grid.

The issue I'm having is that my validators are firing multiple times.

    - Motivation is empty
    - Motivation is empty
    - Motivation is empty

Exactly as many times as I have rebound the grid on the page in fact. (times rebound since being on the page or since a successful submit of the window)
So somehow, the radgrid rebinding causes the validators to be registered again or something like that.

Should I define my window differently? Open the window differently? Is there a way to reset those validators or that window so it doesn't happen?
Marin Bratanov
Telerik team
 answered on 17 Feb 2015
9 answers
411 views
I am trying to get a RadComboBox to dynamically load the content when a user attempts to open the combo box.

The ComboBox is displayed in a RadGrid under the ItemTemplate (yes, not EditItemTemplate).

The problem is I get an error that says "The target {obj} for the callback could not be found or did not implement the ICallbackEventHandler.

What am I missing?   Here is my aspx:

<telerik:GridTemplateColumn HeaderText="Employee Type" DataType="System.String" >
    <ItemTemplate>
        <telerik:RadComboBox ID="uxEmployeeType" runat="server" Width="50px"
            DataTextField="Name" DataValueField="ID" EnableAutomaticLoadOnDemand="true"
            OnItemsRequested="uxEmployeeType_ItemsRequested" >
        </telerik:RadComboBox>
    </ItemTemplate>
</telerik:GridTemplateColumn>


And here is my code.  

protected void uxEmployeeType_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
    RadComboBox uxEmployeeType = (RadComboBox)sender;
    uxEmployeeType.DataSource = _empTypes.EmployeeTypesMembers;
    uxEmployeeType.DataBind();
}
Konstantin Dikov
Telerik team
 answered on 17 Feb 2015
1 answer
167 views
hi
can I,use  DropDownTree. with write on it for select Such as autoCompletebox?

in other words. I need DropDownTree with search  when I write on it .

thanks
Aneliya Petkova
Telerik team
 answered on 17 Feb 2015
2 answers
128 views
I'm having an issue with a RadGrid not displaying right-click context menus in IE. Specifically, when choosing the auto-generated "Add New Item" button, the editor area (which opens in an iframe within the grid) does not allow me to right-click to open a Cut/Copy/Paste/etc context menu. This issue only occurs for me under IE, right-clicking generates a context menu in both Chrome and Firefox. I'm also not using any custom context menus and there is nothing in the code behind that should be affecting this. I'm wondering if there is a known solution to this or if the problem is could be caused by certain settings on the RadGrid or MasterTable?

Angel Petrov
Telerik team
 answered on 17 Feb 2015
1 answer
101 views
Hello, I am using 2014.1.403.40, I have a RadEditor inside a RadWindow. I launch the RadWindow from code using the following:

string script = "function f() {$find(\"" + wPopup.ClientID + "\").show(); setTimeout(function(){$find(\"" + edContent.ClientID + "\").onParentNodeChanged();}, 10); Sys.Application.remove_load(f); EditorWindowVisible = true;} Sys.Application.add_load(f);";
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);

When I click/open any of the editor toolbar dropdown controls they will not close unless I click/open another editor toolbar dropdown control. This only happens in Chrome and it doesn't happen the first time I load the site? I don't think it matters but the site is a Sitefinity site. Otherwise the editor looks and is working correctly. I notice if I remove the editor from the RadWindow this problem does not happen and it does not happen in IE 11.
Ianko
Telerik team
 answered on 17 Feb 2015
3 answers
422 views
Hi,

I am attempting to update the checkbox of a GridTemplateColumn via a button on the grid's command bar.
This button should check all rows within the grid, but at the minute my script is updating all rows other than the first one.
It seems as though I must be missing something very simple but I can't seem to spot it!

It's worth noting that the checkbox in the ItemTemplate does get checked for the first row, however it doesn't appear to change the batch editor state, i.e. all rows are checked, but the first row does not have the red indicator to show that the value has changed, therefore a command object is never passed to my OnBatchEditCommand server side function for this row.

I would appreciate any help on this.

Regards,
Mike.

Column definition: -
<telerik:GridTemplateColumn UniqueName="HasAccess" HeaderText="Access" DataField="HasAccess" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="125px"
                                            GroupByExpression="Group By HasAccess">
                    <ItemTemplate>
                        <asp:CheckBox ID="HasAccessCheckBox" runat="server" Checked='<%#Eval("HasAccess") %>' onclick="changeEditor(this);" />
                        <telerik:RadScriptBlock runat="server">
                            <script type="text/javascript">
                                function changeEditor(sender, args) {
                                    var grid = $find("<%=Grid.ClientID%>");
                                    var batchManager = grid.get_batchEditingManager();
                                    batchManager.openCellForEdit(sender.parentElement.parentElement);
                                    sender.checked = !sender.checked;
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:CheckBox ID="HasAccessCheckBox" runat="server" />
                    </EditItemTemplate>
                    <FilterTemplate>
                        <telerik:RadComboBox ID="HasAccessFilter" runat="server" OnClientSelectedIndexChanged="HasAccessFilter_SelectedIndexChanged"
                                             SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("HasAccess").CurrentFilterValue %>' Width="110px">
                            <Items>
                                <telerik:RadComboBoxItem Text="All" />
                                <telerik:RadComboBoxItem Text="Has Access" Value="True" />
                                <telerik:RadComboBoxItem Text="No Access" Value="False" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock runat="server">
                            <script type="text/javascript">
                                
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>
                </telerik:GridTemplateColumn>

Command Bar: -
<CommandItemTemplate>
                <telerik:RadToolBar ID="commandToolbar" runat="server" Width="100%" OnClientButtonClicking="commandToolbar_ButtonClicking">
                    <Items>
                        <telerik:RadToolBarButton Text="Save changes" ImageUrl="/Images/save_16.png" Value="SaveChanges" />
                        <telerik:RadToolBarButton Text="Cancel changes" ImageUrl="/Images/Cancel.gif" Value="Rebind" />
                        <telerik:RadToolBarButton Text="Set Access"  ImageUrl="/Images/Update.gif" Value="SetAllAccess" />
                        <telerik:RadToolBarButton Text="Revoke Access" ImageUrl="/Images/Delete.gif" Value="RevokeAllAccess" />
                    </Items>
                </telerik:RadToolBar>
            </CommandItemTemplate>

Scripts: -
<telerik:RadScriptBlock runat="server">
        <script type="text/javascript">
            function commandToolbar_ButtonClicking(sender, args) {
                var value = args.get_item().get_value();
                if (value == "SetAllAccess") {
                    args.set_cancel(true);
                    radconfirm("This action will give access to all of the visible pages for the selected Employees.<br /><br />Would you like to continue?", setAccessCallback, 330, 160, null, "Confirm Access");
                }
                else if (value == "RevokeAllAccess") {
                    args.set_cancel(true);
                    radconfirm("This action will remove access to all of the visible pages for the selected Employees.<br /><br />Would you like to continue?", revokeAccessCallback, 330, 160, null, "Confirm Revoke Access");
                }
                else if (value == "SaveChanges") {
                    var grid = $find("<%=Grid.ClientID%>");
                    grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());
                }
                else if (value == "Rebind"){
                    var grid = $find("<%=Grid.ClientID%>");
                    grid.get_masterTableView().rebind();
                }
            }
 
            function setAccessCallback(arg) {
                if (arg) {
                    checkAll(true);
                }
            }
 
            function revokeAccessCallback(arg) {
                if (arg) {
                    checkAll(false);
                }
            }
 
            function checkAll(isChecked) {
                var grid = $get("<%= Grid.ClientID %>");
                var inputList = grid.getElementsByTagName("input");
 
                var batchManager = $find("<%=Grid.ClientID%>").get_batchEditingManager();
 
                for (var i = 0; i < inputList.length; i++) {
                    if (inputList[i].type == "checkbox") {
                        batchManager.openCellForEdit(inputList[i].parentElement.parentElement);
                        inputList[i].checked = isChecked;
                    }
                }
            }
        </script>
    </telerik:RadScriptBlock>

Mike
Top achievements
Rank 2
 answered on 17 Feb 2015
2 answers
159 views
I have got the Telerik CDN setup as listed in the URL below:
http://www.telerik.com/help/aspnet-ajax/cdn-custom-provider.html

However, it causes scripts to load twice. One file - jQuery.Easing is loaded as part of jQuery.plugins.js and ScriptResource.axd. There are other files that load twice similarly. 

The settings I have made are exactly as provided in the URL above. Please let me know if I have missed something and how to resolve this issue.

We are using telerik version 2011.
Dimitar Terziev
Telerik team
 answered on 17 Feb 2015
1 answer
132 views

I am getting small arrows in  the radtreeview . Every Node has a small arrow like ">" before it  . I am not sure its a bug in the control or whether its a setting . Please help to get rid of this arrow.

+ > Mainnode .

     > Subnode one .

     > Subnode two.

I have tried to recreate the  issue.

Bala
Top achievements
Rank 1
 answered on 17 Feb 2015
6 answers
206 views
Hi

How to Implemented Filter and Sorting Radgrid using Datatable in C# Code for example my field this

ex:Name,Empno,Amout,Dob Fields

any one guide me how will do this?

Thanks
for supports to all
Pavlina
Telerik team
 answered on 16 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?