Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
I may be missing this because it seems simple. Is there a way to filter immediatey when the filter image is clicked. I will always use only the contains filter and do not need the extra step of the menu from opening. I tried to add a "search" link button in the filter row but I can not get the correct arguments to be passed to the commanditem event. I was thinking I was making it more complicated then i needed to. Thanks for any help
Henry Derstine
Top achievements
Rank 1
 answered on 16 Oct 2008
2 answers
280 views
Is there a way to show the column headers at both the top and the bottom?  I have a long grid that I don't want to have paging on where I'd like to mirror the header on the bottom too.

Thanks!
DonKitchen
Top achievements
Rank 1
 answered on 16 Oct 2008
5 answers
408 views
I am attempting to open a rad window, passing a url, rather than a named instance of an existing window.

The call to set_title() and set_skin() don't appear to work. Also I would like to set the behaviors so there is no maximise and minimise buttons. Also I would like it modal. Here is the simple code I have.

        <script type="text/javascript">  
            function openRadWindow()  
            {  
                var oWnd = window.radopen("Window1.aspx"null);  
                oWnd.setSize(700,700);  
                oWnd.set_title = "test";  
                oWnd.set_skin = "Office2007";  
            }  
        </script>  
 

I am struggling to find document for the client side radWindow object. I have looked in the online documentation but no luck. Could you pass a link to the methods / properties available. In the debugger, the radWindow object seem to have a lot of duplicate methods e.g. set_title() and SetTitle(). Which should I use?
Georgi Tunev
Telerik team
 answered on 16 Oct 2008
1 answer
105 views

In a grid I have a checkboxlist. I can retrieve the selectedvalue, but, in order to insert/update/delete the selectedvalue in a datatable, I would like to retrieve which item of a checkboxlist has been checked or unchecked. I think it's a tiny issue, but I keep struggling with it, despite my search on the forum and the internet.

    Protected Sub chkTasks_CheckedChanged(ByVal sender As ObjectByVal e As System.EventArgs)  
        Dim Today As Date 
        Today = Now()  
 
        Dim chkBox As CheckBoxList = CType(sender, CheckBoxList)  
        Dim myPanel As Panel = CType(chkBox.Parent, Panel)  
        Dim dataItem As GridDataItem = CType(myPanel.NamingContainer, GridDataItem)  
        If chkBox.SelectedValue <> "" Then 
            dataItem("FileName").Style("color") = "orange" 
            Dim file As Integer = dataItem("FileId").Text  
            Dim Task As Integer = chkBox.SelectedValue  
            Dim Ext As RadComboBox = TryCast(dataItem.FindControl("cmbxExtension"), RadComboBox)  
            Dim Extension As Integer = Int32.Parse(Ext.SelectedValue)  
 
            Dim strSQL As String = _  
                        "INSERT INTO tblBewerkingToFile " & _  
                        "(FileId, BewerkingId, ExtensionFormat) " & _  
                        "VALUES " & _  
                        "(@FileId, @BewerkingId, @ExtensionFormat)" 
            Dim Command As New SqlCommand(strSQL)  
 
            Command.Parameters.AddWithValue("@FileId", file)  
            Command.Parameters.AddWithValue("@BewerkingId", Task)  
            Command.Parameters.AddWithValue("@ExtensionFormat", Extension)  
            DBPortal.Execute(Command)  
 
        End If 
 
        Dim previewControl As Control = FindPageControl("previewControl")  
 
        Dim NoResults As Label = previewControl.FindControl("lblNoChoice")  
        NoResults.Visible = False 
 
        Dim ValidResults As Repeater = previewControl.FindControl("rpValidBewerking")  
        ValidResults.Visible = True 
    End Sub 
 
Mydatafactory
Top achievements
Rank 1
 answered on 16 Oct 2008
4 answers
90 views
Not covered in documentation...
Could you please provide the following:
-Specs for array of objects expected as argument
-How to make (instantiae) required object on client (js)
-Simple, working example on how to use this functionality (add ajax settings on client)
-Any issues with using this from one web user control to postback part of other web user control? Like, click on Folder user controll in webMail is supposed to postback mailGrid from other web user control on a page. Other user controll supplies MailGrid ClientId as variable global to the page.

Regards,
Alex
Vlad
Telerik team
 answered on 16 Oct 2008
1 answer
111 views
Hi,
I am doing customised coding of the radschedular.
what I should put the time frame by which all day section get the appointment details.
for eaxample: when I put the time 8AM to 5 PM then it is showing the data in whole rows of that day.not in the all day section.
code help would be in c#.
Thanks,
Puru
Peter
Telerik team
 answered on 16 Oct 2008
1 answer
92 views
Hi,

Need some advice on how to do the follwoing

Delete a row from my prodTable based on the datakeyvalues ProdType

Here is the Code

// Adding product

