Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
165 views
Hi,
I have a RadGrid which displays 250 rows and 18 Columns.
At present, because of our requirement, we can't allow paging.
The Header background color is Navy Blue and the Row Selected color is Light Blue.
However when I navigate between rows using the Keyboard down arrow, the Row Selected Color changes to the Header
background Color as it nears the viewable bottom area of the Grid and once it changes the color, any other row I select, the row selected color is the  Header background Color  not the original Light Blue I assigned.
Can you please let me know what might be the Issue?
Thanks
Srinivas
Andrey
Telerik team
 answered on 23 Mar 2012
1 answer
100 views
Hi, i want to know is exists any sample that show me how to add a combo (or check list) for display in may Scheduler only specific resource
Plamen
Telerik team
 answered on 23 Mar 2012
19 answers
230 views
Hi

               I have a RadAsyncUpload to upload the image. Using  another button named "UpLoad" generate the postback to upload the image.  Save the image in sql Server database in binary format. Retrieve the binary data from the database and set it to the datavalue property of the RadBinary image control. The radbinary image displays the image in it's original size.  I have set the width and height of the radbinary image as 200px but the the image is displayed in its original size.
 If i will generate a postback again then the image is set in 200px height and width. Please give the solution for this problem.
protected void Page_Load(object sender, EventArgs e)
        {
 
            binaryimage1.Height = Unit.Pixel(200);
            binaryimage1.Width = Unit.Pixel(200);
       
            b1.Click += new EventHandler(b1_Click);
 
        }
void b1_Click(object sender, EventArgs e)
        {
 
            foreach (Telerik.Web.UI.UploadedFile file in uploader.UploadedFiles)
            {
                byte[] bytes = new byte[file.ContentLength];
                string fname = file.FileName.ToString();
                int length = bytes.Length;
 
                file.InputStream.Read(bytes, 0, file.ContentLength);
 
                SqlConnection dbconn = new SqlConnection(strconn);
 
                try
                {
                    string Query = "INSERT INTO RadBinaryImageDemo (ImageData,ImageName) VALUES " + " (@imgdata,@imgname)";
                    SqlCommand cmd = new SqlCommand(Query, dbconn);
 
                    SqlParameter[] param = new SqlParameter[2];
 
                    cmd.Parameters.AddWithValue("@imgdata",bytes);
                    cmd.Parameters.AddWithValue("@imgname", file.FileName);
                    dbconn.Open();
                    cmd.ExecuteNonQuery();
                   
                    DataTable d1 = new DataTable();
                    string Query1 = "select ImageData from   RadBinaryImageDemo where ImageName='" + fname + "'";
                    SqlDataAdapter sqldadap = new SqlDataAdapter(Query1, dbconn);
                    sqldadap.Fill(d1);
 
                    byte[] imgdata = ((byte[])d1.Rows[0]["ImageData"]);
 
                    binaryimage1.DataValue = imgdata;
                     
                }
                finally
                {
                     
                        dbconn.Close();
                     
                }
            }
 
             
        }
danny lankar
Top achievements
Rank 1
 answered on 23 Mar 2012
3 answers
179 views
Hello.
I would like to set some settings in server-side.
So i want to enable bold and italics and font-size 22px and selected font Arial(those settings depend on user preferences)
I don't want to use ContentAreaCssFile(which can actually  set the font-weight bold but not make the B button look like it's pressed.Of course i can use js...).
Any ideas?Thanks.

tasos
Top achievements
Rank 1
 answered on 23 Mar 2012
2 answers
216 views
Hello,

I was working on implementing a RadComboBox through Telerik's style builder, then I came across a strange problem. On hovering over the RCB, the controller responds as expected, however when I hover over the arrow image, the arrow image is pushed approx 10px to the right.

After using firebug to modify the CSS in an attempt to fix the problem there was no resolve.

I got rid of my custom styles and just dropped a vanilla RCB (default theme) with 3 test items and I have the same problem.

I'd appreciate any help, I've spent a little too much time trying to get it working. I've attached a screengrab.

Kind Regards,

Asif
Asif
Top achievements
Rank 1
 answered on 23 Mar 2012
5 answers
99 views
Hi All,
 when we right click on scheduler Past time slot i want to hide my 'Add New Appointment' TimeSlotContextMenu. I don't want to allow to add Appointments for past date and time.

Thanks
Madhan
Madhan
Top achievements
Rank 1
 answered on 23 Mar 2012
2 answers
132 views
I'm having an issue with the RadTextBox not remaining at the bottom of the text box as you type into it.  A few rows after it hits max height (roughly half of max length), it pops up to showing roughly the 2nd line of text and down.  Typing a character will briefly pop focus back to the bottom of the text box, but it will return to the 'top' immediately after.  RadTextbox is within a cell of a table as well, if that makes a difference.

Text box declaration below for help:
<telerik:RadTextBox ID="tbComment" Runat="server"
    EmptyMessage="Comment (Optional)" MaxLength="2000" TextMode="MultiLine"
    Width="100%" Height="100px">
