Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
308 views

Hi,

How to refresh the wizard from an event inside a usercontrol that forms part of the steps.

So for example, If I have a usercontrol inside step one and when a 'save button' in clicked in this user control, how to pass that to the wizard and change step visibility, icons etc. 

Cheers,

Jack

Jon
Top achievements
Rank 1
 answered on 06 Apr 2015
5 answers
147 views
Hi,

I know this is probably something really simple, but I can't get it to work. I'm trying to add icons to the HeaderTemplate and make them right justified. I used span and div tags but they seem to push the icons down into the content area.

Here's my asp page:

<head id="Head1" runat="server">
    <title></title>
    <link href="CustomSkin/PanelBar.Salt.css" rel="stylesheet" />
     
    <style type="text/css">
        .RadPanelBar_Salt a.rpLink.GreenPanel.rpExpandable.rpExpanded {
            background-color: green;
            background-position: 0 -1000px;
            border-color: green;
        }
    </style
     
</head>
<body>
     
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server"></telerik:RadSkinManager>
       <%--<telerik:RadButton runat="server" Text="Preview Report" ></telerik:RadButton>--%>
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server"  ExpandMode="MultipleExpandedItems"  Skin="Salt" EnableEmbeddedSkins="false"  >  
            <CollapseAnimation Duration="100" Type="None" /> 
            <Items
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1" CssClass="GreenPanel"  >
                    <HeaderTemplate>
                          Root Item 1
                            <asp:ImageButton ID="image1" runat="server"  ImageUrl="~/images/save_go16x16.png" /><asp:ImageButton ID="ImageButton1" runat="server"  ImageUrl="~/images/ie_16x16.png" />
                           <a class="rpExpandable">
                               <span class="rpExpandHandle"></span>
                           </a>
                    </HeaderTemplate>                      
                    <ContentTemplate>
                        <telerik:RadTextBox ID="textbox1" runat="server" Text="text 1"></telerik:RadTextBox>
                        <telerik:RadComboBox runat="server" ID="RadComboBox1" Text="combo1"></telerik:RadComboBox>
                    </ContentTemplate>
                     
                </telerik:RadPanelItem
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2" CssClass="GreenPanel" >  
                    <HeaderTemplate>
                        Root Item 2<asp:ImageButton ID="ImageButton2" runat="server"  ImageUrl="~/images/save_go16x16.png"  />
                           <a class="rpExpandable">
                               <span class="rpExpandHandle"></span>
                           </a>
                    </HeaderTemplate>
                    <ContentTemplate>
                        <telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Root Panel 2"></telerik:RadTextBox>
                        <telerik:RadComboBox runat="server" ID="RadComboBox2" Text="combo2"></telerik:RadComboBox>
                    </ContentTemplate>
                </telerik:RadPanelItem
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem3" CssClass="GreenPanel" >  
                    <HeaderTemplate>
                        Root Item 3<asp:ImageButton ID="ImageButton3" runat="server"  ImageUrl="~/images/save_go16x16.png"  />
                           <a class="rpExpandable">
                               <span class="rpExpandHandle"></span>
                           </a>
                    </HeaderTemplate>
                    <ContentTemplate>
                        <telerik:RadTextBox ID="RadTextBox3" runat="server" Text="Root Panel 3"></telerik:RadTextBox>
                        <telerik:RadComboBox runat="server" ID="RadComboBox3" Text="combo3"></telerik:RadComboBox>
                    </ContentTemplate>
                </telerik:RadPanelItem>
            </Items
            <ExpandAnimation Duration="100" Type="None" /> 
             
        </telerik:RadPanelBar
    </form>
</body>
</html>

I also attached what my screen looks like.

Thank you,

Helen
Magdalena
Telerik team
 answered on 06 Apr 2015
1 answer
185 views
I am using the Radgrid as part of a form in asp.net web forms.

People click on "add new record" button to add a new record, fill out the entire row and then,

instead of clicking on "insert" they just click on the "submit" button at the bottom of the page.


