Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Hi, I'm trying to enable the page size combobox in a FileExplorer instance. I'm programmatically setting this:

        Me.RadFileExplorer1.Grid.MasterTableView.PagerStyle.AlwaysVisible = True
        Me.RadFileExplorer1.Grid.MasterTableView.PagerStyle.Mode = Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric

But nothing happens when I change the page size in the combobox. I'm using version 2010.1.309.35. How can I fix this?

Thanks,
Santiago.
Dobromir
Telerik team
 answered on 22 Oct 2010
1 answer
97 views
Hello!

I have a radgrid in an update panel. I use javascript to activate the inplace edit mode by double clicking the row. The problem is that when I double click directly on the text of databound columns the whole page is marked?!?! When I double click on free space in the row or columns which are not bound to a datafield everything works fine.

See the attachment.

Any suggestions?

Kind regards

Michael
Tsvetina
Telerik team
 answered on 22 Oct 2010
5 answers
571 views
Hey everyone,

I am using this radgrid
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource"
                AllowPaging="True" AllowSorting="True" GridLines="None" Skin="Office2007">
                <MasterTableView>
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <EditFormSettings>
                        <FormTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td colspan="2" style="font-size: small">
                                        <b>Order Details</b>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Order Id:
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblOrderId" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Product Name:
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlProductName" runat="server" DataSourceID="SqlDataSource1"
                                                        DataTextField="ProductName" DataValueField="Pid" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Rate:
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblRate" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Qunatity:
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtQuantity" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Amount:
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblAmount" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                </ClientSettings>
            </telerik:RadGrid>
Now,i want to open insert form on button click that is outside the grid.My dataSource for radgrid is datatable--
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            dtValues = new DataTable();
            dtValues.Columns.Add("Items");
            dtValues.Columns.Add("Rate");
            dtValues.Columns.Add("Quantity");
            dtValues.Columns.Add("Amount");
            RadGrid1.DataSource = dtValues;
        }
How to proceed?...

Thanks
Amit
Tsvetina
Telerik team
 answered on 22 Oct 2010
2 answers
149 views
my gridview aspx code is..

<telerik:RadGrid ID="radGrid1" runat="server" AutoGenerateColumns="False"
            OnSelectedIndexChanged="radGrid1_SelectedIndexChanged" GridLines="None"
            AllowMultiRowEdit="True" OnItemDataBound="radGrid1_ItemdatBound">
             
            <MasterTableView  AutoGenerateColumns="false">
             
                <Columns>
             
                    <telerik:GridTemplateColumn HeaderText="Product Name">
                        <EditItemTemplate>
                            <telerik:RadComboBox ID="cbo1" runat="server" AppendDataBoundItems="true" EnableLoadOnDemand="true" Width="300px" Height="100px"
                            DataValueField="product_id" AutoPostBack="true" Text='<%# Bind("Product_Name")%>' DataTextField="Product_Name" MarkFirstMatch="true" DropDownWidth="300px"></telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Product_rate">
                        <ItemTemplate>
                            <asp:Label ID="lblrate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Product_Rate")%>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Product Quantity">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtQuantity" runat="server" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Product Amount">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtAmount" runat="server" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
and code behind is

for bind radgrid is
public void bindradGrid()
        {
            SqlConnection con=new SqlConnection(ConfigurationManager.AppSettings["connectionstring"].ToString());
            SqlCommand cmd=new SqlCommand("select * from product_detail",con);
            con.Open();
            SqlDataAdapter da=new SqlDataAdapter(cmd);
            DataSet ds=new DataSet();
            da.Fill(ds);
            radGrid1.DataSource=ds;
            radGrid1.DataBind();
            con.Close();
             
        }
and for item data bind is

protected void radGrid1_ItemdatBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
            {
                GridEditableItem editItem = e.Item as GridEditableItem;
                RadComboBox combo = (RadComboBox)editItem.FindControl("Product_Name");
                SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["connectionstring"].ToString());
                SqlCommand cmd = new SqlCommand("select product_id.product_name from product_detail", con);
                con.Open();
               SqlDataAdapter da = new SqlDataAdapter(cmd);
               DataTable dt = new DataTable();
               da.Fill(dt);
               radGrid1.DataSource = dt;
               radGrid1.DataBind();
 
               combo.DataTextField = "product_name";
               combo.DataValueField = "product_id";
               combo.DataBind();
                
               
            }
        }
i am using many article but i am unable to bind radgrid with radcombo plz suggest me......


thanks
shivesh
shivesh
Top achievements
Rank 1
 answered on 22 Oct 2010
1 answer
153 views
Hi,

The problem looks like this:
RadEditor has external css content registered like this:
<CssFiles>
   <telerik:EditorCssFile Value="~/Styles/OdpowiedzListEditorContentAreaStyles.css" />
</CssFiles>
And CSS file looks like this:

body
{
    background-color: White !important;
    font-family: RotisSemiSansPl !important;
    font-size: 20pt !important;
    margin: 50pt 0pt 10pt 0pt !important;
    color: red !important;
}

My problem is that On the design view everything is ok and the styles are applied, but they aren't added to the html view. So When I save the HTML to my database all the formatting is gone. Is there a way to include those styles in the html?
Dobromir
Telerik team
 answered on 22 Oct 2010