</telerik:RadTextBox>

I've only observed this happening in IE8.  I also tested in Firefox 11 and had no issues with this there.  Telerik controls are Version 2011.3.1115.35. 
Milena
Telerik team
 answered on 23 Mar 2012
2 answers
240 views
hi,

I have a GridButtonColumn type "ImageButton" where the ItemDataBound of the grid, I add an attribute "onclick" to him, in order to click it to open a modal window, only p /playback.
Well, the first by clicking the button, it works perfectly, the window opens correctly. Butwhen you close the window, and click the button again it will not fire the event "OnClick", so I think he loses the attribute adcionado earlier in the "ItemDataBound". Here is thecode used:
* Note: I tried to put the grid inside an UpdatePanel, but also without success. 

function Vizualizar_Baixa(indexRow) {
    alert("btn");
    var row = $find("<%=gridListagem.ClientID%>").get_masterTableView().get_dataItems()[indexRow];
    var id = row.getDataKeyValue("DFid_titulo_pagar");
    window.radopen("Vizualizar_Baixa.aspx?Pesquisar=" + id, "Vizualizar_Baixa");
}

<telerik:RadWindowManager id="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
    ReloadOnShow="true" runat="server" Skin="Outlook" EnableShadow="true" >
    <Windows>
        <telerik:RadWindow ID="Vizualizar_Baixa" runat="server" Behaviors="Pin,Close" Modal="true"
            Title="Consulta de Cadastros" Height="448px" Width="502px" />
    </Windows>
</telerik:RadWindowManager>
 
<telerik:RadGrid ID="gridListagem" runat="server" AllowPaging="True" PageSize="5"
    AutoGenerateColumns="False" CellSpacing="0" GridLines="None"
    AllowMultiRowSelection="True" Skin="Outlook"
    OnNeedDataSource="gridListagem_NeedDataSource"
    Width="950px">
    <ClientSettings EnableRowHoverStyle="true" >
        <Selecting AllowRowSelect="True" CellSelectionMode="None"/>
    </ClientSettings>
    <MasterTableView TableLayout="Auto" ClientDataKeyNames="DFid_titulo_pagar" >
        <CommandItemSettings ExportToPdfText="Export to PDF" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
            Visible="True">
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
            Visible="True">
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFid_titulo_pagar"
                FilterControlAltText="Filter DFid_titulo_pagar column"
                HeaderText="DFid_titulo_pagar" UniqueName="DFid_titulo_pagar"
                Display="False">
            </telerik:GridBoundColumn>
            <telerik:GridClientSelectColumn UniqueName="DFcheck">
                <ItemStyle Width="25px" />
            </telerik:GridClientSelectColumn>
            <telerik:GridButtonColumn UniqueName="btnGrid" HeaderText="Baixa"
               ButtonType="ImageButton" ImageUrl="~/Icones/Grid.gif"
               HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle Width="25px" HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFstatus"
                FilterControlAltText="Filter DFstatus column" HeaderText="Status"
                UniqueName="DFstatus" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="TempCol" HeaderText="Status">
                <ItemTemplate>
                    <asp:Image ID="imgColumn" ImageUrl="" runat="server" />
                </ItemTemplate>
                <ItemStyle Width="25px" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFnumero_titulo"
                FilterControlAltText="Filter DFnumero_titulo column" HeaderText="N° Título"
                UniqueName="DFnumero_titulo">
                <ItemStyle Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridDateTimeColumn AllowFiltering="False" DataField="DFdata_emissao"
                FilterControlAltText="Filter DFdata_emissao column" HeaderText="Emissão"
                UniqueName="DFdata_emissao" DataFormatString="{0:dd/MM/yyyy}">
                <ItemStyle Width="50px" />
            </telerik:GridDateTimeColumn>
            <telerik:GridDateTimeColumn AllowFiltering="False"
                DataField="DFdata_vencimento"
                FilterControlAltText="Filter DFdata_vencimento column" HeaderText="Vencimento"
                UniqueName="DFdata_vencimento" DataFormatString="{0:dd/MM/yyyy}">
                <ItemStyle Width="50px" />
            </telerik:GridDateTimeColumn>
            <telerik:GridNumericColumn AllowFiltering="False" AllowRounding="True"
                DataField="DFvalor" DecimalDigits="2"
                FilterControlAltText="Filter DFvalor column" HeaderText="Valor"
                UniqueName="DFvalor">
                <ItemStyle Width="100px" HorizontalAlign="Right" />
                <HeaderStyle HorizontalAlign="Right" />
            </telerik:GridNumericColumn>
            <telerik:GridNumericColumn AllowFiltering="False" AllowRounding="True"
                DataField="DFvalor_restante" DecimalDigits="2"
                FilterControlAltText="Filter DFvalor_restante column"
                HeaderText="Vlr. Restante" UniqueName="DFvalor_restante">
                <ItemStyle Width="100px" HorizontalAlign="Right" />
                <HeaderStyle HorizontalAlign="Right" />
            </telerik:GridNumericColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFcod_fornecedor"
                FilterControlAltText="Filter DFcod_fornecedor column"
                HeaderText="DFcod_fornecedor" UniqueName="DFcod_fornecedor" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFfornecedor"
                FilterControlAltText="Filter DFfornecedor column" HeaderText="Fornecedor"
                UniqueName="DFfornecedor">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False"
                DataField="DFcod_tipo_documento"
                FilterControlAltText="Filter DFcod_tipo_documento column"
                HeaderText="DFcod_tipo_documento" UniqueName="DFcod_tipo_documento"
                Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFtipo_documento"
                FilterControlAltText="Filter DFtipo_documento column"
                HeaderText="DFtipo_documento" UniqueName="DFtipo_documento" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFcnpj_cpf"
                FilterControlAltText="Filter DFcnpj_cpf column" HeaderText="DFcnpj_cpf"
                UniqueName="DFcnpj_cpf" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False"
                DataField="DFid_plano_conta_fornecedor"
                FilterControlAltText="Filter DFid_plano_conta_fornecedor column"
                HeaderText="DFid_plano_conta_fornecedor"
                UniqueName="DFid_plano_conta_fornecedor" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False"
                DataField="DFcod_plano_conta_fornecedor"
                FilterControlAltText="Filter DFcod_plano_conta_fornecedor column"
                HeaderText="DFcod_plano_conta_fornecedor"
                UniqueName="DFcod_plano_conta_fornecedor" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False"
                DataField="DFplano_conta_fornecedor"
                FilterControlAltText="Filter DFplano_conta_fornecedor column"
                HeaderText="DFplano_conta_fornecedor" UniqueName="DFplano_conta_fornecedor"
                Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFcod_plano_conta"
                FilterControlAltText="Filter DFcod_plano_conta column"
                HeaderText="DFcod_plano_conta" UniqueName="DFcod_plano_conta" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFplano_conta"
                FilterControlAltText="Filter DFplano_conta column" HeaderText="DFplano_conta"
                UniqueName="DFplano_conta" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False"
                FilterControlAltText="Filter DFhistorico column" HeaderText="DFhistorico"
                UniqueName="DFhistorico" Visible="False" DataField="DFhistorico">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFcontato"
                FilterControlAltText="Filter DFcontato column" HeaderText="DFcontato"
                UniqueName="DFcontato" Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="False" DataField="DFtelefone"
                FilterControlAltText="Filter DFtelefone column" HeaderText="DFtelefone"
                UniqueName="DFtelefone" Visible="False">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

