Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hello,

I have four radgrids in a modal radwindow. In the top of the modal i have four buttons (one button for grid) which function is show the grid if you click in the button (if you click in grid1 button the grid1 shows). I need to fire the save changes of the batch edit manager when you click on the button for change to show another grid but i already need to hide the radgrid. Only one grid is shows and when you change all the grids save changes.

How can i do this?

Thanks
Maria Ilieva
Telerik team
 answered on 04 Mar 2015
1 answer
48 views
Dear,

I used default Popup Edit modal for my RadGrid which exists inside RadPageView. When I click on edit button, I get edit control popped up but the control displays inside RadPageView. I want it to be displayed above all other controls in the page.

Hope, I have perfectly delivered the issue. I highly appreciate if anyone can help with this.


Thank you,

Fawad Surosh
Maria Ilieva
Telerik team
 answered on 04 Mar 2015
1 answer
67 views
I am using RadEditor asp.net ajax and I can get the media manager to return an image to the preview window it will not display no matter what I am making a bespoke cms for profiles and  need an answer to this I have included how i have setup my editor in the aspx page
     <telerik:RadEditor ID="rdAbout" Runat="server">
                            <Tools>
                                <telerik:EditorToolGroup Tag="MainToolbar">
                                    <telerik:EditorTool Name="XhtmlValidator" />
                                    <telerik:EditorTool Name="PageProperties" />
                                    <telerik:EditorTool Name="StyleBuilder" />
                                    <telerik:EditorTool Name="TrackChangesDialog" />
                                    <telerik:EditorTool Name="FormatCodeBlock" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="InsertImage" />
                                    <telerik:EditorTool Name="InsertLink" />
                                    <telerik:EditorTool Name="InsertTableLight" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorToolStrip Name="InsertFormElement">
                                    </telerik:EditorToolStrip>
                                    <telerik:EditorTool Name="InsertFormForm" />
                                    <telerik:EditorTool Name="InsertFormButton" />
                                    <telerik:EditorTool Name="InsertFormCheckbox" />
                                    <telerik:EditorTool Name="InsertFormHidden" />
                                    <telerik:EditorTool Name="InsertFormPassword" />
                                    <telerik:EditorTool Name="InsertFormRadio" />
                                    <telerik:EditorTool Name="InsertFormReset" />
                                    <telerik:EditorTool Name="InsertFormSelect" />
                                    <telerik:EditorTool Name="InsertFormSubmit" />
                                    <telerik:EditorTool Name="InsertFormTextarea" />
                                    <telerik:EditorTool Name="InsertFormText" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="StripAll" />
                                    <telerik:EditorTool Name="StripCss" />
                                    <telerik:EditorTool Name="StripFont" />
                                    <telerik:EditorTool Name="StripSpan" />
                                    <telerik:EditorTool Name="StripWord" />
                                    <telerik:EditorToolStrip Name="FormatStripper">
                                    </telerik:EditorToolStrip>
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup Tag="InsertToolbar">
                                    <telerik:EditorTool Name="AjaxSpellCheck" />
                                    <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+M" />
                                    <telerik:EditorTool Name="SetImageProperties" />
                                    <telerik:EditorTool Name="ImageMapDialog" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="FlashManager" />
                                    <telerik:EditorTool Name="MediaManager" />
                                    <telerik:EditorTool Name="InsertExternalVideo" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="DocumentManager" />
                                    <telerik:EditorTool Name="TemplateManager" />
                                    <telerik:EditorTool Name="SilverlightManager" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorToolStrip Name="InsertTable">
                                    </telerik:EditorToolStrip>
                                    <telerik:EditorTool Name="InsertRowAbove" />
                                    <telerik:EditorTool Name="InsertRowBelow" />
                                    <telerik:EditorTool Name="DeleteRow" />
                                    <telerik:EditorTool Name="InsertColumnLeft" />
                                    <telerik:EditorTool Name="InsertColumnRight" />
                                    <telerik:EditorTool Name="DeleteColumn" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="MergeColumns" />
                                    <telerik:EditorTool Name="MergeRows" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="SplitCell" />
                                    <telerik:EditorTool Name="SplitCellHorizontal" />
                                    <telerik:EditorTool Name="DeleteCell" />
                                    <telerik:EditorTool Name="SetCellProperties" />
                                    <telerik:EditorTool Name="SetTableProperties" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorSplitButton Name="InsertSymbol">
                                    </telerik:EditorSplitButton>
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorSplitButton Name="Undo">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorSplitButton Name="Redo">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="Cut" />
                                    <telerik:EditorTool Name="Copy" />
