Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
179 views
Hello,

I'm using the RadHtmlField for a project with MOSS 2007, and the default selected font in edit mode is the default font of the web browser. I need to have this default font set to "verdana", regardless to the browser's default font.
I've searched for online help for hours without finding anything helpful. Does anyone knows how to do it or has any advice ?

Thanks for your help.
Matthieu.
Rumen
Telerik team
 answered on 22 Jan 2013
1 answer
174 views

Hi,
I am getting obj for radtreeview in javascript by using document.getElementById(...) but same thing is not getting by using $find(..).
If i get obj form the documnet class i am not able to get nodes form the tree obj... My code is looks like

<telerik:RadScriptBlock ID="rcb" runat="server">

 <script type="text/javascript">

 debugger;

 

Generate_WhereCondition1();

 

</script>

 -- Generate_WhereCondition1() logic is follows;
var tree = $find("<%= tvfltview.ClientID %>"); // here i am getting null -- type 1

 

 if(tree==null)

tree=document.getElementById("<%= tvfltview.ClientID %>"); // here i am getting obj -- type 2

 

</telerik:RadScriptBlock>

but i can getting error for tree.get_nodes(); from type 2

Boyan Dimitrov
Telerik team
 answered on 22 Jan 2013
1 answer
354 views
I need to count the number of appointments in a cell, is there any way to count.

For ex:
I have 8 appointments in a cell and I am displying only 2 by default and by clicking on more.. link I can see all the appointments.
But the thing is I want to show the remaing number of assignments in a cell.
I have counted all the appointments in a cell and appended to the Localization.ShowMore property but it is applying for total Schedular.
Please help me it is urgernt.




Boyan Dimitrov
Telerik team
 answered on 22 Jan 2013
2 answers
99 views
How can we capture client side when the edit button is clicked? From there we want to set the row as the selected row and perform other actions such as populaulting a detail view.
Darin
Top achievements
Rank 1
 answered on 22 Jan 2013
2 answers
162 views
I have a Gridview that uses a RadComboBox with checkboxes enabled to choose an Approval code or multiple denial codes. 

I have a asp:checkbox in the grid up in the header as well as next to each RadComboBox control as an 'Approve All' function. It should work similar to the checkboxes in Gmail.
You asp:checkbox in the header, which should check each asp:checkbox next to the RadComboBox controls in each row, will also set each RadComboBox to have the Approve item checked for selection.
When you uncheck a asp:checkbox next to the RadComboBox, you only uncheck that RadComboBox, not all controls in all rows.

I was wanting to do this all client side but can't see the get the checkboxes in the RadComboBox to check or uncheck. Also, I don't know if they are checked clientside if they will be picked up serverside when I'm ready to submit the approvals.

The code is something like what follows:
UPDATED THE CODE - When I had typed this out, I was writing it from memory. I have now posted the code as I am using it. The alerts do come up when I check or uncheck the checkbox next to the RadComboBox.

$(checkBoxSelector).live('click', function () {
                var index = $(checkBoxSelector).index(this);
                var gridRow = $('#MainContent_QueueGrid > tbody > tr:eq(' + index + ')');
 
                if ($(this).is(":checked")) {
                    gridRow.find('.rcbCheckBox').each(function () {
                        if ($(this)[0].nextSibling.wholeText === 'Approve') {
                            $(this)[0].attr("checked", true);
                            alert("Checking the box");
                        }
                    });
                }
                else {
                    gridRow.find('.rcbCheckBox').each(function () {
                        if ($(this)[0].nextSibling.wholeText === 'Approve') {
                            $(this)[0].attr("checked", false);
                            alert("UNChecking the box");
                        }
                    });
                }
            });

I have tried every which way to check or uncheck the Approval code inside the RadComboBox and it is not working.
I can see the Approval checkbox element when I get to the if statement but am not able to set the attribute to checked.
I have tried attr('checked', true) along with every other way I can find.

I know that if the asp:checkboxes are selected I could evaluate the grid with those, but my issue is for user experience. If the Approve All is selected, all of the RadComboBoxes should show Approved as the selcted text as well as if they open the RadComboBox, they should we Approved checked and possibly all denial codes disabled.

Is this something that can be done?
With your help, if I am successful in setting it, will the checked status hold when evaluating the grid in code behind?


Any help is greatly appreciated.
Thanks in advance.


Angel Petrov
Telerik team
 answered on 22 Jan 2013
9 answers
269 views
Hello,

I've got a rad menu that has a subnode that is being populated from a webservice call. I need to have the node data be refreshed each time the menu is expanded, but it appears that the call is cached once the data is first loaded. I tried setting the persistloadondemanditems attribute to "false" but this doesn't seem to change the behavior. Is there any way to accomplish this?

Thanks,
Aaron
Tom
Top achievements
Rank 1
 answered on 22 Jan 2013
4 answers
193 views
I also posted this question on this thread: http://www.telerik.com/community/forums/aspnet-ajax/menu/prevent-expandmode-webservice-nodes-from-being-cached.aspx

I have a menu that is loaded on demand but I don't want to have the client cache the values - I want a call made each time to load the values when the menu is expanded.  I followed the example from the above thread and it works great when not using rounded corners.  However, when I turn on rounded corners, the second time the menu expands, the corners/borders are missing. 

