Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
174 views

Hi Telerik Team

I am getting the combo Box Design different in Chrome and Firefox and i haven't tried with other browsers  Check the ​attached image for clear idea.

Actually the design come perfect in chrome and  as coming to Firefox the text is displayed in next line.

Please help to solve this .

Thank You in Advance .

seshaadhree
Top achievements
Rank 1
 answered on 26 Oct 2015
2 answers
293 views

The scenarios:

I have a MasterTableView and it contains one DetailsTable. And the GridTableView contains a button in its CommandItemTemplate section. I want to fetch the parent table ID (MasterTableView) against the button click in the hierarchical child table (GridTableView). The e.CommandArgument property in the grid's ItemCommand event is empty.

 

The markup for the CommandItemTemplate is below:

 

<CommandItemTemplate>
                                <div style="padding: 5px 5px; text-align:right" >
                                    <asp:Button ID="btnSaveAction" runat="server" SkinID="Save" 
                                        CausesValidation="false" Text='​Save'  CommandName="​Save" CommandArgument='<%# Eval("ID") %>' />
                                </div>
                            </CommandItemTemplate>​

Nabeel
Top achievements
Rank 1
 answered on 24 Oct 2015
10 answers
1.0K+ views
I want to have a column in my rad grid that contains dropdown list.

I added (based on your examples):

<telerik:RadGrid ID="gvWebUsers" runat="server" OnNeedDataSource="gvWebUsers_NeedDataSource" OnItemCreated="gvWebUsers_ItemCreated"
                    Skin="Gray" AutoGenerateColumns="false"
                    OnItemDataBound="gvWebUsers_ItemDataBound" AllowAutomaticUpdates="true"
                    AllowPaging="true" CssClass="SettingsGrid" 
                    Width="99.7%">
                    
                    <ClientSettings Resizing-AllowColumnResize="true" Resizing-ClipCellContentOnResize="true" />
                    
                    <MasterTableView DataKeyNames="UserID" PageSize="15" EditMode="InPlace" >
                        <PagerStyle Mode="NextPrevAndNumeric" />
                        <Columns>
                             <telerik:GridBoundColumn DataField="EmailAddress" HeaderText="<%$ Resources:English,Settings_MobilityUsers_Email %>"
                                UniqueName="EmailAddress" />
                                
                             <telerik:GridBoundColumn DataField="FirstName" HeaderText="<%$ Resources:English,Settings_MobilityUsers_FirstName %>"
                                UniqueName="FirstName" />
                                
                             <telerik:GridBoundColumn DataField="LastName" HeaderText="<%$ Resources:English,Settings_MobilityUsers_LastName %>"
                                UniqueName="LastName" />
                        
                             <telerik:GridBoundColumn DataField="IsDomainUser" HeaderText="<%$ Resources:English,Settings_MobilityUsers_IsDomainUser %>"
                                UniqueName="IsDomainUser" />
                                
                             <telerik:GridBoundColumn DataField="IsVerified" HeaderText="<%$ Resources:English,Settings_MobilityUsers_IsVerified %>"
                                UniqueName="IsVerified" />
                                
                             <telerik:GridButtonColumn HeaderStyle-Width="80px" ItemStyle-Width="80px" ButtonType="LinkButton" UniqueName="BlockButton" />
                             
                             <telerik:GridButtonColumn HeaderStyle-Width="80px" ItemStyle-Width="80px" ButtonType="LinkButton" UniqueName="ChangePassButton" />

                            <telerik:GridButtonColumn HeaderStyle-Width="80px" ItemStyle-Width="80px" ButtonType="LinkButton" UniqueName="AllowUploadButton" />
                             
                             <telerik:GridButtonColumn HeaderStyle-Width="80px" ItemStyle-Width="80px" ButtonType="LinkButton" UniqueName="UnlockButton" />




                    <telerik:GridTemplateColumn HeaderText="Category" ItemStyle-Width="240px">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem, "IsUploadAllowed")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="RadComboBox2" DataTextField="IsUploadAllowed"
                                DataValueField="IsUploadAllowed" SelectedValue='<%#Bind("IsUploadAllowed") %>'>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn FooterText="EditCommand footer" UniqueName="EditCommandColumn"
                        HeaderText="Edit" HeaderStyle-Width="100px" UpdateText="Update">
                    </telerik:GridEditCommandColumn>

                            
                            
                        </Columns>
                        
                    </MasterTableView>
                </telerik:RadGrid>

But when I press on "Update" I get an error.
In addition, how can I bind data to the rad combobox from server side? (like itemdatabound)? Is there any way to call server side function on update command?





Meenakshi
Top achievements
Rank 1
 answered on 24 Oct 2015
5 answers
581 views
I have RadGrid inside of RadWindows. I need to refresh RadGrid every time when RadWindow shows. How to do it?
<script type="text/javascript">
    function closeCustomConfirm() {
        $find("<%=rwApproveInstance.ClientID %>").close();
    }
    function ShowRadWindow() {
        var oWnd = $find("<%=rwApproveInstance.ClientID %>");
        oWnd.show();
    }