<telerik:EditorTool Name="Paste" ShortCut="CTRL+!"></telerik:EditorTool>
<telerik:EditorTool Name="PasteMarkdown"></telerik:EditorTool>
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="PasteFromWord" />
                                    <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                                    <telerik:EditorTool Name="PastePlainText" />
                                    <telerik:EditorTool Name="PasteAsHtml" />
                                    <telerik:EditorTool Name="PasteHtml" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="Print" />
                                    <telerik:EditorTool Name="FindAndReplace" />
                                    <telerik:EditorTool Name="SelectAll" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="InsertGroupbox" />
                                    <telerik:EditorTool Name="InsertParagraph" />
                                    <telerik:EditorTool Name="InsertHorizontalRule" />
                                    <telerik:EditorSplitButton Name="InsertSnippet">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="InsertDate" />
                                    <telerik:EditorTool Name="InsertTime" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="AboutDialog" />
                                    <telerik:EditorTool Name="Help" />
                                    <telerik:EditorTool Name="ToggleScreenMode" />
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Italic" />
                                    <telerik:EditorTool Name="Underline" />
                                    <telerik:EditorTool Name="StrikeThrough" />
                                    <telerik:EditorSplitButton Name="ForeColor">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorSplitButton Name="BackColor">
                                    </telerik:EditorSplitButton>
                                    <telerik:EditorTool Name="FormatPainter" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="JustifyLeft" />
                                    <telerik:EditorTool Name="JustifyCenter" />
                                    <telerik:EditorTool Name="JustifyRight" />
                                    <telerik:EditorTool Name="JustifyFull" />
                                    <telerik:EditorTool Name="JustifyNone" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="Superscript" />
                                    <telerik:EditorTool Name="Subscript" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="ConvertToLower" />
                                    <telerik:EditorTool Name="ConvertToUpper" />
                                    <telerik:EditorTool Name="Indent" />
                                    <telerik:EditorTool Name="Outdent" />
                                    <telerik:EditorTool Name="InsertOrderedList" />
                                    <telerik:EditorTool Name="InsertUnorderedList" />
                                    <telerik:EditorTool Name="AbsolutePosition" />
                                    <telerik:EditorTool Name="LinkManager" />
                                    <telerik:EditorTool Name="Unlink" />
                                    <telerik:EditorTool Name="SetLinkProperties" />
                                    <telerik:EditorTool Name="ToggleTableBorder" />
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup Tag="DropdownToolbar">
                                    <telerik:EditorDropDown Name="FontName">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorDropDown Name="FontSize">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorDropDown Name="RealFontSize">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorDropDown Name="ApplyClass">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorDropDown Name="InsertCustomLink">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorDropDown Name="FormatBlock">
                                    </telerik:EditorDropDown>
                                    <telerik:EditorTool Name="FormatSets" />
                                    <telerik:EditorDropDown Name="Zoom">
                                    </telerik:EditorDropDown>
                                </telerik:EditorToolGroup>
                            </Tools>
                            <Content>
</Content>
 
                            <ImageManager DeletePaths="~\Uploads" EnableAsyncUpload="True" UploadPaths="~\Uploads\" ViewPaths="~\Uploads\" MaxUploadFileSize="1204800" />
                            <DocumentManager DeletePaths="~\Uploads" UploadPaths="~\Uploads" ViewPaths="~\Uploads" />
                            <FlashManager SearchPatterns="~\Uploads\" UploadPaths="~\Uploads\" ViewPaths="~\Uploads\" />
                            <MediaManager DeletePaths="~\Uploads" UploadPaths="~\Uploads\" MaxUploadFileSize="1204800" SearchPatterns="~\Uploads\" ViewPaths="~\Uploads\" />
 
<TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
                        </telerik:RadEditor>

Even if i open the image editor as well it does not show the image in the preview tab i do not no what is the issue here
Ianko
Telerik team
 answered on 04 Mar 2015
2 answers
110 views
We have a use case where a student submits an essay and an instructor annotates the student's content. We are using the track changes functionality in the Editor to display the annotations. When the editor is not in edit mode, the color indicators do not display. Is there a way to enable the styles that the instructor can see while editing the content?
Ianko
Telerik team
 answered on 04 Mar 2015
1 answer
75 views
Which version of jQuery is used in Telerik.Web.UI.dll version 2015.1.225.45 ?

Best regards, Marja
Pavlina
Telerik team
 answered on 04 Mar 2015
1 answer
96 views
When I tried to insert a break line between each tile.text, it seem not working. I looked at your example for TileList - Declarative DataSource.  Pleas help.

tile.Text = DataBinder.GetPropertyValue(e.Tile.DataItem, "RoomNumber", null) + "<BR> " +
DataBinder.GetPropertyValue(e.Tile.DataItem, "DepartmentAbbreviation", null) + "<BR> " +
DataBinder.GetPropertyValue(e.Tile.DataItem, "RoomStatus", null) + "<BR> " + "Check In: " + DataBinder.GetPropertyValue(e.Tile.DataItem, "StartDateTime", "{0:hh:mm:ss tt}");

