Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
200 views
I have a page with a grid which allows paging by definition in the RadGrid tag.  I want to prevent the user from changing pages when they have initiated an edit because they will lose whatever changes they have entered on the form.  I have tried putting MasterTableView.AllowPaging = False in the NeedDataSource event handler.  This does take the paging controls off the page.  But, if the selected record is on anything but the first page of the form the record in Edit mode is the corresponding record on the first page.  Or, in other words, the user selects record 5 on the second page to edit but record 5 on the first page is put in edit mode.  The page works as expected for any record selected on the first page.

What is the recommended way to disable paging when a record has been selected to edit while preserving the relationship of the record selected for editing by the user?

Thanks, in advance, for any help.

Grant
Grant Fletcher
Top achievements
Rank 1
 answered on 07 May 2010
4 answers
177 views
hello,

how to keep the checked status of node's checkboxes after a postback?

thanks
Wyatt
Top achievements
Rank 1
 answered on 07 May 2010
1 answer
127 views
This issue can be duplcated on your RadScheduler demo site:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx

Add at least 11 All Day appointments to calendar in either Daily or Week view.  The hourly content section begins shrinking.  At around 12 or 13 appopintments, the scroll bars and hourly content section shrink to virtual unusability, and eventually disappear entirely.

I have tried 2 different solutions via CSS:

1)
Modifying rsInnerFix fixes the height of the All Day area to 60px, and provide scroll bars, BUT the scroll bar appears INSIDE the space allocated for the days, causing the Mon/Tue/Wed/etc. columns to be misaligned.

div.rsInnerFix
{
overflow-x: hidden !important;
overflow-y: auto !important;
min-height: 0px !important;
max-height: 60px !important;
}


2)
Modifying rsTopWrap provides a scroll bar for the entire calendar, however, the scroll bar doesn't take effect until the number of All Day appoinments forces the Hourly section to it's very narrowest.  Adding one more All Day apointment then seems to expand the entire hourly section, removing it's own scroll bar in favor of the rsTopWrap div's scroll bar.

Do you have any code or CSS solution that will allow the All Day section to scroll gracefully?  Any solution needs to apply to the 2009 Q3 release, as customer constraints preclude an upgrade prior to their next major release/dev cycle.

div.rsTopWrap
{
overflow-x: hidden !important;
overflow-y: auto !important;
min-height: 0px !important;
max-height: 100% !important;
}

Thanks in advance for your time,
-Kevin
Peter
Telerik team
 answered on 07 May 2010
1 answer
82 views
Is there a way to determine which appointments apply to a particular date and time? Is there a way to do this without doing it in an ASP page?
Peter
Telerik team
 answered on 07 May 2010
3 answers
982 views

protected

 

Telerik.Web.UI.RadTreeView TopicsTree;

 


I need to store checked nodes for a RadTreeView into an arraylist. But when I do that like below:

ArrayList

 

checkedTopics = TopicsTree.CheckedNodes;

 

I get the error  'Cannot implicitly convert type 'System.Collections.Generic.IList<Telerik.Web.UI.RadTreeNode>' to 'System.Collections.ArrayList'. An explicit conversion exists (are you missing a cast?)'.

Please help
Nikolay Tsenkov
Telerik team
 answered on 07 May 2010
1 answer
107 views
.mainmenu 
{ 
    width:100%; 
    padding:0; 
    margin:0; 
} 


<div class="mainmenu"> 
             <telerik:RadMenu ID="rmMain" style="z-index:2500" runat="server" EnableRoundedCorners="true" EnableShadows="true" Width="100%" Skin="Web20"> 
                <Items> 
                    <telerik:RadMenuItem Text="Quote" AccessKey="Q" > 
                        <Items> 
                            <telerik:RadMenuItem Text="View Quotes" AccessKey="v" />  
                            <telerik:RadMenuItem Text="Create a Quote" AccessKey="c" /> 
                        </Items> 
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Administration" AccessKey="a"> 
                        <Items> 
                            <telerik:RadMenuItem Text="Maintenance" AccessKey="m" />  
                        </Items> 
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="PLCM" AccessKey="p"> 
                        <Items> 
                            <telerik:RadMenuItem Text="Maintenance" AccessKey="i" />  
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
             </telerik:RadMenu> 
        </div> 




I tried placing the css atrribute dir/direction to rtl for both the div container and the radmenu itself but still does not work.


Yana
Telerik team
 answered on 07 May 2010
1 answer
95 views
Hi
I'm Trying to use cookieless="UseUri" to store the user Session ID but the problem is that all my Telerik tools are no worked it's appear but with no any behavior.
so I used the Cooke to store the Session ID
Lini
Telerik team
 answered on 07 May 2010
0 answers
102 views
Hi there,

