Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views

I found the following code in an existing thread (http://www.telerik.com/community/forums/aspnet/editor/set-default-image-properties-when-inserting.aspx). The editor.fire executes fine, but the callback never runs. Any suggestions?

 

Telerik.Web.UI.Editor.CommandList["ImageDialog"] = function (commandName, editor, args) {
        function callBackFn(result) {
            if (result) {
               var imgTag = "<img src=" + result.imagePath + " hspace='10' vspace='5' align='right' />";
               editor.PasteHtml(imgTag);
            }
        }
        editor.fire('ImageManager' , callBackFn);
};
Dan
Top achievements
Rank 1
 answered on 06 Jun 2011
2 answers
51 views
Within the past day and a half, the radtabstrips in my project look wonky in IE8 (including compatibility mode). Here is what they look like in: Firefox and Internet Explorer 8. Until yesterday, they looked in IE like they do in Firefox, but as of last night/today they look 1px off - just wonky. I have not changed my code and in analyzing the CSS that's going on behind the scenes, the only CSS not from the Telerik code is a blanket * {margin:0; padding:0} applied to everything. This CSS entry has been in the project the whole time. I'm not doing anything particularly amazing with the control; here's the html:
<telerik:RadTabStrip runat="server" ID="rtsStatus" Width="100%" ShowBaseLine="true" AutoPostBack="true"></telerik:RadTabStrip>
and here's the code behind:
rtsStatus.DataSource = CachedDataTables.CandidateStatus
rtsStatus.DataTextField = "Title"
rtsStatus.DataValueField = "CandidateStatusID"
rtsStatus.DataBind()

This is just one sample - I use the tab control all over, sometimes with a databind, sometimes without. All of them look the same way.
Ed
Top achievements
Rank 1
 answered on 06 Jun 2011
3 answers
226 views
I have a radgrid that looks like:

<
telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="MultiEmployeeList" AutoGenerateColumns="False"
    CellSpacing="0" GridLines="None" GroupingEnabled="False" AllowMultiRowEdit="false"
    AutoGenerateEditColumn="True"  HorizontalAlign="Left"Width="800px">
    <ClientSettings>
        <ClientEvents OnCommand="OnCommand" />
    </ClientSettings>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
    <MasterTableView DataSourceID="MultiEmployeeList" DataKeyNames="rasID" ClientDataKeyNames="rasID"
        EditMode="InPlace">
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="empName" FilterControlAltText="Filter column column"
                UniqueName="Name" ReadOnly="true">
            </telerik:GridBoundColumn>
            <telerik:GridDropDownColumn DataField="rasRoleID" DataSourceID="RoleList" FilterControlAltText="Filter column column"
                ListTextField="mrrRoleDesc" ListValueField="mrrID" UniqueName="rasRoleID" EmptyListItemText=" -- Select Role --"
                EnableEmptyListItem="True"  >
            </telerik:GridDropDownColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

I do an AJAX-type webservice post during update, and it all works fine.
My question is, how can I find the value of the combo box the user has selected during update so I can post this back using a web service?
I can get the key value of the row, but finding the new selected value (rasRoleID) is eluding me.

Thanks.
Bryan Kowalchuk
Top achievements
Rank 1
 answered on 06 Jun 2011
1 answer
46 views
I'm using a ListView which displays multiple items, I can drag'n drop each item onto a Treeview.
I'd like to drag'n drop several items at once, do you have an idea to do that?
Gimmik
Top achievements
Rank 1
 answered on 06 Jun 2011
1 answer
84 views
Hi!

From server side how can i detect if the user select all items from the "UseClientSelectColumnOnly" ?
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Jun 2011
2 answers
181 views

Are there any none issues with EditMode="PopUp" and InsertItemPageIndexAction="ShowItemOnFirstPage"

If I set EditMode="PopUp" the page index does not cahnge to the first page, or any page for that matter and newly inserted records aren't on page one.

This only seems to occur when EditMode="PopUp"

 

<MasterTableView EditMode="PopUp" Caption="Caption" CommandItemDisplay="Top"
                        NoMasterRecordsText="No Rows Returned!" DataKeyNames="ID" RetrieveNullAsDBNull="False"
                        HorizontalAlign="Center" BorderWidth="1" BorderColor="Gray" BorderStyle="Solid" 
                        InsertItemPageIndexAction="ShowItemOnFirstPage">

Roger Barnes
Top achievements
Rank 1
 answered on 06 Jun 2011
3 answers
129 views
Hi,

I have develop web application using dotnetnuke
I have rad scheduler control with two time slot context menu Item
1)New Busy Slot
2)Schedule Lesson