3 answers
351 views
Hi

How do I get radGrids EditIndex or a row that is in editmode in a button click event handler that is outside the RadGrid?

Thanks!!
Neelima
Protected Sub btnOK_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnOK.Click
  
 Dim phone As String = String.Empty
 Dim row As GridEditableItem ' How to get the row that is in editmode?
 phone = DirectCast(row.FindControl("txtPhone"), TextBox).Text
  
End Sub


     <telerik:RadGrid ID="RadgridDestination" runat="server"
     AllowSorting="True"  ShowGroupPanel="True" 
     AutoGenerateColumns="False"
          Skin="Sunset" AllowPaging="True" GridLines="None">
  
        <GroupingSettings ShowUnGroupButton="True"  />
        <ClientSettings AllowDragToGroup="True" allowcolumnsreorder="True" 
            columnsreordermethod="Reorder" reordercolumnsonclient="True" >
        </ClientSettings>
          
  
<MasterTableView EditMode="InPlace" DataKeyNames="Destination_ID" GroupLoadMode="Client" >
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
    <Columns>
      
        <telerik:GridEditCommandColumn ButtonType="ImageButton">
        </telerik:GridEditCommandColumn>
          
         <telerik:GridButtonColumn CommandName="Select" Text="Select"  ButtonType="ImageButton"
            UniqueName="column1" ImageUrl="Images/Home-Edit.gif">
        </telerik:GridButtonColumn>  
                              
                              
                <telerik:GridBoundColumn DataField="Destination_ID"  
            HeaderText="Destination_ID" visible="False" UniqueName="Destination_ID" />
'
'
'
'
 <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
            Text="Delete" UniqueName="Delete">
        </telerik:GridButtonColumn>
                      
            </Columns>
           <EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
  
    </telerik:RadGrid>
  
<asp:Button ID="btnOK" runat="server"  CausesValidation="false" Text=" OK " /> 
Princy
Top achievements
Rank 2
 answered on 22 Oct 2010
1 answer
144 views
How do I implement a loading control, so that a template appears with an animated gif when I press forward, back, etc.?

I have tried:

       <telerik:RadScheduler ID="radScheduler" runat="server" Height=""
        HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1"
        onresourcespopulating="radScheduler_ResourcesPopulating" ReadOnly="true"
        AppointmentStyleMode="Default" EnableDescriptionField="true"
        OnClientAppointmentCreated="clientAppointmentCreated"
        SelectedView="MonthView" ShowFooter="false" ShowAllDayRow="false"
        ShowFullTime="true" OnClientAppointmentClick="appointmentClick"
        AdvancedForm-Modal="true" Skin="Office2007" TimelineView-UserSelectable="false"
        >
         
        <AppointmentTemplate>
 
                        <div class="rsAptSubject">
                           <%# Eval("Subject") %>
                        </div>
                        <%# Eval("Description") %>
        </AppointmentTemplate>
         
        <WebServiceSettings Path="../WebServices/MyService.asmx" ResourcePopulationMode="ServerSide" />
 
        <AdvancedEditTemplate>
        <div>
            <a id="lnkDetails" href="#">View Details</a>
        </div>
        </AdvancedEditTemplate>
 
        <ResourceStyles>
            <telerik:ResourceStyleMapping Key="1" ApplyCssClass="rsCategoryGreen"/>
            <telerik:ResourceStyleMapping Key="2" ApplyCssClass="rsCategoryRed" />
        </ResourceStyles>
 
       </telerik:RadScheduler>
     
  
           <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radScheduler">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radScheduler" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
            
               <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" IsSticky="false" Width="75px" Transparency="25">
    LOADING LOADING LOADING LOADING LOADING LOADING LOADING LOADING LOADING LOADING
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0;" />
</telerik:RadAjaxLoadingPanel>


Nothing appears, can you advise?
Veronica
Telerik team
 answered on 22 Oct 2010
1 answer
71 views
I glossed over the release notes for RadControls for AJAX Q1 2010 and one of the selling points appears to be Visual Studio 2010 integration.. I currently have Q3 2009 SP1 and am thinking of upgrading to VS 2010. Will I run into compatibility issues with Q3 2009? Do I need to upgrade to Q1 2010?
Sebastian
Telerik team
 answered on 22 Oct 2010
1 answer
126 views
Hi,
With reference to attached file, the Customer Name Combobox is a telerik:RadComboBox and is disabled. But the selected value is very difficult to read when it is made Enable False. There is no problem when it is made Enabled. Can you please suggest what can be done to solve this issue when it is make Enable False?
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2010
3 answers
150 views
I have a screen that has a rad window that when it opens seems to have some odd characters taht are visible.  I have tried it on other sites but don't get these odd characters as you can see in the attachment.  Any ideas on what is causing this.

<telerik:RadWindowManager ID="RadWindowManager" runat="server">
           <Windows>
               <telerik:RadWindow ID="Info" ReloadOnShow="false" Behavior="Close, Move, Resize"
                   Modal="true" AutoSize="true" VisibleStatusbar="false" runat="server" ShowContentDuringLoad="false"
                   Style="z-index: 2" OnClientPageLoad="radWindow_OnClientLoad" />
           </Windows>
       </telerik:RadWindowManager>


Georgi Tunev
Telerik team
 answered on 22 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?