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

I have the scenario like, i have to use double value for MinimumValue & MaximumValue for the slider.
But this MinimumValue & MaximumValue  properties or interger.
It is there is any option to achieve  my requirement?
awaiting for your reply.

Thanks,
Kumar
THANGA KUMAR
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
61 views
Hi:
The mastertableview in RadGrid is getting repeated as many number of times as the number of rows in the DataTable from the Database. Please find the screen shot in the attachment and help me on this issue.
   

<radG:RadGrid ID="grd" runat="server" AllowMultiRowSelection="false" HeaderStyle-Height="0"

        AllowPaging="false"  Width="100%" AllowSorting="false" AutoGenerateColumns="False"

        BorderColor="LightBlue" BorderWidth="0px" AllowMultiRowEdit="false" EnableAJAX="True"

        GridLines="None" Skin="SkeltaGrid" RadControlsDir="<%$ ReplaceTemplateExpn:telerik/radcontrols/%>"

        OnNeedDataSource="grd_NeedDataSource" OnDetailTableDataBind="grd_DetailTableDataBind" OnItemCreated="grd_ItemCreated">       

        <mastertableview name="Base" nodetailrecordstext="No records found " nomasterrecordstext="No records found"

            autogeneratecolumns="false" datasourceid="" datakeynames=""

            hierarchydefaultexpanded="false" showheader="False" >

            <Columns>

                <radG:GridTemplateColumn UniqueName="Title">

                    <ItemTemplate>

                        <asp:Label ID="Label6" runat="server" Text="Between Dates &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;"></asp:Label>

                        <asp:Label ID="FromDate" runat="server" Font-Bold="true" Text='<%# fromDateDtp.SelectedDate.Value.ToString("dd/MMM/yyyy") %>'></asp:Label>

                        <asp:Label ID="Label9" runat="server" Text="-"></asp:Label>

                        <asp:Label ID="ToDate" runat="server" Font-Bold="true" Text='<%# toDateDtp.SelectedDate.Value.ToString("dd/MMM/yyyy") %>'></asp:Label>                       

                        <br />

                        <asp:Label ID="Label10" runat="server" Text="Generated On &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;"></asp:Label>

                        <asp:Label ID="Label11" runat="server" Text='<%# DateTime.Now.ToString("dd/MMM/yyyy hh:mm tt") %>'></asp:Label>

                    </ItemTemplate>

                </radG:GridTemplateColumn>

            </Columns>

            <DetailTables>

                <radG:GridTableView Name="Agents" DataKeyNames="" AllowPaging="false" AllowMultiColumnSorting="True"

                    Width="100%" DataSourceID="" TabIndex="0" AllowAutomaticUpdates="true" HierarchyLoadMode="ServerOnDemand">                   

                    <Columns>

                        <radG:GridTemplateColumn UniqueName="RequestDate">

                            <HeaderTemplate>

                                Request Date

                            </HeaderTemplate>

                            <ItemTemplate>

                                <label>

                                    <%# Eval("Request Date")%>

                                </label>

                            </ItemTemplate>

                            <HeaderStyle HorizontalAlign="Center" Width="15%" />

                            <ItemStyle HorizontalAlign="Center" Width="15%" />

                        </radG:GridTemplateColumn>

                        <radG:GridTemplateColumn UniqueName="OpeningBalance">

                            <HeaderTemplate>

                                Opening Balance

                            </HeaderTemplate>

                            <ItemTemplate>

                                <label>

                                    <%# Eval("Opening Balance")%>

                                </label>

                            </ItemTemplate>

                            <HeaderStyle HorizontalAlign="Center" Width="15%" />

                            <ItemStyle HorizontalAlign="Center" Width="15%" />

                        </radG:GridTemplateColumn>

                        <radG:GridTemplateColumn UniqueName="UploadInflow">

                            <HeaderTemplate>

                                Upload Inflow

                            </HeaderTemplate>

                            <ItemTemplate>

                                <label>

                                    <%# Eval("Upload Inflow")%>

                                </label>

                            </ItemTemplate>

                            <HeaderStyle HorizontalAlign="Center" Width="15%" />

                            <ItemStyle HorizontalAlign="Center" Width="15%" />

                        </radG:GridTemplateColumn>

                        <radG:GridTemplateColumn UniqueName="InflowError">

                            <HeaderTemplate>

                                Inflow - Error Report

                            </HeaderTemplate>

                            <ItemTemplate>

                                <label>

                                    <%# Eval("Inflow Error Report")%>

                                </label>

                            </ItemTemplate>

                            <HeaderStyle HorizontalAlign="Center" Width="20%" />

                            <ItemStyle HorizontalAlign="Center" Width="20%" />

                        </radG:GridTemplateColumn>

                        <radG:GridTemplateColumn UniqueName="ClosedCases">

                            <HeaderTemplate>

                                Closed Cases                               

                            </HeaderTemplate>

                            <ItemTemplate>

                                <label>

                                    <%# Eval("Closed Cases")%>

                                </label>

                            </ItemTemplate>

                            <HeaderStyle HorizontalAlign="Center" Width="15%" />

                            <ItemStyle HorizontalAlign="Center" Width="15%" />

                        </radG:GridTemplateColumn>

                        <radG:GridTemplateColumn UniqueName="CarryForwardCases">

                            <HeaderTemplate>

                                Carry Forward Cases

                            </HeaderTemplate>

                            <ItemTemplate>

                                <label>

                                    <%# Eval("Carry Forward Cases")%>

                                </label>

                            </ItemTemplate>

                            <HeaderStyle HorizontalAlign="Center" Width="15%" />

                            <ItemStyle HorizontalAlign="Center" Width="15%" />

                        </radG:GridTemplateColumn>

                    </Columns>

                </radG:GridTableView>

            </DetailTables>

        </mastertableview>

        <clientsettings>

            <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" />

        </clientsettings>

        <exportsettings exportonlydata="true" filename="Summary Report" ignorepaging="true"

            openinnewwindow="true">

        </exportsettings>

    </radG:RadGrid>

 

 

 

