Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
229 views
My client requests the radcombobox must have the same look with the regular asp:TextBox. Like square-corner and no dropshadow. May you kindly give me some tips to format the control.

Thank you.
Duke
d-cpt
Top achievements
Rank 2
 answered on 03 Sep 2010
2 answers
92 views
Hi,

I am using the sitemap control - with the 'Black' skin.
When I add an image it puts a purple border around it - is there a way of removing this?

Thanks in advance
Andrew
Top achievements
Rank 1
 answered on 03 Sep 2010
4 answers
101 views
Hey all I have a page with a bunch of accordion panels with controls in them, what I need is when they submit a form on one control I need the radgrid on a different control to refresh how do I do this?

thanks!
Panels:
<div>
                    <h3>
                        <a href="#">Create Groups</a></h3>
                    <div>
                        <asp:UpdatePanel ID="UpdatePanelCreateGroups" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div>
                                    <oti:CreateGroup ID="CreateGroup" runat="server" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
                <div>
                    <h3>
                        <a href="#">Edit Questions</a></h3>
                    <div>
                        <asp:UpdatePanel ID="UpdatePanelEditQuestions" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div>
                                    <oti:EditQuestionsGroup ID="EditQuestionsGroup" runat="server" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
                <div>
                    <h3>
                        <a href="#">Edit Group Questions</a></h3>
                    <div>
                        <asp:UpdatePanel ID="UpdatePanelEditGroupQuestions" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div>
                                    <oti:EditGroup ID="EditGroup" runat="server" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
Radoslav
Telerik team
 answered on 03 Sep 2010
1 answer
128 views
Hi there,

I am using the RadEditor for Moss 2007 of version 5_8_1.
i have a Custom button in tool bar. Once the user is selecting anytext in the editor and click on this button i am populating this text to the pop up. In pop up i am getting some text  and i have a Insert Button in the popup. Using this Button i am trying to insert the text in the editor.

I am using like

window.opener.RTE_GetSelection("' + editor.get_id() + '").pasteHtml(popup); \n'

But i am getting error that window.opener.RTE_GetSelection is null. what should i do here to insert the text as html markup in the editor.
i have attached the full code here. let me know if anyone having anyidea.