I don't know whether this is the right forum to address my issue:
I want to produce reports/admission letters for students who have been admitted.
I thought of using MS Word to design a template, then use it into my project asp.net C# to insert into the template.
NOTE: That the format for the letters is the same, except NAMES, COURSE ADMITTED, GENDER, which i want to pick from my db.
I googled out and found this piece of code. when i tried to modify it, it does produce me what i want, but trying to open the outputted file, i get error of 'not enough memory...' of sort.
Can someone help me with a code that can do this: PLEASE CHECK THE CODE BELOW, and let me know
----------------------------------Code-------------------------------------
public void GetOutput()
{

string strFilePath = null;

try
{
string strvalue = null;

// Declare a file system object say td.
var td = Server.CreateObject("Scripting.FileSystemObject");

// Copy the template file temp2.rtf into file2.rtf.
File.Copy(Server.MapPath("Templates/Template.rtf"), Server.MapPath("file2.rtf"));

// Set file path to file2.rtf. 
strFilePath = Server.MapPath(".") + "/file2.rtf";

//Open file2.rtf in read mode. 
FileStream fs2 = new FileStream(strFilePath, FileMode.Open, FileAccess.Read);

//Declare d as a stream Reader 
StreamReader d = new StreamReader(fs2);

//Initialise the stream reader d to the begining of the file. 
d.BaseStream.Seek(0, SeekOrigin.Begin);

//A string variable used to store all the values received from the file file2.rtf. 
string swrtarget = null;

//Read the file from Start to End in one go.
swrtarget = d.ReadToEnd();

// Close the Stream Reader
d.Close();


//grab the portion of the template that needs to be repeated
//look at the rtf file and determine which section will repeat the data you want repeated
//using page breaks in the template, I was able to key off of "page" to find my indexes
int beginInsert = swrtarget.IndexOf("page }") + 7;
int endInsert = swrtarget.Length - 7;
int insertLength = endInsert - beginInsert;
string insert = swrtarget.Substring(beginInsert, insertLength);

//Response.Write(insert);

//I used a dataset and SQLClient instead of OleDb and ExecuteReader
DataSet ds = new DataSet();
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
SqlCommand sqlComm = new SqlCommand();
sqlComm.Connection = conn;
sqlComm.CommandType = CommandType.StoredProcedure;
sqlComm.CommandText = "Stored Proc Here";

try
{
sqlComm.Connection.Open();
SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter(sqlComm);
mySqlDataAdapter.Fill(ds, "Table"); 
}
catch (Exception ex)
{
Response.Write(" SQL error = " + ex.Message);
}
finally
{
sqlComm.Connection.Close();
}

//Set the path to open file2.rtf 
strFilePath = Server.MapPath(".") + "/file2.rtf";

//Open file file2.rtf in Read Write Mode
FileStream fs1 = new FileStream(strFilePath, FileMode.Open, FileAccess.ReadWrite);

//Declare a Stream Writer.
StreamWriter s = new StreamWriter(fs1);

//This variable str will store all the values from the 2nm till final. 
string str = null;

//Replace the values with the values in the string read from file2.rtf
int i = 0;

foreach (DataRow row in ds.Tables[0].Rows)
{
//make str equal to the template file
if (i == 0)
{
str = str + swrtarget;
i++;
}
else
{
//inserts the repeatable portion of the TemplateBuilder that was caluclated above
str = str.Insert(str.Length - 7, insert);
}

strvalue = row["dateline"].ToString();
str = str.Replace("##Address##", strvalue);

strvalue = row["lastname"].ToString();
str = str.Replace("##Name##", strvalue);

strvalue = row["occupation"].ToString();
str = str.Replace("##desig##", strvalue);

}

// After replacing all the values write these values in the file2.rtf via the file write (s).
s.WriteLine(str);

//After writing the data in the stream writer the values must be flushed.
s.Flush();

//Close the stream writer.
s.Close();
fs1.Close();
fs2.Close();

// Response.Write("OFFER LETTER GENERATED SUCCESSFULLY.")
}

catch (Exception ex)
{
Response.Write("" + ex.Message);
}

finally
{
//Response.Redirect() 
}

}

------------------------------END OF CODE-------------------------------------------------
Robert Jakech
Top achievements
Rank 1
 asked on 07 May 2010
2 answers
168 views
Hi! I've implemented one of the examples for using the RadMenu as a context menu and it works for Insert and Edit but not for Delete. I think the command is not right, at least for my project.

            case "Delete":
                rgUsers.MasterTableView.PerformDelete(rgUsers.Items[radGridClickedRowIndex]);
                break;

This fires but nothing happens. Every other Delete link works. Both the CommandItem bar and the link on the row itself. Any help?
Lighthouse Developer
Top achievements
Rank 1
 answered on 07 May 2010
5 answers
174 views
Dear Telerik,
            I have performance issue in my NestedGrid, loading very slowly . We followed some of the performance tips given by Telerik Forum but still the problem exists.

I am having the parent grid and it has four nested grids. Each nested grid placed in each tab section with the help of multipage.
 
As per the Telerik direction I used to bind each child grid through its own NeedDataSource event. So that it may not disturb with other grids event. SInce i set the AutoPostBack=true in RadTabStrip tag and RenderSelectedPageOnly="true" in RadMultiPage tag section, i am not bother bother about invoking each child grids NeedDataSource event. It will handle automatically as i expected. I followed following ASPX code to achieve this scenario:
  <NestedViewTemplate> 
                        <asp:Panel runat="server" ID="InnerContainer" Visible="false"> 
                            <telerik:RadTabStrip runat="server" AutoPostBack="true" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0"> 
                                <Tabs> 
                                    <telerik:RadTab runat="server" Text="Users" PageViewID="UserPage"> 
                                    </telerik:RadTab> 
                                     <telerik:RadTab runat="server" Text="Prefills" PageViewID="PrefillPage"> 
                                    </telerik:RadTab> 
                                </Tabs> 
                            </telerik:RadTabStrip> 
                            <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="true"> 
                                <telerik:RadPageView runat="server" ID="UserPage">   

But we are not able to improve the loading speed of grid for the operations like grid expanding,grouping,EditPop Window closing etc..
So guide us to what are the steps still we have to be taken to control the speed of application.

-Thanks




Pavlina
Telerik team
 answered on 07 May 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?