protected void grd_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e) {

        this.Impersonate(InsuranceProcessLib.SPSettings);

        try {

            DataTable dt = InsuranceProcessLib.GetSummaryReport(Convert.ToDateTime(fromDateDtp.SelectedDate.Value), Convert.ToDateTime(toDateDtp.SelectedDate.Value));

            //grd.MasterTableView.HierarchyDefaultExpanded = true;

            grd.DataSource = dt;           

        } finally {

            this.UndoImpersonation();

        }

    }

 

    protected void grd_DetailTableDataBind(object source, Telerik.WebControls.GridDetailTableDataBindEventArgs e) {

        if (_DataViews.Contains(e.DetailTableView)) return;

        _DataViews.Add(e.DetailTableView);

        e.DetailTableView.DataSource = InsuranceProcessLib.GetSummaryReport(Convert.ToDateTime(fromDateDtp.SelectedDate.Value), Convert.ToDateTime(toDateDtp.SelectedDate.Value));

        e.DetailTableView.DataBind();

        _DataViews.Remove(e.DetailTableView);

    }

 

    protected void grd_ItemCreated(object source, Telerik.WebControls.GridItemEventArgs e) {

        if (e.Item.OwnerTableView.Name.Equals("Base")) {

            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) {

                e.Item.BackColor = System.Drawing.Color.LightCyan;

            }

        }

    }   

 

    protected void btnGo_Click(object sender, EventArgs e) {

        grd.Rebind();

        exportToExcelImgBtn.Visible = true;       

        excelExportLbl.Visible = true;       

    }

Daniel
Telerik team
 answered on 09 Dec 2009
19 answers
560 views
Hi,

Attached is a screenshot of a confirm dialog in Q2 and Q3. The style for the cancel button is missing?

eyal
CSurieux
Top achievements
Rank 2
 answered on 09 Dec 2009
5 answers
328 views
We need a FileBrowserContentProvider Sample.

I can't find a documentation about FileExplorer.

