Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views
I have a radWindow that opens modal from the parent page and is about 500px X 500px.
Is there a way to open a new radwindow from the (already) opened/modal radwindow that is larger than the 500px X 500px?
I dont even care if it is modal or not, but it would be nice. 
Basically, my problem is that once I open the first radWindow, the next radWindow that I open from inside the radWindow is too large to fit in the 500px X 500px window, and I would like it to open "outside" the first RadWindow, not inside it.
Man.. are you still with me? Is there a way to do this?
Thanks
Georgi Tunev
Telerik team
 answered on 19 Jan 2010
4 answers
119 views
Hello,

My grid has many columns and few records, I use ClientSettings to enable Scrolling but it takes a fixed heigth not very nice when there are only one or 2 records.

Is there a way to shrink the grid heigth to the lower value required by the number of rows ?
Should be the min of max grid Height and height required to display actual rows.

Thanks for help.
CS
Dimo
Telerik team
 answered on 19 Jan 2010
5 answers
166 views
I have a grid with the "Office2007" skin on it. Styling works very fine in all aspects except the grouping images.
Namely, when I drag a column to use it as being grouped by, on top I get the title of the column, and next to it two HTML buttons, first one for sort, and second one to ungroup. The problem is that both come without an image as opposed to any other item of the grid (filter, expand/collapse, column sort) whose images are properly displayed.
I can't seem to find the property to attach declaratively an image for the grouping buttons. Please help!

In addition, how can I cancel the sort of a column, for example after I have clicked sort ascending and descending once, and then the third time I would like that the column goes back to the normal, "sortless" arrangements? 

Thank you so much.

lektira
Dimo
Telerik team
 answered on 19 Jan 2010
3 answers
159 views
Hello,

I just want to know, Is there any option for multiple filtering at a time. Ex: i want filter for datetime column and id column at the same time...

where datetime='1/12/2010' and ID=2;

in this way using telerik radgrid???
Pavlina
Telerik team
 answered on 19 Jan 2010
0 answers
127 views
Hi.
I have the Grid Like This with Check box.
here i want the Total of checked rows "CheckAmount".checkamount is one column in the grid
i am able to getting the Total in single page(grid page=1).
i am not able to getting the total of "CheckAmount" in multiple pages like (Grid Page=1 and Page=2 )
when i go to the second page i am not getting the 1st page Total.
<telerik:RadGrid ID="rgv" runat="server" AllowMultiRowEdit="True" 
                AllowMultiRowSelection="True" AllowPaging="True" AutoGenerateColumns="False" 
                EnableTheming="False" GridLines="None" Skin="trublue"  EnableEmbeddedSkins="False" 
                Style="position:static; margin-left:25px;" Width="740px" PageSize="10"> 
                <MasterTableView> 
                    <Columns> 
                        <telerik:GridTemplateColumn UniqueName="TemplateColumn"> 
                            <ItemTemplate> 
                                <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBox1_CheckedChanged1" /> 
                            </ItemTemplate> 
                            <HeaderTemplate> 
                                <asp:Label ID="Label3" runat="server" Text="select"></asp:Label> 
                            </HeaderTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="ID" UniqueName="id" 
                            Visible="False"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ClientID" HeaderText="ClientID" SortExpression="uN" 
                            UniqueName="UserName" Visible="False"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="BankID" HeaderText="BankID" SortExpression="pwd" 
                            UniqueName="p1" Visible="False"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CheckNumber" HeaderText="CheckNumber" SortExpression="CP" 
                            UniqueName="CP"> 
                            <HeaderStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CheckDate" HeaderText="CheckDate" SortExpression="mail" 
                            UniqueName="Email"> 
                            <HeaderStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CheckReceivedOn" HeaderText="CheckReceivedOn" 
                            SortExpression="SQ" UniqueName="SQ"> 
                            <HeaderStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CheckAmount" HeaderText="CheckAmount" SortExpression="SA" 
                            UniqueName="CheckAmount"> 
                            <HeaderStyle HorizontalAlign="Right" /> 
                            <ItemStyle HorizontalAlign="Right" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="DepositeDate" HeaderText="DepositeDate" SortExpression="SA" 
                            UniqueName="DD" Visible="False"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="InvoiceNo" HeaderText="InvoiceNo" SortExpression="SA" 
                            UniqueName="INO"> 
                            <HeaderStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <EditFormSettings> 
                        <EditColumn UniqueName="EditCommandColumn1" CancelImageUrl="trublue/Grid/Cancel.gif" EditImageUrl="trublue/Grid/Edit.gif"  
                        InsertImageUrl="trublue/Grid/Update.gif" UpdateImageUrl="trublue/Grid/Update.gif"> 
                        </EditColumn> 
                    </EditFormSettings> 
                </MasterTableView> 
                 
                <FilterMenu EnableTheming="False" EnableEmbeddedSkins="False">      
                </FilterMenu> 
                <ClientSettings EnableRowHoverStyle="True"> 
                    <Selecting AllowRowSelect="True" /> 
                </ClientSettings> 
                <HeaderContextMenu EnableEmbeddedSkins="False"> 
                </HeaderContextMenu> 
            </telerik:RadGrid> 
 I am using this Code to Get the checked rows total "CheckAmount".
