Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
478 views
Hi,

In my application I want to open a Rad/Modal window from normal aspx page. This works fine and I can even get the Session.
But when I open another Rad/Modal window from the this new Rad/Modal window it starts a new Session.
I'm using same code to open both windows thats given below:

 

 

function ShowRadForm(ID) {
  
window.radopen("../RadWin1.aspx?ID=" + ID, "radDialog");
  
return false;
  
}
  
  
  
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" AutoSize="true">
  
  
<Windows>
  
  
<telerik:RadWindow ID="radDialog" runat="server" Title="Edit"
  
  
Height="550px" Width="900px" ReloadOnShow="true" ShowContentDuringLoad="false"
  
  
OnClientClose="OnClientClose" Modal="true" Style="z-index: 7001" />
  
  
</Windows>
  
  
</telerik:RadWindowManager>

How can I get Session in radDialog?

 

Rumen
Telerik team
 answered on 29 Nov 2019
4 answers
1.0K+ views
Hi,

In radListView how can I get multi-columns in a row, ie., to get more than one record in a row ?

At design time can I set the number of columns for the ListView?

Awaiting ur reply,
Liji Jose

Setiawan
Top achievements
Rank 1
 answered on 29 Nov 2019
1 answer
137 views
How do I set a default date of 30 days from today?
Eyup
Telerik team
 answered on 29 Nov 2019
1 answer
345 views

HI!

I have a problem with radgrid drag and drop.. Is it possible to transfer duplicates items from Radgrid to another Radgrid same as ListBox?..

i followed this  this https://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx , but it doesnt help me that much

Hope you can help me

Thanks

 

Attila Antal
Telerik team
 answered on 28 Nov 2019
5 answers
356 views
Hello,

I have a RadEditor within a RadGrid and I am able to successfully save the properly formed html to a SQL Server database.  Although, when I try to display the content back into the RadEditor, it will not render the html.

The following is the RadEditor within the RadGrid:
<telerik:RadGrid ID="grdInstructions" runat="server" AutoGenerateColumns="false" Width="600px" onitemdatabound="grdInstructions_ItemDataBound"
                    ondeletecommand="grdInstructions_DeleteCommand" ClientSettings-Scrolling-UseStaticHeaders="true" ClientSettings-ClientEvents-OnGridCreated="onGridCreated"
                    ClientSettings-Scrolling-AllowScroll="true">
             <MasterTableView>
             <Columns>
               <telerik:GridBoundColumn HeaderText="Ref#" DataField="ReferenceNumber" UniqueName="ReferenceNumber"
                                     HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" HeaderStyle-Width="30px">
               </telerik:GridBoundColumn>
               <telerik:GridTemplateColumn HeaderText="Instructions" UniqueName="Instructions" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="480px" HeaderStyle-BorderStyle="Groove" ItemStyle-Wrap="false">
                <ItemTemplate>
                    <telerik:RadEditor ID="txtInstruction" runat="server" MaxTextLength="1000" AutoResizeHeight="false" EditModes="Design" ContentAreaMode="Div" ToolbarMode="ShowOnFocus" EnableTextareaMode="true" Width="480px" Height="50px" ToolsWidth="130px">
                    <Tools>
                        <telerik:EditorToolGroup>
                            <telerik:EditorTool  Name="ForeColor" />
                            <telerik:EditorTool Name="Bold" />
                            <telerik:EditorTool Name="Italic" />
                            <telerik:EditorTool Name="Underline" />
                        </telerik:EditorToolGroup>
                    </Tools>
                    </telerik:RadEditor>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Delete" ItemStyle-HorizontalAlign="Center"
                Text="Delete" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="60px"
                UniqueName="btnDeleteInstructionRow" Resizable="false">
            </telerik:GridButtonColumn>
             </Columns>
             </MasterTableView>
            </telerik:RadGrid>