protected void AddProdBtn_Click(object sender, EventArgs e)
    {
        double qty = double.Parse(ProdUnitUserTxtBox.Text.ToString());
        double cost = double.Parse(ProdCostTxtBox.Text.ToString());
        double total = qty * cost;
        ProdTotalAmtLbl.Text = total.ToString();

        DataTable dt = new DataTable();

        dt.Columns.Add(new DataColumn("ProdSerialNo"));
        dt.Columns.Add(new DataColumn("ProdSerialRemark"));
        dt.Columns.Add(new DataColumn("ProdType"));
        dt.Columns.Add(new DataColumn("ProdUnitUser"));
        dt.Columns.Add(new DataColumn("ProdCost"));
        dt.Columns.Add(new DataColumn("ProdTotalAmt"));

        DataRow dr;

        double totalAmt = 0;

        GridDataItemCollection dtCol = ProdTable.Items;
        foreach (GridDataItem item in dtCol)
        {
            dr = dt.NewRow();
            dr["ProdSerialNo"] = item["ProdSerialNo"].Text;
            dr["ProdSerialRemark"] = item["ProdSerialRemark"].Text;
            dr["ProdType"] = item["ProdType"].Text;
            dr["ProdUnitUser"] = item["ProdUnitUser"].Text;
            dr["ProdCost"] = item["ProdCost"].Text;
            dr["ProdTotalAmt"] = item["ProdTotalAmt"].Text;
            totalAmt += double.Parse(item["ProdTotalAmt"].Text.ToString());

            dt.Rows.Add(dr);
        }

        dr = dt.NewRow();
        dr["ProdSerialNo"] = SerialNoTxtBox.Text;
        dr["ProdSerialRemark"] = SerialNoRemarksTxtBox.Text;
        dr["ProdType"] = ProdTypeComboBox.SelectedItem.Text.ToString();
        dr["ProdUnitUser"] = ProdUnitUserTxtBox.Text;
        dr["ProdCost"] = ProdCostTxtBox.Text;
        dr["ProdTotalAmt"] = ProdTotalAmtLbl.Text;
        totalAmt += double.Parse(ProdTotalAmtLbl.Text.ToString());

        dt.Rows.Add(dr);
        ProdTable.DataSource = dt.DefaultView;
        ProdTable.DataBind();

        ProdAllTotalLbl.Text = totalAmt.ToString();

        SerialNoTxtBox.Text = "";
        SerialNoRemarksTxtBox.Text = "";
        ProdUnitUserTxtBox.Text = "";
        ProdCostTxtBox.Text = "";
    }


// Delete The Product

    protected void ProdTable_DeleteCommand(object source, GridCommandEventArgs e)
    {
        string type = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ProdType"].ToString();

        //string productType;

        DataTable dt = new DataTable();

        dt.Columns.Add(new DataColumn("ProdType"));

        

        GridDataItemCollection dtCol = ProdTable.Items;
        foreach (GridDataItem item in dtCol)
        {
            type = item["ProdType"].Text;
        }  

        if (dt.Rows.Find(type) != null)
        {
            dt.Rows.Find(type).Delete();
            dt.AcceptChanges();
        }
    }


Want to delete a row which has the unique data key values ProdType from the Radgrid prod Table

Need advice on how to do it corrrectly as i am still reading and learning.

Referring To The Following

    protected void ProdTable_DeleteCommand(object source, GridCommandEventArgs e)
    {
        string type = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ProdType"].ToString();

        //string productType;

        DataTable dt = new DataTable();

        dt.Columns.Add(new DataColumn("ProdType"));

        

        GridDataItemCollection dtCol = ProdTable.Items;
        foreach (GridDataItem item in dtCol)
        {
            type = item["ProdType"].Text;
        }  

        if (dt.Rows.Find(type) != null)
        {
            dt.Rows.Find(type).Delete();
            dt.AcceptChanges();
        }
    }

private void RadGrid1_DeleteCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
{
  string ID = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["CustomerID"].ToString();
  DataTable table = (DataTable)Session["DataSource"];
  if(table.Rows.Find(ID) != null)
  {
    table.Rows.Find(ID).Delete();
    table.AcceptChanges();
    Session["DataSource"] = table;
  }
}


Thank You For Reading
Yavor
Telerik team
 answered on 16 Oct 2008
1 answer
82 views
Hi All,

I am using RadScheduler

While showing appointment in radscheduler ,
in Day View it shows the appointment clearly.

But in Week/Month view the appointment text not shows properly it get truncate.

How can solve this problem to show the complete text of appointment in Month/Week view.

Thanks

Peter
Telerik team
 answered on 16 Oct 2008
0 answers
80 views
Hi,
I am doing customised coding of the radschedular.
what I should put the time frame by which all day section get the appointment details.
for eaxample: when I put the time 8AM to 5 PM then it is showing the data in whole rows of that day.not in the all day section.
code help would be in c#.
Thanks,
Puru
puru
Top achievements
Rank 1
 asked on 16 Oct 2008
2 answers
133 views
Hi,

How to create RadGrid with DetailViews( 3 levels ) dynamically? all the links here explain about  MasterTableView.HierarchyLoadMode.Server..

But I would like to load our custom data objects into DetailViews based on Expand/Collapse

Thanks
Peter
Vlad
Telerik team
 answered on 16 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?