I have two dropdownlist, calender control on the same page also.
The expected functionaliy is open modal popup on context menu clicked.
but problem is OnTimeSlotContextMenuItemClicked event is not fired 1st time ,even it doesnt fire on calender selection changed event or dropdown selection change. I found error in mozillas erro consol screen
" Error: Sys.InvalidOperationException: A control is already associated with the element.
Source File: http://localhost:54484/dotnetnuke/ScriptResource.axd?d=PHma0e-2otry_Ysyy9H2h977jLIeN8DaDTF6ErzwLL_L9Iy1W5rT2cg3BU4MorllD3c_4X0PSAs9XJKkkZku0nl5qDgzkvAliCRsP9dmNilzj8c1cMwntVYsWHdvDmjhMhE3oBeiGlN9xjWr6ZBeJ8QnEcxU3irWPFm4JQ2&t=5c2f384e
Line: 6580"

But if click on any navigate button of scheduler control and then try to clik on context menu then it works fine.
In IE work fine.


pls do reply its very urgent


Thanks
Plamen
Telerik team
 answered on 06 Jun 2011
2 answers
91 views

I searched the entire forum and I could't find one single explanation on what happens internally to the SQL table that stores the appointments, specifically the field 'RecurranceStorage' when a 'recurring exception' occurs. Please provide me with a link that can help me to understand the magic. I want to know how recurrence series keep track of exceptions like 'moving' one instance of the series to another resource or date/time. Your sample code 'ResouceGrouping' has zero code-behind.Thanks in advance.

Dan Lehmann
Top achievements
Rank 1
 answered on 06 Jun 2011
1 answer
33 views
Is there a way to carry the skin on the gridview down to the detailtables.  I set a main skin but it does not come down to the detailtable, how can this be fixed.


  <telerik:RadGrid ID="myRadGrid" runat="server" Width="95%" BorderWidth="1px" CellPadding="6" GridLines="Horizontal" BorderColor="#404040" Skin="Web20" ExportSettings-Excel-Format="Html"
                ExportSettings-FileName="DeployReport" ExportSettings-ExportOnlyData="true"
                ExportSettings-Pdf-AllowPrinting="true"><ExportSettings><Pdf FontType="Subset" PaperSize="Letter" PageTitle="No Show Report" /><Excel Format="html" FileExtension="xls" /></ExportSettings>
                <MasterTableView AutoGenerateColumns="false" HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind" BorderColor="#404040" Font-Size="10" Font-Names="Veranda,arial,sans-serif"
                HeaderStyle-HorizontalAlign="Center" ExpandCollapseColumn-ButtonType="ImageButton" ExpandCollapseColumn-CollapseImageUrl="../Images/30.png" ExpandCollapseColumn-ExpandImageUrl="../Images/29.png"
                CommandItemSettings-ShowExportToPdfButton="true" CommandItemDisplay="Top" CommandItemSettings-ShowExportToExcelButton="true" CommandItemSettings-ShowAddNewRecordButton="false"
                CommandItemSettings-ShowRefreshButton="false" CommandItemSettings-ShowExportToWordButton="true" DataKeyNames="strSSN"><AlternatingItemStyle BackColor="#B0C4DE" />
                <HeaderStyle ForeColor="White" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="UIC" DataField="strUIC"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Att UIC" DataField="AttUIC"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Rank" DataField="strRank"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Name" DataField="strFullName"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="SRPType" DataField="strSrpname"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="IN" DataField="TimeIn"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Out" DataField="TimeOut"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Process Time" DataField="ProcessTime"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Deployable" DataField="deployable"></telerik:GridBoundColumn>
                    </Columns>
                    <DetailTables>
                        <telerik:GridTableView Name="mySubReport" runat="server" DataKeyNames="strSSN" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10" AutoGenerateColumns="false"
                            HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="strSSN" MasterKeyField="strSSN" />
                            </ParentTableRelation>
                            <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
                                <Columns>
                                    <telerik:GridBoundColumn DataField="strTaskName" HeaderText="Task"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="strNotes" HeaderText="Notes"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="dtFound" HeaderText="Created"></telerik:GridBoundColumn>
                                </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                 </MasterTableView>
                </telerik:RadGrid>

Princy
Top achievements
Rank 2
 answered on 06 Jun 2011
1 answer
67 views

Hi,

I am trying to implement the automatic onloaddemand mechanism of the RAD combo box. But getting following error when click on dropdown:-


"The result of query can not be enumerated more than once"

Following is the source html for location combo box. Combobox is bind to objectdata source. Highlighted portion is use for  onload demand functionality.

<telerik:RadComboBox ID="comboLocation" runat="server" Width="250px" DataTextField="Location_DisplayName"

                     DataValueField="Location_ID" DataSourceID="LocationDataSource"

                     AppendDataBoundItems="true" EnableAutomaticLoadOnDemand="true"

                     onitemsrequested="comboLocation_ItemsRequested" ShowMoreResultsBox="true"                 
                     itemsperrequest
="5" enablevirtualscrolling="true">

                    <Items>

                       <telerik:RadComboBoxItem Text="" />

                    </Items>
</telerik:RadComboBox>

 

Not able to find what is happening wrong to cause above error. Have anyone got the same issue while developoing combobox on load demand functionality.

Dimitar Terziev
Telerik team
 answered on 06 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?