Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
183 views
i have changed my radTab strip to Q3 2009

the issue i am facing is all the page views are commming in one Tab whipe opening the page.

my aspx code is like this.. & i have attached the screen shot also.
pls give a solution on this
aspx Code:
           <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            SelectedIndex="0" OnClientTabSelected="OnClientTabSelected" EnableEmbeddedSkins="false" >
            <Tabs>
                <telerik:RadTab Text="List" ImageUrl="~/App_Themes/kentz/images/list.png" PageViewID="BidLineDet"
                    Value="1">
                </telerik:RadTab>
                <telerik:RadTab Text="New" ImageUrl="~/App_Themes/kentz/images/New.png" PageViewID="NewLine"
                    Value="2">
                </telerik:RadTab>
                <telerik:RadTab Text="Custom Bid Entry Details" ImageUrl="~/App_Themes/kentz/images/list.png"
                    PageViewID="KentzBid" Value="3">
                </telerik:RadTab>
                <telerik:RadTab Text="Add Custom Bid Entry" ImageUrl="~/App_Themes/kentz/images/New.png"
                    PageViewID="NewKentzBid" Value="4">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" EnableEmbeddedBaseStylesheet="true">
            <telerik:RadPageView ID="BidLineDet" runat="server" CssClass="TabContent">
           ---
            ---
            ----
         </telerik:RadPageView>
           <telerik:RadPageView ID="NewLine" runat="server" CssClass="TabContent">
            ---
            ---
            ----
            </telerik:RadPageView>




on page load VB side, iam doing
    RadTabStrip1.selectedindesx = 0
    RadMultipage.SelectedIndex = 0


Kamen Bundev
Telerik team
 answered on 01 Feb 2010
1 answer
155 views
Having a issue with the Month/Year RadDatePicker script provided at http://www.telerik.com/community/code-library/aspnet-ajax/calendar/month-year-picker.aspx. It is working as expected for other cultures except  Chinese.

To reproduce this issue 
1) download the sample and add a Culture="zh-CN" attribute to the RadDatePicker tag
2) Run the project and pick a 2 character month (i.e. Jan-Oct).
The month in the input box changes to Jan always unless a 3 character month is selected (i.e. Nov or Dec)

The issue is in the RadDatInputScript.js at Token.FindIndex where it assumes all the abbreviated month names are at least 3 characters long.

