Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
145 views
Well, I have an EditTemplate that I bound some data to some RadControl. The problem is when I try to insert, I got errors on bound item because they are DBnull. So how can I have the template with empty control while inserting?

Jocelyn
Jocelyn
Top achievements
Rank 1
 answered on 07 Mar 2012
2 answers
102 views
I am currently dynamically changing the Header Text of one of my grids using the following code:

Protected Sub gvYearByYearValueProjection_DataBound(sender As Object, e As System.EventArgs) Handles gvYearByYearValueProjection.DataBound
        Dim Season As Integer = Utility.GetCurrentSeason
        Dim headerItem As GridHeaderItem = gvYearByYearValueProjection.MasterTableView.GetItems(GridItemType.Header)(0)
        headerItem("Yr1").Text = Convert.ToString(Season & "-" & Right(Season, 2) + 1)
        headerItem("Yr2").Text = Convert.ToString(Season + 1 & "-" & Right(Season, 2) + 2)
        headerItem("Yr3").Text = Convert.ToString(Season + 2 & "-" & Right(Season, 2) + 3)
        headerItem("Yr4").Text = Convert.ToString(Season + 3 & "-" & Right(Season, 2) + 4)
        headerItem("Yr5").Text = Convert.ToString(Season + 4 & "-" & Right(Season, 2) + 5)
        headerItem("Yr6").Text = Convert.ToString(Season + 5 & "-" & Right(Season, 2) + 6)
    End Sub

I have also used this code as well but get the same result:

Protected Sub gvYearByYearValueProjection_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles gvYearByYearValueProjection.ItemDataBound
    Dim Season As Integer = Utility.GetCurrentSeason
    If TypeOf e.Item Is GridHeaderItem Then
        Dim header As GridHeaderItem = DirectCast(e.Item, GridHeaderItem)
        header("Yr1").Text = Convert.ToString(Season & "-" & Right(Season, 2) + 1)
        header("Yr2").Text = Convert.ToString(Season + 1 & "-" & Right(Season, 2) + 2)
        header("Yr3").Text = Convert.ToString(Season + 2 & "-" & Right(Season, 2) + 3)
        header("Yr4").Text = Convert.ToString(Season + 3 & "-" & Right(Season, 2) + 4)
        header("Yr5").Text = Convert.ToString(Season + 4 & "-" & Right(Season, 2) + 5)
        header("Yr6").Text = Convert.ToString(Season + 5 & "-" & Right(Season, 2) + 6)
    End If
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
    End If
End Sub

The problem I am running into is when I sort another grid on my page the headers resort back to Yr1, Yr2, Yr3, etc....

I am not sure where my error is, but I would be thrilled with any assistance.

Thanks,

Brad
Brad
Top achievements
Rank 2
 answered on 07 Mar 2012
3 answers
83 views
Hi,

I update 'telerik.web.ui.dll' to version 2011.2.915.40, then radeditor doesn't work with IE9, but works with IE8.

Please help me to solve this. problem.

Wei
Rumen
Telerik team
 answered on 07 Mar 2012
1 answer
129 views
Hi All,
In Rad Scheduler i am able to show my resource names in header, now i want to show my resource names in footer also, How can i show my resource names in footer of the scheduler.

Thanks,
Madhan
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
2.0K+ views
Hi,

I followed the below blog post to load items from WCF Service.
http://blogs.telerik.com/veselinvasilev/posts/09-04-08/how-to-use-wcf-services-with-asp-net-ajax-databound-controls.aspx

I need to add an item 'Primary' to this Combobox. Also I dont want this item to be filtered out based on the CustomText the user types in.
This item always needs to be there in the ComboBox.

Any suggestions ???


Thank you for your help,
Neelima
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
89 views
Hello,

Can RadRibbonMenu have multiple columns? I'm using the RadRibbon as applicationmenu but there are to much items in the RadRibbonMenu for 1 column so I tried to force it in multiple columen but without succes.

Regards, 
  JosM
Kate
Telerik team
 answered on 07 Mar 2012
6 answers
435 views
I have a popup page which has three buttons on top (with the names "Hide Filter", "Apply Filter" and "Reset")

Now I want to set focus on second button ("Apply Filter"), but the focus is always goes to first button ("Hide Filter") whenever I click on the page.


I have also set second button (Apply Filter) as default button :
     <form id="form1" runat="server" defaultbutton="btnERSApplyFilter" defaultfocus="btnERSApplyFilter">

I have also set focus on page load to second button (Apply Filter):

    btnERSApplyFilter.Focus();

But both are not working.. please suggest me some solution.


Thanks
Mukesh

Denis
Top achievements
Rank 2
 answered on 07 Mar 2012
8 answers
156 views
Hi,

I have a problem with ajaxifing 5 checkboxes in this RadComboBox.

<telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server">
   <telerik:RadComboBox ID="RadComboBox2" Runat="server" AllowCustomText="True" EmptyMessage="Alle Lagen"
               DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="Value" Width="230px" >
               <ItemTemplate>
                           <div>
                               <asp:CheckBox runat="server" ID="chk1" Checked="false" onclick="onCheckBoxClick(this)"
                                   AutoPostBack="True"
                                   oncheckedchanged="chk1_CheckedChanged" />
                               <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1">
                                   <%# Eval("Text") %>
                               </asp:Label>
                           </div>
                       </ItemTemplate>
               <CollapseAnimation Duration="200" Type="OutQuint"></CollapseAnimation>
           </telerik:RadComboBox>
           <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/combobox.xml">
           </asp:XmlDataSource>
   </telerik:RadAjaxPanel>

This is the code behind to add the ajaxsettings to the RadAjaxManager:
Protected Sub RadComboBox2_DataBound(sender As Object, e As System.EventArgs) Handles RadComboBox2.DataBound
 
        For Each item As RadComboBoxItem In RadComboBox2.Items
            Dim chk As CheckBox = DirectCast(item.FindControl("chk1"), CheckBox)
            Dim text As Label = DirectCast(item.FindControl("Label1"), Label)
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(chk, GridView1, RadAjaxLoadingPanel1)
           
        Next
 
    End Sub

When I click one of the checkboxes, the loading panel is visible for a short time, but the gridview1 isn't updating.
When I click another checkbox, the request doesn't use ajax but loads the whole site. Also when I click another checkbox.
Only the first "click" is ajaxifyed, but the gridview1 is not affected. 

Here is the link to the ajaxifyed Page: http://pension.sundaymedia.info/einrichtungajax.aspx?Typ=Pension
And here the same page with no ajaxsettings added: http://pension.sundaymedia.info/Einrichtung.aspx?Typ=Pension

The left ComboBox is the Problem-Combo-Box

Best regards from Germany,
Stefan
Stafan Müller
Top achievements
Rank 1
 answered on 07 Mar 2012
1 answer
69 views
Hi,

I'm using scheduler control to programming technical resources and show resources programmed in a timeline view. But, the scrollbars of control is too small. 

How I can change the size of scrollbar?

Thanks, cmarquez
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
114 views
I need to get the info of the file while it is uploading to insert the record into the database. Such as the size of the file. Is there anyway to do that? In the Upload File case.
protected void rfeStorage_ItemCommand(object sender, RadFileExplorerEventArgs e)
       {
           //file manager
           string path = e.Path.Remove(0, e.Path.IndexOf("/") + 1);
           path = path.Remove(0, path.IndexOf("/") + 1);
           path = path.Replace("/", @"\");
           path = @oCompany.StorageBoxLocation + @"\" + path;
           using (UNCAccessWithCredentials unc = Generic.GetDocumentCredentials(path.Remove(path.LastIndexOf(@"\"))))
           {
               if (unc.NetUseWithCredentials())
               {
                   switch (e.Command)
                   {
                       case "UploadFile":
                           FilesCOL f = new FilesCOL();
                           f.Name = Path.GetFileName(path);
                           f.UserID = oUsers.UserID;
                           f.isShared = false;
                           f.isDeleted = false;
                           FilesDAL.Insert(ref f);
 
                           FileLogCOL fileLog = new FileLogCOL();
                           fileLog.UserID = oUsers.UserID;
                           fileLog.Action = "Uploaded";
                           fileLog.LogDate = DateTime.Now;
                           fileLog.FilePath = path;
                           fileLog.FileID = f.FileID;
                           FileLogDAL.Insert(ref fileLog);
                           break;
 
                       case "MoveDirectory":
                           break;
 
                       case "CreateDirectory":
                           break;
 
                       case "DeleteDirectory":
                           break;
 
                       case "DeleteFile":
 
 
 
                           FileLogCOL fileLog3 = new FileLogCOL();
                           FileLogCOL fileLog5 = FileLogDAL.SelectFileLog(path);
                           fileLog3.UserID = oUsers.UserID;
                           fileLog3.Action = "Deleted";
                           fileLog3.LogDate = DateTime.Now;
                           fileLog3.FilePath = getNewPath(e.Path);
                           fileLog3.FileID = fileLog5.FileID;
                           FileLogDAL.Insert(ref fileLog3);
                           FilesCOL f2 = FilesDAL.Select(fileLog3.FileID);
                           f2.isDeleted = true;
                           FilesDAL.Update(ref f2);
                           break;
 
                       case "MoveFile":
 
 
                           FileLogCOL fileLog2 = new FileLogCOL();
                           FileLogCOL fileLog4 = FileLogDAL.SelectFileLog(path);
 
                           fileLog2.FilePath = getNewPath(e.NewPath);
                           fileLog2.UserID = oUsers.UserID;
                           fileLog2.Action = "Moved";
                           fileLog2.LogDate = DateTime.Now;
                           fileLog2.FileID = fileLog4.FileID;
                           FileLogDAL.Insert(ref fileLog2);
                           break;
                   }
               }
           }
       }

Dobromir
Telerik team
 answered on 07 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?