Telerik.Web.UI.Editor.CommandList["CustomCommand1"] = function(commandName, editor, args) {

    //this is the function that generates the "Popup" dialog.

    var selection = editor.getSelection();

    
    //get the selected text:
    var selectedText = selection.getText();
    //get the selected HTML:
    var selectedHTML = selection.getHtml();
    //get the currently selected HTML element
    var selElement = editor.getSelectedElement(); //or selection.getParentElement()
    //alert(editor);
    //alert("The selected text is: " + selectedText + ".\nThe selected HTML is: " + selectedHTML + ".\nThe selected HTML element is " + selElement.tagName + ".");
    //alert(editor.get_id());

    //this is the function that generates the "Popup" dialog.
    //alert("Inside embedPopup");
    // RTE_SaveSelection(editor);
    //var fieldValue = RTE_GetSelection(editor).text;

    var generator = window.open('', 'Parameters', 'height=300,width=300,scrollbar=no,menu=no,toolbar=no,status=no,location=no');
    generator.document.write('<html><head><title>Please input details</title>' +
    '<script type="text/javascript">function insertPopup() { \n' +
    'var popupText = document.getElementById("popupText").value; \n' +
    'var popupHeading = document.getElementById("popupHeading").value; \n' +
    'var popupDescription = document.getElementById("popupDescription").value; \n' +
    'var bValid = true; \n' +
    'var sErrorMessage = ""; \n' +
    'if (popupText == "") { \n' +
    '    sErrorMessage = "No text selected to create popup."; \n' +
    '    bValid = false; \n' +
    '} \n' +
    'else if (popupHeading == "") { \n' +
    '    sErrorMessage = "Please enter a heading for the popup."; \n' +
    '    bValid = false; \n' +
    '} \n' +
    'else if (popupDescription == "") { \n' +
    '    sErrorMessage = "Please enter a description text for the popup."; \n' +
    '    bValid = false; \n' +
    '} \n' +
    'if (sErrorMessage != "") \n' +
    '{ \n' +
    '    alert (sErrorMessage); \n' +
    '} else if (bValid) { \n' +
    '    var popup = "<span class=\\\"ept-contentdetail-body-hover-popup\\\" onmouseover=\\\"showBalloonTip(\'<b>"; \n' +
    '    popup = popup + popupHeading; \n' +
    '    popup = popup + "</b><br />"; \n' +
    '    popup = popup + popupDescription; \n' +
    '    popup = popup + "\',200)\\\" onmouseout=\\\"hideBalloonTip()\\\">"; \n' +
    '    popup = popup + popupText; \n' +
    '    popup = popup + "</span>"; \n' +
    '    if (!window.opener || window.opener.closed) { \n' +
    '        alert("Your popup could not be inserted because the editor page has been closed."); \n' +
    '    } else { \n' +
    '       alert("'+editor.get_id()+'");' +
    '        //window.opener.document.getElementById("' + editor + '_toolbarIframe").focus(); \n' +
    '         window.opener.RTE_GetSelection("' + editor.get_id() + '").pasteHtml(popup); \n' +
    '       //var editor="ctl00_ctloo_PlaceHolderMainParent_PlaceHolderMain_Content_ctl00_RadHtmlField1"; \n' +
    '    } \n' +
    '   alert("outside if");' +
    '    window.opener.RTE_RestoreSelection("' + editor + '"); \n' +
    '    window.close(); \n' +
    '} \n' +
    '}' + "<\/script>" +
    '</head><body style="margin:10px; font-family: verdana; font-size: 10px;">' +
    '<strong>Create Popup For:</strong> <input id="popupText" name="popupText" type="text" value="' + selectedText + '" readonly style="border: 1px black solid; width: 200px; font-family: verdana; font-size: 10px;"/><br/><span style="color: gray">(Hover would be created on this text)</span>' +
    '<br/> <br/>' +
    '<strong>Popup Heading:</strong> <input id="popupHeading" name="popupHeading" type="text" style="border: 1px black solid; width: 200px; font-family: verdana; font-size: 10px;"/><br/><span style="color: gray">(Enter the hover heading here)</span>' +
    '<br/> <br/>' +
    '<strong>Popup Description:</strong><br/>' +
    '<textarea id="popupDescription" name="popupDescription" style="width: 250px; height: 100px; border: 1px black solid; font-family: verdana; font-size: 10px;"></textarea>' +
    '<br/><span style="color: gray">(Enter the hover description here)</span><br/>' +
    '<input type="hidden" id="field" value="' + editor + '">' +
    '<br/> <br/><button style="font-family: verdana; font-size: 10px;" onclick="insertPopup()">Insert</button>' +
    '&nbsp;&nbsp;<button style="font-family: verdana; font-size: 10px;" onclick="window.close()">Close</button>' +
    '</body></html>');

    generator.document.close();


Thanks
Amit Kumar
Stanimir
Telerik team
 answered on 03 Sep 2010
2 answers
183 views
Hi,

I am using a RadPanelBar and within the RadPanelBar I have a radgrid, that is being populated by data OnItemClick event.

My problem is that all expansion behavior is lost once a panel bar is open it cannot be closed again, and ieve the SingleExpanededItem expandMode is lost.

Any Help?

Thanks.

HTML SNIPPET
<telerik:RadPanelBar ID="rpbStudentList" runat="server" Width="100%" OnItemClick="rpbStudentList_ItemClick"
                                ExpandMode="SingleExpandedItem">
                                <ItemTemplate>
                                    <telerik:RadGrid ID="rgrdScheduleList" runat="server" AutoGenerateColumns="False"
                                        GridLines="None" Visible="False" OnItemDataBound="rgrdScheduleList_ItemDataBound">
                                        <MasterTableView>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="SAT_PK" HeaderText="SATPK" UniqueName="SAT_PK"
                                                    Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="SAT_CSTU_FK" HeaderText="SATCSTUFK" UniqueName="SAT_CSTU_FK"
                                                    Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="SAT_SBO_FK" HeaderText="SATSBOFK" UniqueName="SAT_SBO_FK"
                                                    Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CSC_PK" HeaderText="CSCPK" UniqueName="CSC_PK"
                                                    Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CSC_DATE" HeaderText="Lesson Date" UniqueName="CSC_DATE"
                                                    Visible="True" DataFormatString="{0:dd/MMM/yyyy}">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CSC_TIME_FROM" HeaderText="Time From" UniqueName="CSC_TIME_FROM"
                                                    Visible="True" DataFormatString="{0:hh:mm}">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CSC_TIME_TO" HeaderText="Time To" UniqueName="CSC_TIME_TO"
                                                    Visible="True" DataFormatString="{0:hh:mm}">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn UniqueName="SAT_ABSENT" HeaderText="Attendance" Visible="true">
                                                    <ItemTemplate>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:RadioButton ID="rbtnPresent" runat="server" GroupName="AttendanceTemplate" Text="Present"
                                                                        Checked="true" />
                                                                </td>
                                                                <td>
                                                                    <asp:RadioButton ID="rbtnAbsent" runat="server" GroupName="AttendanceTemplate" Text="Absent" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="SAT_REASON" HeaderText="Absence Reason" Visible="true"
                                                    DataField="ABSENCE_REASON_LIST">
                                                    <ItemTemplate>
                                                        <telerik:RadComboBox ID="rddlReason" runat="server" DataValueField="SAR_PK" DataTextField="SAR_REASON">
                                                        </telerik:RadComboBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="SAT_COMMENTS" HeaderText="Comments" Visible="true"
                                                    DataField="SAT_COMMENTS">
                                                    <ItemTemplate>
                                                        <telerik:RadTextBox ID="rtxtComments" runat="server" Text='<%# Eval("SAT_COMMENTS") %>'>
                                                        </telerik:RadTextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                    <asp:Button ID="btnSave" runat="server" Text="Button" Visible="false" OnClick="btnSave_Click" />
                                </ItemTemplate>
                            </telerik:RadPanelBar>

C# RadPanelBar Bind

rpbStudentList.DataSource = list;
rpbStudentList.DataTextField = "STD_STUDENT_FULLNAME";
rpbStudentList.DataValueField= "STD_PK";
rpbStudentList.DataBind();


C# RadPanelBar OnItemClick

RadGrid rgrdScheduleList = (e.Item.FindControl("rgrdScheduleList") as RadGrid);
rgrdScheduleList.Visible = true;
rgrdScheduleList.DataSource = sessionStudentAttendance.STUDENT_ATTENDANCE_LIST;
rgrdScheduleList.DataBind();

IDOX Health
Top achievements
Rank 1
 answered on 03 Sep 2010
1 answer
255 views
I have developed a chart that I want to have an image background within the plot area. I built it and set up the image according to the instructions throughout other support areas on the site. I can even get it to work beautifully when I run is on a testing server from visual studio 2010. The image does appear in the background the way I want it to. 

So here is the problem. I upload it onto my hosting server and now when I run the application from there it doesnt put the image in the background of the plot.

I have set overideskinstyle = false. I have checked my file paths and yes the image is uploaded. I have turned all skins off, set backgrounds to transparent so that i know they dont go over the plot area. I have exhausted just about every possible idea and there doesnt seem to be much more support for what I want to do. I am posting the code that makes up the radchart in my aspx file. I add series to the chart programmably within the code behind file (C#).

This is all the code I can show you and not the code behind file because that files contains coding and information that I am not authorized to post in public forums. Any help would be greatly appreciated.

<telerik:RadChart ID="RadChart3" runat="server" DefaultType="Line" 
                        Height="350px" Width="510px" SeriesPalette="Palette1" 
                        EnableEmbeddedBaseStylesheet="False">
                        <Appearance>
                            <Border Visible="False" />
                        </Appearance>
                        <Legend>
                            <Appearance Dimensions-AutoSize="False" Dimensions-Height="20px" 
                                Dimensions-Width="435px" Overflow="Row" Position-AlignedPosition="Bottom" 
                                Position-Auto="False" Position-X="55" Position-Y="328">
                                <ItemTextAppearance TextProperties-Color="DimGray">
                                </ItemTextAppearance>
                                <Border Color="DimGray" />
                            </Appearance>
                            <TextBlock>
                                <Appearance AutoTextWrap="False">
                                </Appearance>
                            </TextBlock>
                        </Legend>
                        <PlotArea>
                            <EmptySeriesMessage Visible="True">
                                <Appearance Visible="True">
                                </Appearance>
                            </EmptySeriesMessage>
                            <XAxis LayoutMode="Normal" MaxItemsCount="30" Visible="True" AutoScale="False" 
                                IsZeroBased="False" MaxValue="90" MinValue="30" Step="10">
                                <Appearance>
                                    <MajorGridLines Color="DimGray" Width="0" />
                                </Appearance>
                                <AxisLabel Visible="True">
                                    <Appearance Position-Auto="False" Position-X="236.2037" Position-Y="300" 
                                        Visible="True">
                                    </Appearance>
                                    <TextBlock Text="Coarsness Factor">
                                        <Appearance Position-AlignedPosition="Bottom" 
                                            TextProperties-Font="Verdana, 9.75pt">
                                        </Appearance>
                                    </TextBlock>
                                </AxisLabel>
                                <Items>
                                    <telerik:ChartAxisItem Value="30">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="40">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="50">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="60">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="70">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="80">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="90">
                                    </telerik:ChartAxisItem>
                                </Items>
                            </XAxis>
                            <YAxis AutoScale="False" IsZeroBased="False" MaxValue="50" MinValue="20" 
                                Step="5">
                                <Appearance>
                                    <MajorGridLines Color="DimGray" />
                                </Appearance>
                                <AxisLabel Visible="True">
                                    <Appearance Visible="True">
                                    </Appearance>
                                    <TextBlock Text="Workability Factor">
                                        <Appearance TextProperties-Font="Arial, 9.75pt" Position-AlignedPosition="Left">
                                        </Appearance>
                                    </TextBlock>
                                </AxisLabel>
                                <Items>
                                    <telerik:ChartAxisItem Value="20">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="25">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="30">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="35">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="40">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="45">
                                    </telerik:ChartAxisItem>
                                    <telerik:ChartAxisItem Value="50">
                                    </telerik:ChartAxisItem>
                                </Items>
                            </YAxis>
                            <YAxis2>
                                <AxisLabel>
                                    <TextBlock>
                                        <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">
                                        </Appearance>
                                    </TextBlock>
                                </AxisLabel>
                            </YAxis2>
                            <Appearance Corners="Round, Round, Round, Round, 6" Dimensions-AutoSize="False" 
                                Dimensions-Height="260px" Dimensions-Margins="5%, 5%, 24%, 10%" 
                                Dimensions-Width="435px" Position-AlignedPosition="Top" Position-Auto="False" 
                                Position-X="55" Position-Y="20" SeriesPalette="Palette1">
                                <FillStyle FillType="Image" MainColor="Transparent" SecondColor="Transparent">
                                    <FillSettings BackgroundImage="BACK.png">
                                    </FillSettings>
                                </FillStyle>
                                <Border Color="DimGray" />
                            </Appearance>

                        </PlotArea>
                        <ChartTitle Visible="False">
                            <Appearance Corners="Round, Round, Round, Round, 6" Dimensions-AutoSize="False" 
                                Dimensions-Height="0px" Dimensions-Margins="0px, 0px, 0px, 0%" 
                                Dimensions-Paddings="0px, 0px, 0px, 0px" Dimensions-Width="0px" 
                                Position-AlignedPosition="Top" Position-Auto="False" Position-X="0" 
                                Position-Y="0" Visible="False">
                                <FillStyle FillType="Solid" MainColor="Transparent">
                                </FillStyle>
                                <Border Color="DimGray" />
                            </Appearance>
                            <TextBlock Text="">
                                <Appearance TextProperties-Font="Verdana, 11.25pt">
                                </Appearance>
                            </TextBlock>
                        </ChartTitle>
                        <CustomPalettes>
                            <telerik:Palette Name="Palette1">
                                <Items>
                                    <telerik:PaletteItem MainColor="BlueViolet">
                                    </telerik:PaletteItem>
                                </Items>
                            </telerik:Palette>
                        </CustomPalettes>
                    </telerik:RadChart>
Ves
Telerik team
 answered on 03 Sep 2010
1 answer
88 views
Hi,

We upgraded the RadEditorSharePoint to version 5.4. Since the upgrade users reports troubles with Wiki links with accents (é, è, à, ...). When we update a Wiki page, the RadEditor remove all the accent from links. Therfore links doesn't point anymore to the page previously defined.

In the ConfigFile, we specified the Language and the SpellDictionnaryLanguage to fr-FR.

Could you please help us on this topic?

Thanks
Julien
Stanimir
Telerik team
 answered on 03 Sep 2010
1 answer
95 views
Actually i need to change the rad Grid PivotTable layout to include image & provide the Editing functionality
please help me .
Pavlina
Telerik team
 answered on 03 Sep 2010
2 answers
107 views
Hi Guys
I am working with gantt chart
i placed label in x asix using below line
<XAxis DataLabelsColumn="Name"></XAxis>  

but i am not able to place my y axis as label my requirement is to display jan, feb till december
and this should be displayed on top not at the bottom

Any idea
Please guide me
Karthik.K
Karthik Kantharaj
Top achievements
Rank 1
 answered on 03 Sep 2010
5 answers
247 views
We started using the Header Context Filter Menu feature from the demo here.
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/headercontextfiltermenu/defaultcs.aspx


We would like to see some sort of indicator that a row is filtered similar to the Up and Down arrow to indicate when a row is sorted. Is this currently possible or something that Telerik would consider doing in the future.
Thanks.
Daniel
Telerik team
 answered on 03 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?