I would like to detect if this has occured, and if it has, I would like the row to be inserted.

How can I accomplish this? 

I have already tried what is below, and it does not work.  If an item is currently being inserted, RadGrid1.Items is still 0.

foreach (GridDataItem item in RadGrid1.Items)
            {
                //Set the Name property for the Detail table 
                if(item.IsInEditMode)
                {
                    var x = "here";
                }
            } 
Viktor Tachev
Telerik team
 answered on 06 Apr 2015
13 answers
904 views
Hi there,

I need to buid a survey interface and thought that RadGrid could be a good candidate for it.
I have two datasources:
1. with questions, with related key;
2. answers, which has a reference to the question key.

Idea is that I would have a radgrid with two columns:
1. Question as bound coulmn
2. RadioButtonList with answers.

The problem is that I can not get two datasources marry by the question key. When I pass a parameter to answers datasource as a control radgrid SelectedValue, the second column is not showing up at all. Any recommendations would be appreciated. I paste my code below.

Thanks,
Yuriy

 

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="sqlManufacturerSurvey" 
GridLines="None" AutoGenerateColumns="False"
<MasterTableView DataSourceID="sqlManufacturerSurvey" DataKeyNames="QuestionID" Name="Questions" 
HierarchyLoadMode="Client"
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"
<HeaderStyle Width="20px"></HeaderStyle
</RowIndicatorColumn
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"
<HeaderStyle Width="20px"></HeaderStyle
</ExpandCollapseColumn
<Columns
<telerik:GridBoundColumn DataField="QuestionID" FilterControlAltText="Filter QuestionID column" 
HeaderText="QuestionID" UniqueName="QuestionID"
</telerik:GridBoundColumn
<telerik:GridBoundColumn DataField="Question" FilterControlAltText="Filter Question column" 
HeaderText="Question" UniqueName="Question"
</telerik:GridBoundColumn
<telerik:GridTemplateColumn FilterControlAltText="Filter column column" UniqueName="Answer" 
HeaderText="Answer"
<ItemTemplate
<asp:RadioButtonList ID="rblAnswer" runat="server" DataSourceID="sqlResponses" DataTextField="Answer" 
DataValueField="AnswerID" RepeatLayout="Table"
</asp:RadioButtonList
</ItemTemplate
</telerik:GridTemplateColumn
</Columns
<EditFormSettings
<EditColumn FilterControlAltText="Filter EditCommandColumn column"
</EditColumn
</EditFormSettings
</MasterTableView
<FilterMenu EnableImageSprites="False"
<WebServiceSettings
<ODataSettings InitialContainerName=""
</ODataSettings
</WebServiceSettings
</FilterMenu
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"
<WebServiceSettings
<ODataSettings InitialContainerName=""
</ODataSettings
</WebServiceSettings
</HeaderContextMenu
</telerik:RadGrid
<asp:SqlDataSource ID="sqlManufacturerSurvey" runat="server" ConnectionString="<%$ ConnectionStrings:KPortal %>" 
SelectCommand="SELECT MaterialCategory.ServiceTypeID, Question.MaterialID AS QuestionID, Question.MaterialName AS Question FROM MaterialCategory INNER JOIN Materials AS Question ON MaterialCategory.MaterialCategoryID = Question.MaterialCategoryID WHERE (MaterialCategory.MaterialCategory = 'Manufacturer Survey') AND (Question.InternalCode = 'QUESTION')"> 
</asp:SqlDataSource
<asp:SqlDataSource ID="sqlResponses" runat="server" ConnectionString="<%$ ConnectionStrings:KPortal %>" 
SelectCommand="SELECT MaterialID AnswerID, MaterialName as Answer, ParentMaterialID as QuestionID FROM Materials WHERE (ParentMaterialID = @QuestionID)"> 
<SelectParameters
<asp:ControlParameter ControlID="RadGrid1" Name="QuestionID" 
PropertyName="SelectedValue" /> 
</SelectParameters
</asp:SqlDataSource
Sushil
Top achievements
Rank 1
 answered on 06 Apr 2015