</script>
<telerik:RadWindowManager runat="server" ID="RadWindowManager1" >
    <Windows>
        <telerik:RadWindow ID="rwApproveInstance" Modal="true" Behaviors="Close, Move" VisibleStatusbar="false"
            Width="800px" Height="700px" runat="server" ReloadOnShow="True" ShowContentDuringLoad="False">
            <ContentTemplate>
                <div class="rwDialogPopup radconfirm">
                    <div>
                        <telerik:RadGrid ID="rgApprovalInstance" runat="server" AutoGenerateColumns="False"
                            CellSpacing="0" GridLines="None" OnNeedDataSource="rgApprovalInstance_NeedDataSource">
                            <MasterTableView DataKeyNames="FieldName">
                                <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 AllowFiltering="False" AllowSorting="False" FilterControlAltText="Filter FieldName column"
                                        Groupable="False" HeaderText="FieldName" UniqueName="FieldName" DataField="FieldName">
                                        <HeaderStyle CssClass="documents-table" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AllowFiltering="False" AllowSorting="False" DataField="FieldValue"
                                        FilterControlAltText="Filter FieldValue column" Groupable="False" HeaderText="FieldValue"
                                        ReadOnly="True" UniqueName="FieldValue">
                                        <HeaderStyle CssClass="documents-table" />
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </div>
                    <div>
                        <telerik:RadButton runat="server" ID="rbConfirm_Cancel" Text="Close" OnClientClicked="closeCustomConfirm">
                        </telerik:RadButton>
                    </div>
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Oleg
Top achievements
Rank 1
 answered on 23 Oct 2015
1 answer
183 views

i tried that code without radgrid and is working fine

  <script type="text/javascript">
                                      function sum() {
                         var txtFirstNumberValue = document.getElementById('txt1').value;
                         var txtSecondNumberValue = document.getElementById('txt2').value;
                         var result = parseInt(txtFirstNumberValue) + parseInt(txtSecondNumberValue);
                         if (!isNaN(result)) {
                             document.getElementById('txt3').value = result;
                         }
                     }                                       
        </script>           

 

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (Not Page.ClientScript.IsStartupScriptRegistered("test")) Then
            Page.ClientScript.RegisterStartupScript(Me.GetType(), "test", "sum();", True)
        End If
    End Sub

 

But my problem was that i'm working with radgrid editform template, i have same 3 text boxes inside radgrid editform template, how to implement the above scenario with radgrid editform template

Konstantin Dikov
Telerik team
 answered on 23 Oct 2015
2 answers
153 views

I'm trying to do a fluid slider where it adjust to screen size. According to the fluid design documentation, if I were to add the control on page, I simply need to set: Width="100%" RenderMode="Lightweight":

http://docs.telerik.com/devtools/aspnet-ajax/controls/slider/mobile-support/responsive,-adaptive-and-elastic-capabilities#fluid-design-with-radslider

This work fine, but I need to create the sliders dynamically. The problem here is when creating in code behind, the Width property is integer only, I can't set to percent, so it can only be set to pixels. Any workaround?

Thanks

Aaron

Aaron
Top achievements
Rank 1
 answered on 23 Oct 2015
2 answers
99 views

Hi,

How to fire an OnItemClick event of a RadMenu from code-behind?

Thank you,

ETS

ETS
Top achievements
Rank 1
 answered on 23 Oct 2015
1 answer
125 views

New to the forums so hello to all.  I have been using Telerik components for about 6 months now and have noticed an occasional hiccup with the scheduler and (I believe exclusively) IE.  

I have attached a file with the worst case scenario.  All of the contents of the calendar are squashed to the left of the view which results in a vertical blue line. Sometimes it is less severe with about 50% white space and 50% of the actual calendar so that the information can still be discerned, but just barely. This is not consistently reproducible for me and what works on one machine may not work on another with the same website and browser version.

Has anyone else experienced this? Are there any known IE tweaks or anything to help assist with this problem? I did a search but did not find anything pertaining to this issue so I appreciate any feedback. I am using product version 2010.3.1317.40

 ​

Marin Bratanov
Telerik team
 answered on 23 Oct 2015
4 answers
187 views

I use Rad Editor on Sitecore.

 As described below , span tags are erased when I change link with HyperLink Manager.

<li>
<a href="./../solution/products/"><span class="title">products</span></a>
</li>

<li>
<a href="/aspnet-ajax/Editor/images/UserDir/PublicRelations/Telerik at TechEd.doc">/aspnet-ajax/Editor/images/UserDir/PublicRelations/Telerik at TechEd.doc</a>
</li>

This is what I will reproduce even in the demo site .
http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
Please tell me how to resolve .

yusuke
Top achievements
Rank 1
 answered on 23 Oct 2015
1 answer
122 views
I am building out a signup form using RadWizard. On step one, along with a few other inputs,  I'd like to utilize the RadCaptcha to prevent user from moving forward unless they pass the captcha test. Is this possible? Or does Captcha only work when a form is submitted? Thanks
Vessy
Telerik team
 answered on 23 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?