Token.FindIndex=function(_7d,_7e){
if(_7e.length<3){
return -1;
}
for(var i=0;i<_7d.length;i++){
if(_7d[i].toLowerCase().indexOf(_7e)==0){
return i;
}

I changed the condition to check for at least 2 characters instead of 3 but the format of the month in the month/year select popup drops the last character of the 3 character month to the next line. It is not a proper fix but for the moment it seems fine but I would like to have a proper fix.

Thanks

Savinda
Dimo
Telerik team
 answered on 01 Feb 2010
2 answers
105 views
I have created a custom skin for the panel bar.  I have altered the  RootItemBg.gif.
I have added it to App_Themes and have added the theme to the Page.  I have Enabled EmbeddedSkins set to false and the skin set to my skin name.

The skin works except fo on thing.  It does not show the RootItemBg.gif.  Is there a step I am missing?


 

Kamen Bundev
Telerik team
 answered on 01 Feb 2010
1 answer
173 views
hi.
i am designing grid Dynamically like this with Detail Tables.

    RadGridAudioFileReport = New RadGrid 
        Dim boundColumnClientID, boundColumnClient, boundColumnTotal As New GridBoundColumn 
        Dim templatecolumnActive, templatecolumnSupport, templatecolumnFinal As New GridTemplateColumn 
        RadGridAudioFileReport.DataSource = Nothing 
        RadGridAudioFileReport.DataSource = Fill_Allocation_Report_Grid() 
        RadGridAudioFileReport.Width = Unit.Pixel(2600) 
        RadGridAudioFileReport.Skin = "Office2007" 
        RadGridAudioFileReport.AutoGenerateColumns = False 
        RadGridAudioFileReport.MasterTableView.DataKeyNames = New String() {"Client_ID"} 
        boundColumnClientID.HeaderText = "Client_ID" 
        boundColumnClientID.DataField = "Client_ID" 
        boundColumnClientID.UniqueName = "Client_ID" 
        boundColumnClientID.Visible = False 
        RadGridAudioFileReport.MasterTableView.Columns.Add(boundColumnClientID) 
        boundColumnClient.HeaderText = "Client" 
        boundColumnClient.DataField = "Client" 
        boundColumnClient.UniqueName = "Client" 
        RadGridAudioFileReport.MasterTableView.Columns.Add(boundColumnClient) 
        boundColumnTotal.HeaderText = "Total" 
        boundColumnTotal.DataField = "Total" 
        boundColumnTotal.UniqueName = "Total" 
    templatecolumnActive.HeaderTemplate = New MyTemplateActiveHeader() 
        templatecolumnActive.ItemTemplate = New MyTemplateActiveItems() 
        RadGridAudioFileReport.MasterTableView.Columns.Add(templatecolumnActive) 
     
 
    Dim tableViewAccounts As New GridTableView(RadGridAudioFileReport) 
        Dim boundColumnAccountID, boundColumnAccount As New GridBoundColumn 
        tableViewAccounts.DataSource = Accounts_FileAllocation_Report_Data() 
        tableViewAccounts.Width = Unit.Percentage(100) 
        tableViewAccounts.AutoGenerateColumns = False 
        tableViewAccounts.DataKeyNames = New String() {"accountid"} 
        Dim relationFields As GridRelationFields = New GridRelationFields() 
        tableViewAccounts.ParentTableRelation.Add(relationFields) 
        RadGridAudioFileReport.MasterTableView.DetailTables.Add(tableViewAccounts) 
 
        boundColumnAccountID.DataField = "accountid" 
        boundColumnAccountID.HeaderText = "accountid" 
        boundColumnAccountID.UniqueName = "accountid" 
        'boundColumnAccountID.Visible = False 
        tableViewAccounts.Columns.Add(boundColumnAccountID) 
        boundColumnAccount.DataField = "account" 
        boundColumnAccount.HeaderText = "Account" 
        boundColumnAccount.UniqueName = "Account" 
        tableViewAccounts.Columns.Add(boundColumnAccount) 
        RadGridAudioFileReport.DataBind() 
        Me.PlaceHolder1.Controls.Add(RadGridAudioFileReport) 
 
 
 Public Function Accounts_FileAllocation_Report_Data(ByVal client_id As String) 
 
        MsgBox(client_id.ToString()) 
        cmd = New MySqlCommand("SELECT id as accountid,accname as account FROM account_master where ccode='" & client_id & "' and delflag=0;", con) 
        myda = New MySqlDataAdapter(cmd) 
        AccountsActiveDT = New DataTable 
        myda.Fill(AccountsActiveDT) 
        Return AccountsActiveDT 
    End Function 
 
here i want the DatakeyNames to get the data for Detail Tables.
how can i get the DataKeyName("Client_ID") and how can i pass the DataKeyName to this function Accounts_FileAllocation_Report_Data().
can any one help me please.

Thank You.
Suresh K.






Princy
Top achievements
Rank 2
 answered on 01 Feb 2010
1 answer
128 views
I am trying to figure out a way that I can manually sort a radlistview. The problem I have is that the database does not contain the field I want to sort by. The application allows the user to determine the sort of the items in an order they determine. I could not find a way to manually add/remove items from the radlistview instead of binding to the DB, or a way to create a custom field that I can set after the data as loaded to sort on.

Any recommendations?

The scenario is there are two controls on the page both list views, one is a list of photo thumbnails, the other is a list of photos selected. As the user selects the thumbnails I want the order in the second list to be the order that they picked the photos.
Rosen
Telerik team
 answered on 01 Feb 2010
1 answer
131 views

I have problems with the RadComBox Load-On-Demand combined with data binding.
Below is the code,

aspx
(I am using declaretive datasource (dataset) ), Below aspx is putting under FormView,

<telerik:RadComboBox Skin="Hay" ID="RadComboVendorID" runat="server"

 DataSourceID="DBDataSource1" DataMember="PurchaseHeader.VendorInformation_Via_VendorID"  DataTextField="VendorID" DataValueField="VendorID" SelectedValue ='<%# Bind("VendorID") %>' DropDownWidth ="550"  Height ="270" Width ="105"

HighlightTemplatedItems = "true" Sort="Ascending" MarkFirstMatch="True" AutoPostBack = "true" OnItemsRequested= 'RadComboBox_ItemsRequested' EnableLoadOnDemand ="true"  ShowMoreResultsBox ="true" EnableVirtualScrolling ="true" />

and, Code Behind,ItemsRequested function, I filter out the data source that binded to the page base on whatever condition, see below,

   Public Sub RadComboBox_ItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)

        Dim combo As RadComboBox = TryCast(sender, RadComboBox)     
        datasource.FilterTable("VendorInformation", "VendorID LIKE '%abcedfg%'")

        combo.DataSource = ds
        combo.databind()
   End Sub

But, it give error on combo.databind() line, say binding function must bind in the context of .................
i take away combo.databind() line, the datasource only get filtered after fresh not through AJAX posting.

Any solution for that ? Thanks .


Yana
Telerik team
 answered on 01 Feb 2010
1 answer
104 views
I have used the example for turning filtering on and off with javascript and it works great. I moved the radio buttons into the command template of the radgrid and im not sure how to reference them. I used to check the state of the buttons on page load and hide it if the radio button for hide was selected. This allowed me to hide the filtering on start up. What syntax would I use to reference a radio button in the command template of a radgrid in javascript?
Princy
Top achievements
Rank 2
 answered on 01 Feb 2010
2 answers
338 views
Hi
  How to change DatePicker Height.
Not Textbox height.popup height
pasam Anna
Top achievements
Rank 1
 answered on 01 Feb 2010
1 answer
167 views
Hello,

         
<telerik:GridTemplateColumn UniqueName="StatusColumn" HeaderText="Approved Status">  
                <ItemTemplate> 
                   <asp:Label id="lblStatus" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "status") %>'>  
                       
                   </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                   <asp:DropDownList id="ddlApprovalStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlApprovalStatus_SelectedIndexChanged" > 
                    <asp:ListItem Text="Pending" Value="False" Selected="True"></asp:ListItem> 
                   <asp:ListItem Text="Approved" Value="True"></asp:ListItem> 
                   </asp:DropDownList> 
                                   </EditItemTemplate> 
                <ItemStyle Width="40px" /> 
            </telerik:GridTemplateColumn> 