1 answer
100 views
On the following tutorial, the edit from is loaded on initial page load:

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx

How can I hide it on initial load and have it appear once user click on the "edit" text on the row of the data?

In addition, how can I use RadioButtonList in the template form with particular data selected when they click on edit link?

Lastly, If in the edit template, if there is a section where I don't want it to show (because section is not necessary to be edited), can I hide the section of edit form template on the fly?
Eyup
Telerik team
 answered on 06 Apr 2015
1 answer
152 views
Hi,
i am using asp.net cascadiung dropdown
lists.
assignment
2.task




i have bind data to both dropdownlist and succesfully write insert code.
But my problem is when i next time go that page grid must show previously inserted data.
For this i can able to bind assignment dropdown but my task dropdown is not binding properly.
It shows all data for that current assignment(not showing which task is allready inserted for that
assignment.)

i tried following code for assignment
and task binding.

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType ==DataControlRowType.DataRow)
{
DropDownList ddlAssignment = (e.Row.FindControl("ddlAssignment") as DropDownList);
string Assignment =(e.Row.FindControl("lblAssignment") as Label).Text;
ddlAssignment.ClearSelection();
ddlAssignment.Items.FindByText(Assignment).Selected = true;

DropDownList ddlTask = (e.Row.FindControl("ddlTask") as DropDownList);
string Task = (e.Row.FindControl("lblTask") as Label).Text;
ddlTask.ClearSelection();
ddlTask.Items.FindByText(Task).Selected = true;

i also tried
ddlTask.Items.FindByValue(Task).Selected = true;

}
}

Thanks.

Ivan Danchev
Telerik team
 answered on 06 Apr 2015
10 answers
218 views

While using a Grid with Grouped columns, we have found that when we scroll to the right, little space is left for the left most column and in that case, only the first column in the leftmost groups is shown.

 

Please see the attached image.

Notice that the width of the grouped column crops the column as indicated in the image. Please assist.

 

Is there a way to show avoid cropping of the right sub-column in the group.

Pavlina
Telerik team
 answered on 06 Apr 2015
1 answer
91 views
i tried to change the style to keep all stars in one line.horizontally. not sure how can i fix it. please find the image. and i am looking for expactedresult in second image.
Slav
Telerik team
 answered on 06 Apr 2015
1 answer
134 views
Clicks are # in ContentTemplate with RadSitemap and  is not working on iPad.
Please check http://sieger.ontwikkelruimte.nl/test.aspx

With code:

<telerik:RadMenu id="RadMenu2" EnableShadows="false" ExpandAnimation-Type="None" CollapseAnimation-Type="None" ShowToggleHandle="false" CausesValidation="False" runat="server" >

         <Items>

           



               <telerik:RadMenuItem Value="Producten" Text="Producten" PostBack="false">
                        <ContentTemplate>
                            <div>
                              
                                <telerik:RadSiteMap ID="RadSiteMap2" runat="server" Skin="Telerik" EnableTextHTMLEncoding="true">
                                    <LevelSettings>
                                        <telerik:SiteMapLevelSetting Level="0">
                                            <ListLayout RepeatColumns="3" RepeatDirection="Vertical" />
                                        </telerik:SiteMapLevelSetting>
                                    </LevelSettings>

                                   <Nodes>
                                       <telerik:RadSiteMapNode NavigateUrl="~/abc.aspx" Text="henk" />
                                   </Nodes>
                                    </telerik:RadSiteMap>
                                </div>
                            </ContentTemplate>
                        </telerik:RadMenuItem>

             </Items>
     </telerik:RadMenu>
Dimitar
Telerik team
 answered on 06 Apr 2015
1 answer
121 views
I ran the example on my machine and it works, but when I emulate another browser, ex: IE9, the chart does not export. IS there a filesystem setting that needs to be added, as I have seen an error with something like that from time to time.
Ivan Danchev
Telerik team
 answered on 06 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?