Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
I have a radchart with names instead of numbers on the y axis.  However the names are getting cut off.  How can I add more space for them?

I've attached a picture so you can see what I'm talking about.
Javier
Top achievements
Rank 1
 answered on 23 Mar 2012
1 answer
57 views
Hi,

                           I am setting the restrict zone area dynamically on expand and collapse of slide panel.While the slide panel is in expanded mode my child window works fine on maximizing.But an issue occurs when my child window is maximized my slide panel goes behind the window on expansion or even the child window is placed to the extreme left the slide panel is unable to push the window to right.
                           I want my window functionality like outlook window.

Help me,

Thnx in advance
Marin Bratanov
Telerik team
 answered on 23 Mar 2012
3 answers
154 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
76 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
202 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
119 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
184 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
83 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
103 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
214 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?