Private Sub gridListagem_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridListagem.ItemCreated
    If TypeOf e.Item Is GridDataItem Then
        Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim Button As System.Web.UI.WebControls.ImageButton = TryCast(dataItem("btnGrid").Controls(0), System.Web.UI.WebControls.ImageButton)
        Button.Attributes.Add("OnClick", "return Vizualizar_Baixa('" & dataItem.ItemIndex & "');")
        If dataItem("DFstatus").Text = "A" Then
            Dim imgColumn As Image = CType(dataItem("TempCol").FindControl("imgColumn"), Image)
            imgColumn.ImageUrl = "~/Icones/ok3_32_32.png"
        End If
    End If
End Sub

Leandro
Top achievements
Rank 1
 answered on 23 Mar 2012
1 answer
103 views
I have a RadComboBox which is populated from a WebService. The items returned from this service are checked to see if an item is a seperator, if so, the IsSeperator flag is set to true for that item. Things are fine till here.


I have Checkboxes = true and EnableCheckAllItems = true set on the RadComboBox. Problem is, if I select the "CheckAll" item, it selects even the seperator (I am hiding the checkbox for the seperator through JavaScript). This should not happen, since these are just seperators and not the items.


I am able to disable the checkboxes and its functionality for the seperators in javascript, but what I want is "All Items Selected" text to be shown and no seperators checked.


Is there a workaround for this problem ? Or, Am I missing something here ?

Thanks,
Anup
Kalina
Telerik team
 answered on 23 Mar 2012
1 answer
90 views
Hello,

I am having issues with the combo box similar to the thread below.  When the combobox is on the first page of the wizard, the combobox  works just fine.  When its not on the first page, its like the combobox is in a disabled state.  I cant even reference it through javascript.  Please note that is only causing me problems in SharePoint 2010.  In a regular web site project it works fine.  How can I fix this?

Thanks,

http://www.telerik.com/community/forums/aspnet/combobox/radcombobox-and-wizard.aspx


UPDATE: looks like this may be related too:

http://www.telerik.com/community/forums/aspnet-ajax/button/radbutton-in-wizard.aspx
Kalina
Telerik team
 answered on 23 Mar 2012
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?