i have dropdown list as shown above. On its selected index change event i want to acess  GridBoundColumn  row, to get some information. How can it be done.
GridBoundColumn is 
<telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id"   
                ReadOnly="True" SortExpression="id" UniqueName="id" Visible="false">  
                <ItemStyle Width="100px" />  
            </telerik:GridBoundColumn> 
 i want to get this "id" in selectedindexchange event 

my selectedchange event is
protected void ddlApprovalStatus_SelectedIndexChanged(object source, System.EventArgs e)  
        {  
              
 
        } 

Thanks
Amarinder
Shinu
Top achievements
Rank 2
 answered on 01 Feb 2010
0 answers
99 views
hello to all expert,

                          i would like to ask some help coz i been looking through the internet for solutions but i've never found to suit for my problem, here's my problem i have a telerik treeview control to load my main folders and also to all subfolders with a docs inside of each subfolder now i have a 400 subfolder with docs inside on each subfolders, when i load my page its causes a time out, sometimes maximum exceeded how i'm going to prevent those errors encountered during page load..anyway here's my code on loading those folders..
    protected void Page_Load(object sender, EventArgs e)
        {

          if (cUserInfo.MemberKey == "000001")
                {
                    rootFolder = Server.MapPath("../MEMBERS");
                    parts = rootFolder.Split('\\');
                    name = parts[parts.Length - 1];
                    name = "IBOS Directories";
                }
                else
                {
                    rootFolder = Server.MapPath("../MEMBERS/" + cUserInfo.MemberMnemonic.Trim());
                    parts = rootFolder.Split('\\');
                    name = parts[parts.Length - 1];
                }

                if (!Directory.Exists(rootFolder))
                {
                    cXML.CopyDirectory(Server.MapPath("../MEMBERS/BANK1"), rootFolder, true);
                }

                RadTreeNode rootNode = new RadTreeNode(rootFolder);
                rootNode.ImageUrl = "../Images/Folder.gif";
                rootNode.Category = "Folder";
                rootNode.Expanded = false;
                rootNode.Text = name;
                rootNode.NavigateUrl = rootFolder;
                RadTreeView1.Nodes.Add(rootNode);
                RadTreeView1.MultipleSelect = true;
                BindTreeToDirectory(rootFolder, rootNode);
}

 private void BindTreeToDirectory(string dirPath, RadTreeNode parentNode)
        {
            string[] dirs = Directory.GetDirectories(dirPath);
            foreach (string s in dirs)
            {

                string[] parts = s.Split('\\');
                string name = parts[parts.Length - 1];
                if (name != "BANK1")
                {
                    RadTreeNode node = new RadTreeNode(name);
                    node.ImageUrl = "../Images/Folder.gif";
                    node.Value = name;
                    node.Category = "Folder";
                    parentNode.Nodes.Add(node);

                    BindTreeToDirectory(s, node);
                }
            }

            string[] files = Directory.GetFiles(dirPath);
            foreach (string fileName in files)
            {
                string[] parts = fileName.Split('\\');
                string name = parts[parts.Length - 1];
                //RadTreeNode node = new RadTreeNode(name);
                RadTreeNode node = new RadTreeNode(fileName);
                FileInfo fi = new FileInfo(fileName);
                node.ImageUrl = "../Images/File.gif";
                node.Value = String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());
                node.Category = "File";
                node.Text = name;
                node.ToolTip = String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());
                node.NavigateUrl = fileName;
                
                parentNode.Nodes.Add(node);
            }
        }

if you could find some wrong codes here please help, also if you could provide some solutions on the time out and exceeded problem please provide us.. we appriaciate it so much

thanks in advance


Jols
Top achievements
Rank 2
 asked on 01 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?