Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
169 views
Hi, I am new to designing.My scenario is I have to show .doc files in radrotator  in thumb scrolling mode(both left and right).Actually my page is containing three containers(i.e RadPanels).I have a radtreeview on leftside to the page in left_radpanel and radrotator in Right_Bottom_Panel.
1) while page loading this treeview should bind with table column values(for example ABC,DEF,GHK......).
2) After that when I click "ABC" node it has to show the .doc files(only .doc files in that particular "ABC" folder) in radrotator.Here total page should not be submited.
3) Now when I click any one of the .doc file in that radrotator it should be shown as bigger(i.e it should be open in readable mode)  in the Right_Top_Panel. In this panel I have to facilitate ZoomBars so that client can do zoomout and zoom in actions dynamically).By default it should show first .doc file in that "ABC" folder.

So can u please tell me how to do this task.
I am using vs 2010 ultimate,Operating System(Widows server2008,windows7),C#,Telerik.Web.UI_2010_2_929_Trial
Thanks in advance.
Fiko
Telerik team
 answered on 20 Oct 2010
2 answers
248 views
Hello,

I'm trying to hide a RadTab on the server-side and show/hide it on client-side. 

I tried [TabObject].Style["display"] = "none"  on the server side but I can't reach that "display:none" attribute from anywhere in the client-side.

On the client-side, I tried [TabObj].get_element().style.display = "", [TabObj].set_visible(true), none of them worked.

Waiting for your help.

Thanks in advance.

Orhan
orhan
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
120 views
ExporttoPDF is a great feature of Radeditor, however, I want to save the radeditor content as PDF and attach to mail from code behind, how do i be able to get stream of the pdf content?
Rumen
Telerik team
 answered on 20 Oct 2010
1 answer
119 views
I have a user control that is loaded dynamically inside an AjaxPanel which sits inside an rad slider.
The page slider of the radgrid is appearing our side the rad grid.

Also the numeric paging doesn't work properly. Numeric paging appears at the right location.
I have page count of 20. says I have 1000 rows.
After 1- 10 I have "..." When I click this, 11 shows up fine, but when I click on 12, the page returns to page 3. Page 1 through 10 works fine.

Please help.
Not sure what is the bug, if pages 1 thru 10 work, why doesn't page 12 work. Same dataset is used.

Thanks,
Sayak
Dimo
Telerik team
 answered on 20 Oct 2010
1 answer
264 views
Hi:

I have a nested table as part of a radgrid. The user is able to expand the nested table, then add, update and delete using a popup form. I am updating information for the master DB that shows in radgrid1 after each change (totals). When I close the nested table and return to displaying the main grid, the totals do not refresh (even though they are updated in the database). I have tried adding RadGrid1.MasterTableView.Rebind() to the itemupdated, itemdeleted and iteminserted commands, but it is not working for me. Would it make sense to use javascript to force a rebind on radgrid1 when the user collapses the nested table? If so, how can I call a javascript function at the time the nested grid is collapsed? I think this function would work if I can execute it at the right time:

function NestedTableCollapsing(sender, args) {
    var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
    masterTable.rebind();
}

Thanks, Dan
Martin
Telerik team
 answered on 20 Oct 2010
4 answers
62 views
Hi,

I want to change the row back color of the currently edited row.
I tried changing the editeditemstyle backcolor property. but it was applied partially. (pls refer attachment)
i want it to apply it to the whole row. Any help.

Here is my code.
<telerik:RadGrid Skin=Vista ShowGroupPanel="True" AllowFilteringByColumn="true"
    AutoGenerateColumns="false" AllowPaging="true" PageSize="20" AllowSorting="true" ID="grid1" runat="server" ClientSettings-Resizing-AllowColumnResize="true" OnDeleteCommand="RadGrid1_DeleteCommand">
    <GroupingSettings CaseSensitive="false" />
    <EditItemStyle BackColor=Green />
    <MasterTableView GroupLoadMode="Server" DataKeyNames="service_provider_id" ClientDataKeyNames="service_provider_id,sp_email_og,sp_org_name">
        <Columns>