The <BR> cannot break each data from the tile.

Marin Bratanov
Telerik team
 answered on 04 Mar 2015
7 answers
55 views
I have to reuse the user controls I'm creating multiple times on a single page. This user control has a listbox and a button. On clicking the button, a radwindow opens and will send some value back to the caller on close. I have to identify the appropriate user control when the pop-up closes and populate the listbox with the value returned.I'm running into two issues here. One is the question posted, how do I identify calling user control from the pop-up. Second, is something wrong on my ajaxrequest code? Even if I hardcode values, the listbox does not get populated.

Parent.aspx

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
</telerik:RadAjaxManager>

<telerik:radwindowmanager id="RadWindowManager1" reloadonshow="true" showcontentduringload="false" runat="server" behavior="Default" initialbehavior="None" ></telerik:radwindowmanager>

<div>
<uc:Control ID="Ctrl1" runat="server"></uc:Control >
<uc:Control ID="Ctrl2" runat="server"></uc:Control >
<uc:Control ID="Ctrl3" runat="server"></uc:Control >
</div>

UserControl.ascx

<telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">
<script type="text/javascript">
function foo() {
var oWnd = radOpen('PopUp.aspx', "Title");
oWnd.add_close(OnClientClose);
return false;
}

function OnClientClose(oWnd) {
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");

ajaxManager.ajaxRequest('Processed return value');
return false;
}
</script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ListBox">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ListBox" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>

<table>
<tr>
<td>
<asp:ListBox ID="ListBox" Width="100px" runat="server" />
</td>
<td>
<asp:Button ID="AddButton" runat="server" OnClientClick="return foo(); return false;" Text="Add" />
</td>
</tr>
</table>

UserControl.ascx.cs

protected void Page_Load(object sender, EventArgs e)
{
var manager = RadAjaxManager.GetCurrent(Page);

manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager1_AjaxRequest);
}

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
if (!string.IsNullOrEmpty(e.Argument))
{
ListBox.Items.Add(new RadListBoxItem(e.Argument));
//This code runs without error but does not populate the list box. I even tried to harcode the control ID against which this code should run. The code ran only for the required control but listbox was not populated.
}
}

Also, all the 3 user controls get executed on the postback. Is there a way to prevent it? It's been a while since I have dealt with user controls and telerik, so if I missed out on any crucial detail in the sample above, please let me know.I do have to use telerik but not necessarily ajaxrequest. I tried some javascript code from telerik demos to populate the listbox but that didn't work either.Any help/clues/directions appreciated
Marin Bratanov
Telerik team
 answered on 04 Mar 2015
1 answer
78 views
Are the UI for ASP.NET components responsive?  If so, any example or documentation on how to config that? 

Thanks.
Marin Bratanov
Telerik team
 answered on 04 Mar 2015
2 answers
137 views
A simple question, is the client event OnRowDataBound meant to fire when using server side binding with NeedDataSource?

For me it does not fire when using server side binding, only client side binding but I need the OnRowDataBound to work on server side binding when partially moving to client side coding and I cant think of a reason it shouldn't fire.

Cheers,
Christian
Angel Petrov
Telerik team
 answered on 04 Mar 2015
1 answer
188 views
Hello,

I have a radGrid that populates with groups. The group header displays the group header title and aggregate sum as expected but the group header text is not aligned under the column name. All the header text is aligned in the left side of the groupheader. My code for calculates the sum is this:

protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            RadGrid1.HeaderStyle.Font.Size = 10;
            RadGrid1.GroupHeaderItemStyle.Font.Size = 10; 
  
            GridGroupByExpression gridGroupByExpression1 = new GridGroupByExpression();
            GridGroupByField gridGroupByField1 = new GridGroupByField();
              
            gridGroupByField1.FieldName = "GroupName";
            gridGroupByField1.HeaderValueSeparator = " ";
  
            gridGroupByExpression1.SelectFields.Add(gridGroupByField1);
            gridGroupByExpression1.GroupByFields.Add(gridGroupByField1);
  
            GridGroupByField gridGroupByField3 = new GridGroupByField();
              
            foreach (totals tot in totalsList)
            {
                gridGroupByField3 = new GridGroupByField();
                gridGroupByField3.FieldName = tot.name;
                gridGroupByField3.HeaderText = " ";
                gridGroupByField3.HeaderValueSeparator = " ";
                gridGroupByField3.FormatString = " (Total: {0})";
                gridGroupByField3.Aggregate = GridAggregateFunction.Sum;
                gridGroupByExpression1.SelectFields.Add(gridGroupByField3);
            }
  
            RadGrid1.MasterTableView.GroupByExpressions.Add(gridGroupByExpression1);
        }

I need to align the sum under the column name inside the groupheader text.

Thank you

Konstantin Dikov
Telerik team
 answered on 04 Mar 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?