Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
210 views
I am trying to adapt this demo to customize the pager in a telerik:GridTableView
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/customizingpager/defaultcs.aspx

I cannot figure out how to access the GridPagerItem in my GridTableView

Thanks,
JIm

Gaurav
Top achievements
Rank 1
 answered on 18 Feb 2015
8 answers
832 views
I have my own method and I am trying to findcontrol on a control inside the GridTemplateColumn, so I am doing it outside of the events for the radGrid. Is this possible and if so, how?

Thanks!
Rajnish
Top achievements
Rank 1
 answered on 18 Feb 2015
12 answers
296 views
Hi!

What we need is to get outlook appointment from a number of different users and show them
on a webpage. Here the RADscheduler could be our answer!!! I have just made some test, and it is very simple to
show ONE specific outlook users appointment in the RADscheduler. (see the code below)

But how do you show more than one exchange users appointment in different groups on a webpage using the RADscheduler control?
For example show the user JATOV, HAGER and WEKJK.

Do you have a good code example of that? and is it even possible...

 

<telerik:RadScheduler ID="RadScheduler1" runat="server" Height="800px">

</telerik:RadScheduler>

 

RadScheduler1.Provider =

 

New ExchangeSchedulerProvider(https://XXXXXX/EWS/Exchange.asmx, "XXXX", "XXXXX", "DOMAIN")

 

 

 



Ismael
Top achievements
Rank 1
 answered on 17 Feb 2015
3 answers
117 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
256 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
341 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
107 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
83 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
62 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
345 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
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?