Protected Sub CheckBox1_CheckedChanged1(ByVal sender As Object, ByVal e As EventArgs) 
        Dim CheckBox1 As New System.Web.UI.WebControls.CheckBox 
        Dim count, crcount, f1 As Integer 
        Dim mainval, tempval As String 
        Me.txttotal.Visible = True 
        Me.lbltotalamt.Visible = True 
        txttotal.Text = 0 
        'rgv.ExportSettings.IgnorePaging = False 
        For Each item1 As GridDataItem In rgv.Items 
            CheckBox1 = CType(item1.FindControl("CheckBox1"), System.Web.UI.WebControls.CheckBox) 
            If CheckBox1.Checked = True Then 
                Dim a As Decimal 
                Dim stramount() As String 
                countcount = count + 1 
                stramount = item1("CheckAmount").Text.Split(" ") 
                'add = TextBox1.Text + row.Cells(2).Text 
                a = Convert.ToDecimal(txttotal.Text.Trim()) + Convert.ToDecimal(stramount(0)) ' Convert.ToInt32(dt.Rows(0).Item(1).ToString.Trim) 
                ' MsgBox(a) 
                Me.txttotal.Text = a 
            End If 
        Next 
 End Sub 

Can any one help me how to get the Total in Multiple pages in Grid.
Thanks
Suresh K.

Suresh K
Top achievements
Rank 1
 asked on 19 Jan 2010
2 answers
99 views

hi

i want to create some check box and ,when user click on it's , dynamically create 3 filed(RadTextBox) for each them.

i create it  but when click on each them.only create one row and when click on other check box, previos row will be clear and new created.

i want each row create in one line and user can fill it's.

my code

...  
 
System.Web.UI.HtmlControls.HtmlTable tbl;  
 System.Web.UI.HtmlControls.HtmlTableRow row = new System.Web.UI.HtmlControls.HtmlTableRow();  
 System.Web.UI.HtmlControls.HtmlTableCell cell = new System.Web.UI.HtmlControls.HtmlTableCell();  
 protected void CheckBox1_CheckedChanged(object sender, EventArgs e)  
 {  
 if (CheckBox1.Checked == true)  
 {  
 tbl = new System.Web.UI.HtmlControls.HtmlTable();  
 tbl.ID = "tbl";  
 tbl.Width = "250px";  
 tbl.Border = 1;  
 row = new System.Web.UI.HtmlControls.HtmlTableRow();  
 //RadAjaxPanel2.Alert("text chnaged");  
 RadTextBox rtxtNewTextBox;  
 for (int i = 0; i < 3; ++i)  
 {  
 cell = new System.Web.UI.HtmlControls.HtmlTableCell();  
 if (i == 0)  
 {  
 rtxtNewTextBox = new RadTextBox();  
 rtxtNewTextBox.ID = "Txt" + (RadComboBox1.SelectedItem.Value).ToString() + RadComboBox1.SelectedItem.Text + i;  
 rtxtNewTextBox.Text = "check1";  
 rtxtNewTextBox.Label = ":" + RadComboBox1.SelectedItem.Text;  
 //rtxtNewTextBox.EmptyMessage = strMappedName;  
 //rtxtNewTextBox.Text = strMappedName;  
 cell.Controls.Add(rtxtNewTextBox);  
 
 }  
 if (i == 1)  
 {  
 rtxtNewTextBox = new RadTextBox();  
 rtxtNewTextBox.ID = "Txt" + (RadComboBox1.SelectedItem.Value).ToString() + RadComboBox1.SelectedItem.Text + i;  
 rtxtNewTextBox.Label = "درصد:";  
 //rtxtNewTextBox.EmptyMessage = strMappedName;  
 //rtxtNewTextBox.Text = strMappedName;  
 cell.Controls.Add(rtxtNewTextBox);  
 }  
 if (i == 2)  
 {  
 rtxtNewTextBox = new RadTextBox();  
 rtxtNewTextBox.ID = "Txt" + (RadComboBox1.SelectedItem.Value).ToString() + RadComboBox1.SelectedItem.Text + i;  
 rtxtNewTextBox.Label = "توضیحات:";  
 rtxtNewTextBox.Width = 200;  
 //rtxtNewTextBox.EmptyMessage = strMappedName;  
 //rtxtNewTextBox.Text = strMappedName;  
 cell.Controls.Add(rtxtNewTextBox);  
 }  
 
 
 row.Cells.Add(cell);  
 
 }  
 tbl.Rows.Add(row);  
 RadAjaxPanel2.Controls.Add(tbl);  
 //RadAjaxPanel2.Controls.AddAt(2, tbl);  
 
 
 }  
 }  
 
 protected void CheckBox2_CheckedChanged(object sender, EventArgs e)  
 {  
 if (CheckBox2.Checked == true)  
 {  
 //System.Web.UI.HtmlControls.HtmlTable tbl1;  
 tbl = new System.Web.UI.HtmlControls.HtmlTable();  
 //System.Web.UI.HtmlControls.HtmlTableRow row = new System.Web.UI.HtmlControls.HtmlTableRow();  
 //System.Web.UI.HtmlControls.HtmlTableCell cell = new System.Web.UI.HtmlControls.HtmlTableCell();  
 tbl.ID = "tbl1";  
 tbl.Width = "250px";  
 tbl.Border = 1;  
 row = new System.Web.UI.HtmlControls.HtmlTableRow();  
 //RadAjaxPanel2.Alert("text chnaged");  
 RadTextBox rtxtNewTextBox;  
 for (int i = 0; i < 3; ++i)  
 {  
 cell = new System.Web.UI.HtmlControls.HtmlTableCell();  
 if (i == 0)  
 {  
 rtxtNewTextBox = new RadTextBox();  
 rtxtNewTextBox.ID = "Txt" + (RadComboBox1.SelectedItem.Value).ToString() + RadComboBox1.SelectedItem.Text + i;  
 rtxtNewTextBox.Text = "check2";  
 rtxtNewTextBox.Label = ":" + RadComboBox1.SelectedItem.Text;  
 //rtxtNewTextBox.EmptyMessage = strMappedName;  
 //rtxtNewTextBox.Text = strMappedName;  
 cell.Controls.Add(rtxtNewTextBox);  
 }  
 if (i == 1)  
 {  
 rtxtNewTextBox = new RadTextBox();  
 rtxtNewTextBox.ID = "Txt" + (RadComboBox1.SelectedItem.Value).ToString() + RadComboBox1.SelectedItem.Text + i;  
 rtxtNewTextBox.Label = "درصد:";  
 //rtxtNewTextBox.EmptyMessage = strMappedName;  
 //rtxtNewTextBox.Text = strMappedName;  
 cell.Controls.Add(rtxtNewTextBox);  
 }  
 if (i == 2)  
 {  
 rtxtNewTextBox = new RadTextBox();  
 rtxtNewTextBox.ID = "Txt" + (RadComboBox1.SelectedItem.Value).ToString() + RadComboBox1.SelectedItem.Text + i;  
 rtxtNewTextBox.Label = "توضیحات:";  
 rtxtNewTextBox.Width = 200;  
 //rtxtNewTextBox.EmptyMessage = strMappedName;  
 //rtxtNewTextBox.Text = strMappedName;  
 cell.Controls.Add(rtxtNewTextBox);  
 }  
 
 
 row.Cells.Add(cell);  
 
 }  
 tbl.Rows.Add(row);  
 RadAjaxPanel2.Controls.Add(tbl);  
 //RadAjaxPanel1.Controls.AddAt(1, tbl);  
 
 
 
 
 }  
 
 
 
 } 

