Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
132 views
Hi All,

I've seen that you can centre a formtemplate in a RadGrid (http://www.telerik.com/help/aspnet-ajax/grid-center-popup-edit-form.html
) but how do you do it with a RadTreeList?  

There doesn't appear to be the OnPopUpShowing event....

Any pointers?

Best Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
112 views
I have been asked to style a number of charts by marking up the ASP.Net HTML.
I have been unable to find a complete reference to the chart control and I'm having to guess what the syntax is. This is both irritating and time consuming. Is there a comprehensive reference for the declarative approach?

Thanks
James Campbell
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
83 views
Hi,
I am using rad multipage
<telerik:RadMultiPage ID="RadMultiPage" runat="server" 
                           RenderSelectedPageOnly="true" SelectedIndex="4">
                           <telerik:RadPageView ID="viewer1" runat="server">
                                  <uc1:abcID="abc" runat="server" />
                           </telerik:RadPageView>
                           <telerik:RadPageView ID="viewer2" runat="server">
                               <uc2:xyz ID="xyz" runat="server" />
                           </telerik:RadPageView>
                           <telerik:RadPageView ID="viewer3" runat="server">
                               <uc3:uvwID="uvw" runat="server" />
                           </telerik:RadPageView>
                            <telerik:RadPageView ID="viewer4" runat="server"
                           <uc4:defID="def" runat="server" />
                           </telerik:RadPageView>
                       </telerik:RadMultiPage>

as shown in the code above. I have a MOSS 2007 peopleeditor control in the usercontrol uc1 and usercontrol uc4. the people editor is working fine for the radpageview "viewer1" but it is throwing javascript error with "viewer4" saying "Object Expected". what i think about this is the problem is that somehow only one people editor can exist in this fashion. pls help me out with this.

Thanks in advance.
Keep Coding
Dimitar Terziev
Telerik team
 answered on 12 Dec 2011
1 answer
92 views
I have a problem with Rad Chart. My chart shows properly if i dont use following line of code
RadChart1.PlotArea.XAxis.DataLabelsColumn = "BranchName";

Consider if have used following data table
private DataTable GeneratedData()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("Asset");
            dt.Columns.Add("Liability");
            dt.Columns.Add("Income");
            dt.Columns.Add("BranchId");
            dt.Columns.Add("BranchName");
 
            DataRow dr = dt.NewRow();
            dr[0] = "052";
            dr[1] = "-25";
            dr[2] = "45";
            dr[3] = "1001";
            dr[4] = "Corporate";
            dt.Rows.Add(dr);
            dr = dt.NewRow();
 
            dr[0] = "161";
            dr[1] = "29";
            dr[2] = "35";
            dr[3] = "1002";
            dr[4] = "IDB";
            dt.Rows.Add(dr);
 
            return dt;
        }

And i used following code to generate rad chart
RadChart1.DataSource = GeneratedData();
            RadChart1.DataManager.ValuesYColumns = new string[3] { "Asset", "Liability", "Income" };
            RadChart1.DataManager.ValuesXColumn = "BranchId";
            RadChart1.PlotArea.XAxis.DataLabelsColumn = "BranchName";
            RadChart1.PlotArea.XAxis.AddRange(1001,1002,1);
            RadChart1.PlotArea.XAxis.AutoScale = false;
 
            RadChart1.DataBind();

If I dont define DatalabelsColumn then chart shows correctly. but I want to show Lable from BranchName column. How i can do this. Need your help.


Evgenia
Telerik team
 answered on 12 Dec 2011
7 answers
132 views
Hi,

In my application, I am building the radgrid with custom filtering dynamically. I am using GridDateTimeColumn for data datatype. The grid puts in RadDateInput control as the filter for date. In RadGrid_ItemCreated event I am trying to set Maxlength and taborder to this control and it does not work. I am able to set for GridNumericColumn(RadNumericTextBox control) and GridBoundColumn(TextBox control).Help needed.

Thanks,
Raji
Maria Ilieva
Telerik team
 answered on 12 Dec 2011
1 answer
76 views
How to insert,edit and update Appointments in RadScheduler.
Iam using visual studio 2008.
sqlserver 2005.
Plamen
Telerik team
 answered on 12 Dec 2011
1 answer
111 views
Hello,
I used RadTelerik to show an grid in grid, here is my code in aspx file:

<telerik:RadGrid runat="server" ID="gridModulesList" BorderStyle="None" BackColor="Transparent"
            BorderColor="Transparent" AutoGenerateColumns="false" ShowHeader="false" Width="100%"
            AutoPostBack="true"  OnItemCommand="gridModulesList_ItemCommand">    
       
            <MasterTableView DataKeyNames="ID">
                <NestedViewTemplate>
                    <asp:Panel runat="server" ID="PnModuleDetail">
                    <telerik:RadGrid ID="gridModuleDetail" runat="server" AutoGenerateColumns="false" ShowHeader="false"  BorderWidth="0" Width="100%"
                            BackColor="White" OnItemDataBound="gridModuleDetail_ItemDataBound" OnItemCommand="gridModuleDetail_ItemCommand"
                            OnSelectedIndexChanged="gridModuleDetail_SelectedIndexChanged" OnNeedDataSource="gridModuleDetail_NeedDataSource"> 

                          <ClientSettings EnablePostBackOnRowClick="True" EnableRowHoverStyle="true" EnableAlternatingItems="true">
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <MasterTableView >
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            </RowIndicatorColumn>
                            <Columns>
                            <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
                                </telerik:GridBoundColumn>                                
                            <telerik:GridTemplateColumn UniqueName="Name">
                                <ItemTemplate>                                    
                                    <asp:Label runat="server" ID="lblName"></asp:Label>
                                </ItemTemplate>                                
                            </telerik:GridTemplateColumn>                                                                
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                    </asp:Panel>
                </NestedViewTemplate>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" UniqueName="Name" Visible="true">
                    </telerik:GridBoundColumn>                    
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>