I am displaying the content back to the RadEditor with the following code:
 protected void grdInstructions_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                //  Current row object.
                ESPTProjectInstruction projectInstruction = (ESPTProjectInstruction)e.Item.DataItem;
                string referenceNumber = string.Empty;

                //  Row Number
                GridDataItem dataItem = (GridDataItem)e.Item;
                referenceNumber = Convert.ToString(e.Item.ItemIndex + 1);
                dataItem["ReferenceNumber"].Text = referenceNumber;

                //  Project Instruction
                RadEditor txtInstruction = e.Item.FindControl("txtInstruction") as RadEditor;
                txtInstruction.Content = projectInstruction.Instruction;

                //  Delete Column               
                GridDataItem item = e.Item as GridDataItem;
                //  Display Delete option when adding new record and if there is more then one row.
                if (grdInstructions.MasterTableView.Items.Count > 0)
                {
                    //  Show Delete column during Add.
                    item["btnDeleteInstructionRow"].Controls[0].Visible = true;
                    item["btnDeleteInstructionRow"].Attributes["onclick"] = "return confirm('Delete Instruction# " +  referenceNumber + "?')";
                }
                else
                {
                    //  Hide Delete option if there is only one row.
                    item["btnDeleteInstructionRow"].Controls[0].Visible = false;
                }
            }
        }

This is how the data is stored in SQL Server:
<span style="color: #00b050;">This is the first instruction that is formatted green.</span>
<span style="color: #ff0000;"><strong>This is the second instruction that is formatted red and bolded.</strong></span>

How do I get the content to properly render the HTML in the RadEditor when it is retrieved from SQL Server?

Hopefully, someone out their can respond quickly....

Thank You in Advance!
Rumen
Telerik team
 answered on 28 Nov 2019
3 answers
181 views

We use RadEditor in Lightweight render mode on a ASP.NET page. The page uses a master page template with a search form.
As result we have two form tags on the page. The search form is located first, main form - second.

In this case we have an issue with RadContextMenu. It does not appear when you right-click on a table or a link. If we remove the search form the context menu is visible.

We tested this scenario with 2019.2.514.45 version of dlls.

Could you assist how I can get the context menu to work?

Rumen
Telerik team
 answered on 27 Nov 2019
7 answers
716 views

What would be the best way to store the RecurrenceRule and the RecurrenceParentId in the database? Would varchar and int, respectively, be the best data types to use in SQL?

Also, what would be the best way to translate a recurrence rule into something I can use somewhere else? For example, if I wanted to populate a DropDownList control with appointment titles and then upon SelectedIndexChanged, populate the second DropDownList with all of the available (recurring) time slots, would that be possible? If so, what would be the best way of going about it?

Thanks.

Peter Milchev
Telerik team
 answered on 27 Nov 2019
9 answers
358 views
Hi ,

In my project , i am using Rad grid drag and drop functionality. In chrome when the zoom level is not 100%, this feature is not working. This issue doesn't happen in IE.

I checked the telerik demo site and this issue is also reproducible there
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

i am using chrome version 28.0.1500.95

Please let me know if there is any fix for the issue.
Rumen
Telerik team
 answered on 25 Nov 2019
2 answers
156 views

Hi,

 

I'm currently using on an area chart. I am displaying multiple charts below each other, some have 3 data points, some up to 15.

The chart has a fixed width. The maxvalue of the x-axis is set to 15.

The Problem:

 No matter how many datapoints for each series there are, the chart always stretches the series to the whole width of the plotarea. (see attached screenshot for current unwanted behaviour.)
The behaviour I want to achieve is a fixed width between every category/major tick, so that all data points have the same distance inbetween, no matter if I have 2 or 15.  So if there are e.g. only 4 data points, the leftmost 4 categories on the x axis are used, and the other 11 are left blank.(see 2nd photoshopped screenshot with wanted behaviour)

So that if multiple of these charts are compared with each other, each category has the same width.

 

Is there any way to accomplish this? Or is itperhaps possible to scale the width of the whole chart after the datasource is assigned to the chart?

Thanks in advance for any help!

Greetings Markus

Eyup
Telerik team
 answered on 25 Nov 2019
2 answers
174 views

 

Is it possible to have the preview string update from an OnBlur of the filter control items.  We don't want a post-back, just have the preview update, in that we have noticed the preview often does not update to reflect the last change made in the control - like changing the value of a textbox or changing a combo box value.  

Thanks

Van
Top achievements
Rank 1
Iron
Iron
 answered on 24 Nov 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?