It appears this happens any time I clear the collection of menu items.  Here is my js:

function mainMenuItemClosed(sender, eventArgs)   
            {  
                var item = eventArgs.get_item();  
                if (item)  
                {  
                    sender.trackChanges();  
                    item.get_items().clear();  
                    item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.WebService);  
                    item._itemsLoaded = false;  
                    sender.commitChanges();  
                }  
            } 
Tom
Top achievements
Rank 1
 answered on 22 Jan 2013
3 answers
196 views
The RadSpell control works fine when URL is the application server, but when the URL is the ACE load balancer, I get a javascript error "object expected" from URL http://xxx.com/xxx/ScriptResource.axd?xxxx.  Fiddler shows 504 receive failure on /xxx/ScriptResource.axd?xxx

This project is referencing the Telerik.Web.UI.dll 2012.2.731.35

Greg
Top achievements
Rank 1
 answered on 22 Jan 2013
0 answers
97 views
My issue is simple, the editform in RadScheduler is showing behind to other appointments, but this bug only happen in IE 8.0.7601.17514. I try to change the css, but I dont have clue to change this behavior. Please help me!! I can't change the version of IE because is the standard in all machines.

<InlineEditTemplate>
                <div class="rsCustomAppointmentContainer">
                    <span class="rsCustomAppointmentContainerInner">
                        <div style="float: left">
                            <asp:Label ID="Label4" runat="server" Text="Option:" CssClass="inline-label"></asp:Label>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Subject") %>'></asp:Label>
                            <asp:LinkButton ID="LinkButtonOpt" runat="server" CommandName="Link" Text='more info ...'></asp:LinkButton>
                            <%--<asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' TextMode="SingleLine"
                            ReadOnly="true"></asp:TextBox>--%>
                        </div>
                        <div style="float: left">
                            <asp:Label ID="Label2" runat="server" CssClass="inline-label">Initial Date:</asp:Label>
                            <telerik:RadDatePicker runat="server" ID="InitialDateRadDatePicker" SelectedDate='<%# Bind("Start") %>'
                                MinDate="1900-01-01" OnSelectedDateChanged="Initial_SelectedDateChanged">
                                <DatePopupButton Visible="True" />
                                <DateInput ID="DateInput2" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" "
                                    EnableSingleInputRendering="false" />
                            </telerik:RadDatePicker>
                        </div>
                        <div style="float: left">
                            <telerik:RadNumericTextBox ID="job_durationTextBox" runat="server" Type="Number"
                                NumberFormat-DecimalDigits="0" MinValue="1" OnTextChanged="jobDuration_TextChanged"
                                Width="100%" Label="Duration:">
                            </telerik:RadNumericTextBox>
                        </div>
                        <div style="float: left">
                            <asp:Label ID="Label3" runat="server" CssClass="inline-label">Final Date:</asp:Label>
                            <telerik:RadDatePicker runat="server" ID="FinalDateRadDatePicker" SelectedDate='<%# Bind("End") %>'
                                MinDate="1900-01-01" OnSelectedDateChanged="Final_SelectedDateChanged">
                                <DatePopupButton Visible="True" />
                                <DateInput ID="DateInput1" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" "
                                    EnableSingleInputRendering="false" />
                            </telerik:RadDatePicker>
                        </div>
                        <div style="float: left">
                            <span class="inline-label">Stage:</span>
                            <telerik:RadComboBox ID="StageAuxComboBox" runat="server" SelectedValue='<%# Bind("cvp_stage_id") %>'
                                DataSourceID="StageDataSource" DataTextField="cvp_stage_name" DataValueField="cvp_stage_id">
                            </telerik:RadComboBox>
                        </div>
                        <div>
                            <asp:Button ID="InsertButton" runat="server" CommandName="Update" Text="Update">
                            </asp:Button>
                            <asp:Button ID="InsertCancelButton" runat="server" CommandName="Cancel" Text="Cancel">
                            </asp:Button>
                        </div>
                    </span>
                </div>
            </InlineEditTemplate>

My css.

.noresults
{
    opacity: 0.4;
    filter:alpha(opacity=40); /* For IE8 and earlier */
}
     
.RadScheduler .rsCustomAppointmentContainerInner
{  
    display: block;
    padding: 2px 0 0 2px;
    z-index: 1000 !important;
}
.RadScheduler .rsCustomAppointmentContainerInner *
{
    position: relative;   
    z-index: 100 !important;
}
.rsCustomAppointmentContainer
{
    width: 100% !important;
    height: 100% !important;
     
}
 
.RadScheduler .rsAptEditSizingWrapper
{
    left:0px !important;
    top:0px !important;
     
}
 
.rsApt
{
    z-index: -1;
}
Carlos
Top achievements
Rank 1
 asked on 22 Jan 2013
3 answers
154 views
I am exporting my grid and it works fine, but there are a couple fileds i do not show on the grid as they are note fields and have a lot of characters and the viewstate would get massive, so I show them in a popup service on the grid.  however when they export the grid they want the notes to go with the export, how can I change the export to include the notes field when I do not pull into the original grid because it would be massive.

Is there a way to pull a seperate sql query for an alternate view just for export only that pulls the notes field then does rebinds real view.
Daniel
Telerik team
 answered on 22 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?