Mohammadreza reiazi
Top achievements
Rank 1
 answered on 19 Jan 2010
0 answers
167 views
I get a bug when performing an asynchronous postback in update panel.  I figure its something to do with

if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded();

Details of the bug I get is below

Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=IJ-vAn-30ismm7-uprXJuI148iaeogJGCciJZA9DwrcMzGkIpeKRdEhUD4HkSPf3fJGG4bGPA5tIWtmpqMB1iA2&t=ffffffff80166a94' contains multiple calls to Sys.Application.notifyScriptLoaded(). Only one is allowed.


Mon NN.
Mon NN
Top achievements
Rank 1
 asked on 19 Jan 2010
1 answer
112 views
I am trying to throw together a demo application using some of Telerik's controls.  I have places a RADMenu at the top and then have a RADSeparator in the page as well.  I am guessing you guys use alot of absolute positioning in your controls otherwise I am missing something.  I have dropped a map control into the right pane with a width of 100% and a height of 100% but the controls end up being to big by about 20 - 30 pixels.  Is this because of some sort of positioning that you guys are using and if so I guess I am going to have to brush up on my CSS in order to make this work?

Thanks.
Curtis
Dimo
Telerik team
 answered on 19 Jan 2010
0 answers
88 views
iam binding the scheduler with 2 tables 1st one table is binding with recurence rule and 2nd is with starttime and endtime with union query..

when i drag the appointment which is binding with 1st table it gets error like objectreference is not set to be instance
 
when i drag the appointment which is binding with 2nd table it is working fine...


How can i  modify that error....
Nagesh Mynedi
Top achievements
Rank 1
 asked on 19 Jan 2010
2 answers
179 views
hi

This is the path i have save into the DB:

/upload/9d08d0640453a041f10b5b307bcfffa7fd71\9d08d0640453a041f10b5b307bcfffa7fd71.pdf

did you notice that / / \ slashes? How do i change the \ to /?

and this is the code:

Dim filename As String = System.Guid.NewGuid().ToString.Replace("-", "0")
        Dim filepath As String = "~/upload/" & filename
        Directory.CreateDirectory(Server.MapPath(filepath))
        For Each f As UploadedFile In RadUpload1.UploadedFiles
            f.SaveAs(Path.Combine(Server.MapPath(filepath), filename + f.GetExtension))
           Save(Path.Combine(filepath, filename + f.GetExtension).ToString)
 Next

Will i have any problems if i would to just leave it as it is?
L
Top achievements
Rank 1
 answered on 19 Jan 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?