Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
858 views
I am trying to set default skin using Web.config - all documentation says is to use [ShortProductName] but no example shows what is the 'ShortProductName' (whether it is with namespace or without).

I am using it as below:
    <add key="Telerik.Web.UI.RadComboBox.Skin" value="Vista"/>
Above does not work.

    <add key="Telerik.RadComboBox.Skin" value="Vista"/>
This does not work either.

The only thing that works is:
    <add key="Telerik.Skin" value="Vista"/>

But this overrides everything in the site contrary to the documentation about EnableEmbeddedScript/EnableEmbeddedSkin - that says that page level overrides > control level in web.config overrides > global setting in web.config.

How should I configure web.config now? so that I have one default skin and then some specific skins for some controls?

Thanks,
Piyush

Michael
Top achievements
Rank 1
 answered on 26 Jun 2014
1 answer
107 views
Hi, We are using the PDF export on a grid with images which works fine apart from the pdf file size which at the moment is over 25MB. We have run the optimizer in Acrobat and it can reduce the file down to less than 1MB with it still looking fine. I think the size issue is due to the images not being optimized I have tried the filter set to Flate with little change. We use a dynamic library to re-size images on the fly but I see that the pdf generation access the original files from the file system which would be quite large especially considering that there are lots of images and we are only showing them at 50px by 50px. Is there a way to intercept the pdf generation at the point where it is accessing the image files from the file system so that we can optimize the image at that point before it inserts it?

Thanks
Michael
Kostadin
Telerik team
 answered on 26 Jun 2014
4 answers
156 views
I normally use a grid along with a gridbinaryimagecolumn to display images from the database in my grid.

How do I go about doing the same thing in a RadTreeList?  I've tried with a template column and a radbinaryimage but can't get a way of storing the database driven image into a hidden column.

Any suggestions?

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 26 Jun 2014
1 answer
122 views
Hi!

I'm wondering if there is a possibility to place links in the shapes text or render the complete shape as a link.

Any help is very appreciated :)

Pascal
Slav
Telerik team
 answered on 26 Jun 2014
4 answers
597 views
What I have is a radgrid, wonderfully populated with data. On each row of this grid, I have three buttons (inherited from RadButtons). One of these buttons does not need any confirmation. Two of them, however, need confirmation before firing ItemCommand.

Part of the issue is a certain convoluted way the button is implemented, it requires me to use fireCommand from JavaScript. However, I need to obtain the row index to pass as a parameter to the fireCommand function.

How do I obtain the row index of the row containing my button for use in JavaScript?

01.function OnClientClickingDelete(sender, args) {
02.    var r = confirm('This action will delete the selected employee. Are you sure?');
03. 
04.    if (r == true) {
05.        var masterTable = $find('<%= rgEnrolled.ClientID %>').get_masterTableView();
06.        masterTable.fireCommand('Delete', ****RowIndex****);
07.    }
08.}
09. 
10.function OnClientClickingRestore(sender, args) {
11.    var r = confirm('This action will restore the selected employee. Are you sure?');
12. 
13.    if (r == true) {
14.        var masterTable = $find('<%= rgEnrolled.ClientID %>').get_masterTableView();
15.        masterTable.fireCommand('Restore', ****RowIndex****);
16.    }
17.}
Eyup
Telerik team
 answered on 26 Jun 2014
12 answers
981 views
Hi ,

I want to export the data to a excel file from the rad grid which have a hirarchical data.
I tried exporting in normal grid. It works fine. But i dont know how to do the same for hirarchical data.
If anybody knows the answer please let me know.

Thanks & Regards,
Pradeep K S
Daniel
Telerik team
 answered on 26 Jun 2014
8 answers
162 views
 void rdsch_AppointmentDataBound(object sender, SchedulerEventArgs e) 
        { 
               e.Appointment.AllowDelete = false
                e.Appointment.AllowEdit = false
         } 
If I set atrributes "AllowDelte" and "AllowEdit" on false, I can delete and edit appointment - why????
Plamen
Telerik team
 answered on 26 Jun 2014
1 answer
60 views
Hello,

I am using editor.get_html(true) in order to copy editor's content to a div, but when I only change  the text color, the color style isn't copied to a div.

I think the problem is that the color style is added to the body where it should wrap the text by span with color style.

*screenshot of the editor html is attached.

Scenario to reproduce:

1. mark the text
2. change the text color to red
3. use  editor.get_html(true) to copy the html content to a div
4. It can be notice the color red doesn't appear

Telerik version: 2014.1.225.40

Thanks,

Ianko
Telerik team
 answered on 26 Jun 2014
1 answer
124 views
Hi all,

During testing of the imageGallery control we had experienced a weird behavior.

Details about the testing environment:
a) Telerik.Web.UI.dll version: 2014.2.618.35
b) Windows 8.1 pro 64 bit
c) VS 2010
d) IIS 8.5

Control settings:
a) DisplayAreaMode: image
b) ThumbnailsAreaMode: Thumbnails
c) bind the datasource to the NeedDataSource event

Testing the control in a new project  is working as expected.
Using the control in an existing project it's render fine but when clicking on a thumbnail it doesn't change the selected picture; instead the webpage url changes
e.g. from www.test.com/test to www.test.com/test#
Furthermore, if there is a lot of content above the control and the control is at the bottom of the webpage after clicking one of the thumbnails is will scroll to the top of the page.

Maybe the thumbnails click events aren't registered correctly?

As it seems maybe isn't a Telerik problem, but any help would be appreciated. 

Chris
Top achievements
Rank 1
 answered on 26 Jun 2014
3 answers
78 views
Hello,

I have this code and it does what i say in the title, but to a MasterTableView.