.
.
.
.
        </Columns>
        <EditFormSettings EditFormType="WebUserControl" UserControlName="EditProfileDetail.ascx">
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
Aswin S
Top achievements
Rank 1
 answered on 20 Oct 2010
3 answers
387 views
Urgent Help please,I am using databable as datasource,but RadGrid show "No records to display".
<
telerik:RadGrid ID="rgReportList" runat="server"  OnNeedDataSource="rgReportList_NeedDataSource" 
                    AllowSorting="True" AllowPaging="True"   ShowHeader="true" > 
                </telerik:RadGrid> 

 protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!Page.IsPostBack) 
        { 
            rdpRequestDateStart.SelectedDate = DateTime.Now.AddMonths(-1); 
            rdpRequestDateEnd.SelectedDate = DateTime.Now; 
            rgReportList.DataSource = CreateDataSource("日期""按天统计", DateTime.Parse(DateTime.Now.Date.AddDays(-7).ToShortDateString()), DateTime.Parse(DateTime.Now.ToShortDateString())); 
            rgReportList.MasterTableView.DataBind(); 
            //rgReportList.MasterTableView.Rebind(); 
            //rgReportList.MasterTableView.HierarchyDefaultExpanded = true; 
            rgReportList.DataBind(); 
 
        } 
    } 



protected
 void rgReportList_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
    { 
        rgReportList.DataSource = CreateDataSource("日期", ddltype.Value, (DateTime)rdpRequestDateStart.SelectedDate, (DateTime)rdpRequestDateEnd.SelectedDate); 
    } 
  private DataTable CreateDataSource(String categroy, String statisticType, DateTime startDay, DateTime endDay) 
    { 
        //DataSet dataset = new DataSet(); 
        DataTable dataTable = new DataTable(); 
        dataTable.TableName = "ReportByDate"
        dataTable.Columns.Add("时间"); 
        dataTable.Columns.Add("完成事件数"); 
        dataTable.Columns.Add("工时"); 
        dataTable.Columns.Add("处理中事件"); 
 
        //dataset.Tables.Add(dataTable); 
        for (DateTime dt =startDay; dt <= endDay; dt=dt.AddDays(1)) 
        { 
            UserRequestInfoCollection urList = UserRequest.List("", dt, dt.AddDays(1)); 
            Int32 totalThingsByEachDate = 0; 
            Int32 tsTotalWorkHours = 0; 
            Int32 totalNotFinishedThings = 0; 
            if (urList.Count!=0) 
            { 
                foreach (UserRequestInfo uri in urList) 
                { 
                    totalThingsByEachDate++; 
                    //tsTotalWorkHours+= ((TimeSpan)(uri.ExpectTime - uri.RequestTime)).Hours; 
                    if (!(Boolean)uri.IsClose) 
                    { 
                        totalNotFinishedThings++; 
                    } 
                 
                } 
           
             
            } 
            dataTable.Rows.Add(new String[] { dt.ToString(), totalThingsByEachDate.ToString(), tsTotalWorkHours.ToString(), totalNotFinishedThings.ToString() }); 
 
        } 
 
        return dataTable; 
    } 

Dimo
Telerik team
 answered on 20 Oct 2010
1 answer
99 views
When I use the javascript below on a regular page without panel bars, the code below works just fine.

var picker = $find("<%= datDueDate.ClientID %>");

picker.set_enabled(false);


However, when I use this code on a datepicker nested in radpanelbars, it does not work.  How can I enable/disable a datepicker that is nested in radpanelbars?

Thank you in advance.

Josh
Princy
Top achievements
Rank 2
 answered on 20 Oct 2010
5 answers
906 views
Is there a way to get a RadGrid to postback updates when a combo box inside the grid is changed -- preferably without leaving edit mode in the process?
Princy
Top achievements
Rank 2
 answered on 20 Oct 2010
1 answer
119 views
Radgrid don't bind after on need datasource. What do I do? 
We are not allowed to databind after on need data source.\
Any suggestions? Because my controls needs to be bind to the datasource and now its causing an error because
I put the method that fills my control with data in the onNeedDataSource and as I have said it's not Binding.
Thanks
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 20 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?