The demo is very poor :(

Please help.

Thanks.

Fiko
Telerik team
 answered on 09 Dec 2009
1 answer
432 views
Hi All,

I really need to know how to load the treeview on the client using JSON. All I've seen is using an XML file and this will not fit the bill for my needs. It would seem rather wastefull to take a JSON string and create an XML file out of it just to load the treeview on the client side. Any assistnace, code, snips or links to other articles would be terrific as  I need to figure this out asap.

With regards and advance thanks

Craig T
Veselin Vasilev
Telerik team
 answered on 09 Dec 2009
0 answers
116 views
Hi All,

I am implementing the Rad Scheduler Control by creating the Appointments through Drag and Drop feature.I implemented a Advance Edit Form where i took two comboboxes with tasks and the BreakTime...
and on the top of the scheduler i took 3 buttons TaskView,BreakView and Shift(appointment)View.
so when ever i click on the button the subject of the appointement should be updated based on the selected one.(say if i clicked on the task view ,the subject field should contain the tasks assigned for that appointment).I tried it writting the code inside the appointment -created event but i am getting the error as "Collection was modified; enumeration may not execute " I dont know the reason why i am gettiing this..
Here is the code i implemented..

protected

 

void RSchedulerTemplate_OnAppointmentCreated(object sender, AppointmentCreatedEventArgs e)
{  

 

ViewScheduler(

string ViewType);
}
private
void ViewScheduler(string ViewType)
{

 

for (int i = 0; i < DRMSession.DTScheduler.Rows.Count; i++)
{

 

ShiftDetails sDetails = GetShiftData(DRMSession.DTScheduler.Rows[i]["schedulerid"].ToString());  

 

 

 

 

// assign startOffSet hours and minutes 

 

TimeSpan startTime = TimeSpan.FromTicks(sDetails.startOffset);

 

TimeSpan endTime = TimeSpan.FromTicks(sDetails.Duration);

 

TimeSpan startOffSet = new TimeSpan(startTime.Hours, startTime.Minutes, 0);

 

DateTime startOffSetDate = new DateTime(startOffSet.Ticks);

 

// assign duration hours and minutes  

 

 

TimeSpan duration = new TimeSpan(endTime.Hours, endTime.Minutes, 0);

 

DateTime durationDate = new DateTime(duration.Ticks);

 

// startOffSet and duration formatting result

 

string startOffSetResult = startOffSetDate.ToString("hh:mm tt");

 

string durationResult = durationDate.ToString("hh:mm tt");

 

string jobGroupName = string.Empty;

 

foreach (JobGroup jGroup in JobGroups)
{

 

 

if (jGroup.Id == sDetails.jobGroupId) {

jobGroupName = jGroup.Name;

 

break; }

 

}

 

switch (ViewType) {

 

case "Shift":

 

 {

 

DRMSession.DTScheduler.Rows[i]["name"] = jobGroupName + " # " + startOffSetResult + " - " + durationResult;

 

 }

 

break;

 

 

case "Task":

 

 { 

 

if (sDetails.LstTaskIds.Count > 0)  

{

 

string tasksList = string.Empty;

 

 

foreach (Task tsk in Tasks)

 

 {

 

foreach (int taskId in sDetails.LstTaskIds)

 

 {

 

if (tsk.Id == taskId)

 

 {

tasksList +=

Environment.NewLine + tsk.Title;

 

 }

}

}

 

DRMSession.DTScheduler.Rows[i]["name"] = jobGroupName + Environment.NewLine + " # " + startOffSetResult + " - " + durationResult + Environment.NewLine + tasksList;

 

 }

}

 

break;

 

 

case "Break":

 

 {

 

if (sDetails.LstBreakIds.Count > 0)

 

 {

 

string breakTypes = string.Empty;

 

 

foreach (BreakType bType in BreakType)

 

 {

 

for (int Cnt = 0; Cnt < sDetails.LstBreakIds.Count; Cnt++)

 

 {

 

if (sDetails.LstBreakIds[Cnt] == bType.Id)

 

 {

breakTypes +=

Environment.NewLine + bType.Type + "-" + DateTime.Parse(sDetails.LstBreakTime[Cnt].ToString()).TimeOfDay;

 

}

}

}

 

DRMSession.DTScheduler.Rows[i]["name"] = jobGroupName + Environment.NewLine + " # " + startOffSetResult + " - " + durationResult + Environment.NewLine + breakTypes;

 

 }

}

 

break;

 

 }

}

RSchedulerTemplate.DataSource =

DRMSession.DTScheduler;  

 

RSchedulerTemplate.Rebind();

}

 

protected void btnShiftView_Click(object sender, EventArgs e)

 

 {

ViewType =

"Shift";  

 

ViewScheduler(ViewType);

}

 

protected void btnTaskView_Click(object sender, EventArgs e)

 {

ViewType =

"Task";

 

 ViewScheduler(ViewType);

}

 

protected void btnBreakView_Click(object sender, EventArgs e)

 

 {

ViewType =

"Break";

 

 ViewScheduler(ViewType);

}
This is a crucial requirement. Appreciate any help in this regard.

 

 

 

chaitanya elluri
Top achievements
Rank 1
 asked on 09 Dec 2009
2 answers
250 views
hi

How do i pass session variables in code behind with radwindows:

RadAjaxManager1.ResponseScripts.Add("openRadWindow('Session("consultationid")')")

I am not able to get it right? thanks

 

L
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
105 views
hi

I will layout my step by step of what i did so that you can reproduce the Telerik Undefinedand sys undefined error

1. I did my work in Windows 7. It is installed with VS2008 and Telerik 2009 Q1 and SQL Express 2008
2. Many of my page consist of RadGrid and 1 page Rad Scheduler. And all pages ajax using RadAjaxProxy manager
3. The master page has a Rad Windows Manager and Rad Ajax Manager and using RadScriptManager and Rad Menu
4. I test my page on my local machine and working perfectly fine.
5. I compiled using single page assemblies and also tested the compiled version locally on my windows 7 machine and it works fine.
6. I installed a Windows Server 2008 R2 64 Web Edition on another machine and SQL Express 2008
7. I enabled\installed the Framework 3.5.1 features in Windows 2008.
8. I copied the compiled version folder from my local machine to Windows Server 2008  inetpub - wwwroot- folder.
9. I convert the compiled version to an application in Windows Server 2008.
10. I type http://localhost/compiledversion/login.aspx on Win Server 2008 and it display the page and i am able to login using a demo DB username and password.
11. The moment i try to view a schedule page, it just gave me Telerik Undefined and sys Undefined.
12. I view a page with Radgrid, same thing, it just gave me Telerik Undefined and sys Undefined.

Those page without any radc controls seem ok.

I have gone most of your forums but it didn't specifically mention anything about Windows Server 2008 environment.

Please help me. Thanks
Pavel
Telerik team
 answered on 09 Dec 2009
1 answer
284 views
Hi,

I have added a captcha to a login control and then tried to apply the security in the web.config.
<authorization > 
            <deny users="?" /> 
            <allow users="?" /> 
        </authorization> 
    </system.web> 
    <location path="Bin"
        <system.web> 
            <authorization> 
                <allow users ="*" /> 
            </authorization> 
        </system.web> 
    </location> 
    <location path="login.aspx"
        <system.web> 
            <authorization> 
                <allow users ="*" /> 
            </authorization> 
        </system.web> 
    </location> 
    <location path="CSS"
        <system.web> 
            <authorization> 
                <allow users ="*" /> 
            </authorization> 
        </system.web> 
    </location> 
    <location path="Images"
        <system.web> 
            <authorization> 
                <allow users ="*" /> 
            </authorization> 
        </system.web> 
    </location> 
 and also added the form in the authentication tag. What happens is when loading the login page is that the captcha image isnot shown, when i remove the first authorization tag, and reload the login page the image appear. It seems that applying the security this way has denied access to the image.

So what should I change to enable the images to be shown again?

Best regards,
Sameh Awad
Pero
Telerik team
 answered on 09 Dec 2009
3 answers
293 views
Hi,

I am dynamically creating linkbutton in the item data bound event of the rad grid. i have added click event for link button. but the thing is the Click event not at all firing when i click the linkbutton. But the dynamic buttons are get vanished after the click. Pls give me the solution. its very urgent. my sample code is

 

foreach (MemberDetail memberDetail in newShopper.MemberDetails)

 

{

linkMemberName =

new LinkButton();

 

tdMember =

new HtmlTableCell();

 

tdEditMember =

new HtmlTableCell();

 

trowMember =

new HtmlTableRow();

 

linkMemberName.ID =

"id1";

 

linkMemberName.Text = memberDetail.FirstName;

linkMemberName.CommandArgument = memberDetail.ID.ToString();

linkMemberName.Click +=

new EventHandler(linkMemberName_Click);

 

tdMember.Controls.Add(linkMemberName); 

 

tblMemberDetails.Controls.Add(trowMember);

}



 

void linkMemberName_Click(object sender, EventArgs e)

 

{

 

throw new NotImplementedException();

 

}


Thanks,
Jeevitha 
jeevitha
Top achievements
Rank 1
 answered on 09 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?