ASPX
<telerik:RadSplitter runat="server" ID="RSDocumentosDespesa" Width="100%" Height="100%" BorderSize="2">
      <telerik:RadPane runat="Server" ID="LeftPaneDocDespesa" Scrolling="None">
          <telerik:RadSplitter runat="server" ID="rsDocDespesaDetail" Width="100%" Height="100%" Orientation="Horizontal">
              <telerik:RadPane runat="Server" ID="TopPaneDocDespesaDetail" Scrolling="Both" Height="30%">
                  <telerik:RadGrid runat="server" ID="rgDocumentos" ShowStatusBar="false" ShowFooter="false" AutoGenerateColumns="false" OnSelectedIndexChanged="rgDocumentos_SelectedIndexChanged" OnItemCommand="rgDocumentos_ItemCommand" OnItemDataBound="rgDocumentos_ItemDataBound"
                      AllowSorting="false" AllowMultiRowSelection="false" AllowPaging="false" OnItemCreated="rgDocumentos_OnItemCreated" OnNeedDataSource="rgDocumentos_NeedDataSource" OnPreRender="rgDocumentos_PreRender" OnColumnCreated="rgDocumentos_ColumnCreated">
                      <MasterTableView DataKeyNames="DDR_Tipo_Doc, DDR_Cod, DDR_Intervencao_Cirurgica, EST_Designacao">
                          <Columns>
                              <telerik:GridBoundColumn HeaderText="Nr Ordem" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="DDD_Num_Ordem" />
                              <telerik:GridBoundColumn HeaderText="Nr Doc." ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="DDD_Num_Doc" />
                              <telerik:GridBoundColumn HeaderText="Data" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="DDD_Data" />
                              <telerik:GridButtonColumn HeaderText="" HeaderStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ButtonType="ImageButton" ImageUrl="Images/Botao/cancel.gif" UniqueName="Imagem"></telerik:GridButtonColumn>
                              <telerik:GridBoundColumn HeaderText="Estado" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" DataField="EST_Designacao" UniqueName="Estado" />
                              <telerik:GridBoundColumn HeaderText="Tipo" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" DataField="Tipo_Doc_Desc" />
                              <telerik:GridBoundColumn HeaderText="Valor" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" DataField="DDD_Valor" />
                              <telerik:GridBoundColumn HeaderText="Valor Reembolsar" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" DataField="DDR_Valor_Reeembolso" />
                              <telerik:GridBoundColumn HeaderText="Valor Subsistema" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" DataField="DDR_Valor_Ref_Subsistema" />
...

C#
protected void rgDocumentos_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridDataItem)
       {
           GridDataItem item = (GridDataItem)e.Item;
           switch (item.GetDataKeyValue("EST_Designacao").ToString().ToLower())
           {
               case "para devolução":
                   item["Imagem"].Enabled = false;
                   item["Devolver"].Enabled = false;
                   (item["Imagem"].Controls[0] as ImageButton).ImageUrl = "Images/para_devolucao.gif";
                   break;
               case "análise concluída":
                   item["Imagem"].Enabled = false;
                   item["Processar"].Enabled = false;
                   (item["Imagem"].Controls[0] as ImageButton).ImageUrl = "Images/analise_concluida.gif";
                   break;
         ...


But now i want to do it in one DetailTable inside, and now in this ASPX:
                   <telerik:RadGrid ID="rgProcessos" runat="server" ShowStatusBar="true" ShowFooter="false" CssClass="RadGrid"
                        AutoGenerateColumns="false" AllowSorting="true" AllowMultiRowSelection="false"
                        AllowPaging="true" OnDetailTableDataBind="rgProcessos_DetailTableDataBind"
                        OnNeedDataSource="rgProcessos_NeedDataSource" OnItemCommand="rgProcessos_ItemCommand"
                        OnItemCreated="rgProcessos_ItemCreated" OnColumnCreated="rgProcessos_ColumnCreated"
                        AllowFilteringByColumn="true"
                        PageSize="100" OnPreRender="rgProcessos_PreRender">
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Position="Bottom" PagerTextFormat="páginas: {4} | página {0} de {1}, registo {2} a {3} de {5}" />
                        <MasterTableView DataKeyNames="PRC_Cod, Alerta" Name="Processos">
 
                            <DetailTables>
                                <telerik:GridTableView DataKeyNames="ADI_Cod" Name="Aditamentos" Width="100%" ShowFooter="false" AllowFilteringByColumn="false" AllowPaging="false">
                                    <DetailTables>
                                        <telerik:GridTableView DataKeyNames="EST_Designacao" Name="Documentos" Width="100%" AllowFilteringByColumn="false" AllowPaging="false">
                                            <Columns>
                                                <telerik:GridBoundColumn HeaderText="Nr Ordem" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="DDD_Num_Ordem" />
                                                <telerik:GridBoundColumn HeaderText="Nr Documento" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="DDD_Num_Doc" />
                                                <telerik:GridBoundColumn HeaderText="Data" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="DDD_Data" />
<%--                                                <telerik:GridButtonColumn HeaderText="" HeaderStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ButtonType="ImageButton" ImageUrl="Images/Botao/cancel.gif" UniqueName="Imagem"></telerik:GridButtonColumn>--%>
                                                <telerik:GridBoundColumn HeaderText="Estado" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" DataField="EST_Designacao" UniqueName="Estado" />

Can you please help me how to do it? It is doing the same thing but to the GridButtonColumn in the inner detail table instead of doing it to the GridButtonColumn in the MasterTableView.

Thanks,
Mário
Mário
Top achievements
Rank 1
 answered on 26 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?