The problem is:
When I click on a item=> this item is selected and it's bold (item1)
I continue click on the other item item2=> item2 is selected and it's bold and item1 is still bold
Expected:
When I click on item2=> item1 is not selected and it's not BOLD


Pavlina
Telerik team
 answered on 12 Dec 2011
1 answer
98 views
When I run the code and put the Grid into edit mode  the dropdown column is populated with
seven 'System.Data.DataRowView' rows (which is the number of rows in the Title database table)
I cannot see why the values are not being displayed - instead I am getting the object name.
can anyone help?

This my code on the ItemdataBound Event:

GridEditableItem lEditItem = e.Item
as GridDataItem;
 GridEditManager lEditManager = lEditItem.EditManager;
 GridDropDownColumnEditor lTitle = (GridDropDownListColumnEditor)(lEditManager.GetColumnEditor("ddlTitle"));
DataTable dtTitle = ToDataTable2.ToDataTable(title);  
 lTitle.DataSource=dtTitle;
 lTitle.DataValueField = dtTitle.Columns[0].ToString(); 
 lTitle.DataTextField = dtTitle.Columns[1].ToString(); 
 lTitle.DataBind();
Pavlina
Telerik team
 answered on 12 Dec 2011
2 answers
179 views
Below is the code i'm using and I'm have a few questions regarding whats happening.

1) The file never actually saves, i click submit and it appears to work but the file never saves to my target directory.  How do I resolve this.
2) When i try a second time to save a file i get directory access is denied, not sure what.
3) when I use a HTML5 browser and the drag and drop functionality is present, i'm able to save to a test directory C:\test with whatever file I choose, however, when I use RadUpload (non HTML5) i keep getting physical error paths messages.  How do I resolve this?  I need to be able to save to a specific folder.
var $ = $telerik.$;
     function pageLoad() {
         if (!Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {
             $(".wrapper").replaceWith(
             $(""));
         }
     }
 
     function added(sender, args) {
         if (Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {
 
             $(".ruDropZone").html("<br /><div align=\"center\"><img src=\"images/toolboxdragdrop.jpg\"></div>");
             $(".nonHTML5").replaceWith(
             $(""));
         }
     }
      
 </script>
 
     <div class="wrapper">
         <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
             OnClientAdded="added" OnFileUploaded="RadAsyncUpload1_FileUploaded">
         </telerik:RadAsyncUpload>
         <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" />
     </div>
     <div class="nonHTML5" style="position:relative;">
         <table>
             <tr>
                 <td id="controlContainer">
                     <telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="5"
                         OverwriteExistingFiles="true" OnFileUploaded="RadAsyncUpload1_FileUploaded" />
                     <telerik:RadProgressArea ID="progressArea1" runat="server" />
                 </td>
                 <td>
                     <div class="smallModule">
                         <div class="rc1">
                             <div class="rc2">
                                 <div class="rc3" style="width:240px">
                                     <asp:Label ID="labelNoResults" runat="server" Visible="True">No uploaded files yet</asp:Label>
                                     <asp:Repeater ID="repeaterResults" runat="server" Visible="False">
                                         <HeaderTemplate>
                                             <div class="title">
                                                 Uploaded files in the target folder:</div>
                                         </HeaderTemplate>
                                         <ItemTemplate>
                                     <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                                     <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                                     <br />
                                         </ItemTemplate>
                                     </asp:Repeater>
                                 </div>
                             </div>
                         </div>
                     </div>
                 </td>
             </tr>
         </table>
     </div>
     <asp:Button ID="buttonSubmit" runat="server" CssClass="RadUploadSubmit"
         OnClick="buttonSubmit_Click" text="Submit" />
   </td>

.aspx.cs
public void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
    {
        RadAsyncUpload1.TargetFolder = MechanicToolboxClass.ToolBoxSaveToFolder();
    }
 
    protected void buttonSubmit_Click(object sender, System.EventArgs e)
    {
         
        if (RadUpload1.UploadedFiles.Count > 0)
        {
            TargetFolderUpload = MechanicToolboxClass.ToolBoxSaveToFolder();
            RadUpload1.TargetFolder = TargetFolderUpload;
            repeaterResults.DataSource = RadUpload1.UploadedFiles;
            repeaterResults.DataBind();
            labelNoResults.Visible = false;
            repeaterResults.Visible = true;
        }
        else
        {
            labelNoResults.Visible = true;
            repeaterResults.Visible = false;
        }
         
    }

Bozhidar
Telerik team
 answered on 12 Dec 2011
1 answer
115 views

hello:
There are   Chinese characters in RadEditor control,  when  choose the export to pdf . the pdf  is generated but the Chinese characters are  shown abnormal .

    eg: 
So, instead of what I would expect:
"中文12"

I see this:
" ####12" 
is there a way to fix this?

Shinu
Top achievements
Rank 2
 answered on 12 Dec 2011
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?